How to fix this Fatal error?

Warning : require(/home/vol11_5/infinityfree.com/if0_36943624/htdocs/laravel/vendor/composer/autoload_static.php): Failed to open stream: No such file or directory in /home/vol11_5/infinityfree.com/if0_36943624/htdocs/laravel/vendor/composer/autoload_real.php on line 31

Fatal error : Uncaught Error: Failed opening required ‘/home/vol11_5/infinityfree.com/if0_36943624/htdocs/laravel/vendor/composer/autoload_static.php’ (include_path=‘.:/usr/share/pear/’) in /home/vol11_5/infinityfree.com/if0_36943624/htdocs/laravel/vendor/composer/autoload_real.php:31 Stack trace: #0 /home/vol11_5/infinityfree.com/if0_36943624/htdocs/laravel/vendor/autoload.php(25): ComposerAutoloaderInitbfe12996eeecb6fdc8713a9fd9d431f8::getLoader() #1 /home/vol11_5/infinityfree.com/if0_36943624/htdocs/index.php(34): require(‘/home/vol11_5/i…’) #2 {main} thrown in /home/vol11_5/infinityfree.com/if0_36943624/htdocs/laravel/vendor/composer/autoload_real.php on line 31

Hi and welcome to the forum! Can you try this?

Maybe the autoload_static.php file your software is using is optimized, that’s why it gets deleted after your website is uploaded because it weighs more than free hosting allows (1 MB).

3 Likes

I see, the autoload_static.php is missing, i reupload it again?

First regenerate the Composer files without the --optimize-autoloader option or do the other things the topic I posted tells you to do if necessary, then upload the Composer files again.

3 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.