0

Upgraded Magento version to 2.4.4-p2 whenever we move files from local to server even any folder to another folder at same server, shows below error. We do every time vendor folder delete then run composer install command to fix it, but why this happens, please guide us.

vendor/composer/../thecodingmachine/safe/generated/apache.php): Failed to open stream: No such file or directory in /home/username/public_html/staging_site/vendor/composer/autoload_real.php on line 59

1 Answer 1

0

Try running the composer dump-autoload command instead of composer install. This command regenerates the autoload files without installing any new packages, and may help to resolve any issues with the autoload configuration.

4
  • i already try this command but not resolved
    – Sourav
    Mar 28, 2023 at 6:01
  • Check that the vendor directory and all of its contents have been uploaded correctly to the server. If any files are missing or corrupt, this could cause issues with the autoload configuration.
    – Harun
    Mar 28, 2023 at 6:03
  • No, all files are fine
    – Sourav
    Mar 29, 2023 at 8:58
  • Did you find any solution for this? @Sourav
    – mechanic
    May 24, 2023 at 15:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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