0

Whenever I add the trustpilot extension using composer require it succeeds but afterwards when I try to use any php bin/magento command it returns it with this error:

Warning: require(/home/nolimi2q/public_html/vendor/composer/../symfony/polyfill-mbstring/bootstrap.php): failed to open stream: No such file or directory in /home/nolimi2q/public_html/vendor/composer/autoload_real.php on line 70

Fatal error: require(): Failed opening required '/home/nolimi2q/public_html/vendor/composer/../symfony/polyfill-mbstring/bootstrap.php' (include_path='/home/nolimi2q/public_html/vendor/magento/zendframework1/library:.:/opt/alt/php72/usr/share/pear') in /home/nolimi2q/public_html/vendor/composer/autoload_real.php on line 70

0

Please remove generated and all folders in var folder from the root directory. And then please run the all commands.

php bin/magento setup:upgrade

php bin/magento setup:static-content:deploy -f

php bin/magento indexer:reindex

php bin/magento cache:flush

php bin/magento cache:clean

This will work your extension fine.

Thanks

  • The error has changed from that to: Warning: require(/home/nolimi2q/public_html/vendor/composer/../../registration.php): failed to open stream: No such file or directory in /home/nolimi2q/public_html/vendor/composer/autoload_real.php online 70 Fatal error: require(): Failed opening required '/home/nolimi2q/public_html/vendor/composer/../../registration.php' (include_path='/home/nolimi2q/public_html/vendor/magento/zendframework1/library:.:/opt/alt/php72/usr/share/pear') in /home/nolimi2q/public_html/vendor/composer/autoload_real.php on line 70 – Faouzi Nov 2 at 13:01
  • Extension have to add composer please check the composer command and run and after that it will work. – Mayur Nov 2 at 13:20
  • What do you mean by check the composer command? I've tried multiple composer commands but none worked. The error stays like that. – Faouzi Nov 2 at 13:28
  • No particular extension have composer command. – Mayur Nov 2 at 13:48
  • It happens when i install any extension for that mattter. Is it not a file missing in vendorcomposer? or a path missing in the autoload_real.php? – Faouzi Nov 2 at 16:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.