-7

Hello guys I’ve been trying to install and use php extensions on my windows 10 but up to no avail I’ve tried installing the php intelephense but it’s still showing errors but help

Am getting the following errors

Error while installing Php intelephense. Please check the log for more details.

And Unable to open Extension: Php Intelephense: XHR failed.enter image description here

rickdenhaan
  • 10,857
  • 28
  • 37
Travon
  • 1
  • 2

2 Answers2

0

After you have installed the extension, check the extensions installed directly in PHP installation.

Try running these in your command line

php -r "var_dump(get_loaded_extensions());"
php -r "var_dump(extension_loaded('intelephense'));"

or create a new PHP file, index.php with contents

<?php
phpInfo();

Use these methods to verify whether the extension is trully installed or is missing from your PHP installation.

Danon
  • 2,771
  • 27
  • 37
-1

Do you use short open tags? If so there's a setting for that intelephense.environment.shortOpenTag. Other things to check:

  1. Add file associations if your files have a different extension eg "intelephense.files.associations": ["*.inc"].
  2. Try with other vscode extensions disabled.
  3. Check you haven't excluded files intelephense.files.exclude.
  4. Open the file folder instead of just the file.
Luc1f3r
  • 1
  • 1