# How to fix this Fatal error?

**URL:** <https://forum.infinityfree.com/t/how-to-fix-this-fatal-error/96188>\
**Category:** Hosting Support\
**Created:** [July 21, 2024, 7:14am UTC](https://forum.infinityfree.com/t/how-to-fix-this-fatal-error/96188 "2024-07-21T07:14:32Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon4308913](https://forum.infinityfree.com/letter_avatar/anon4308913/32/6_449c533f586939b6e5f246632a46421f.png) [@anon4308913](https://forum.infinityfree.com/u/anon4308913)\
**Post date:** [July 21, 2024, 7:14am UTC](https://forum.infinityfree.com/t/how-to-fix-this-fatal-error/96188/1 "2024-07-21T07:14:32Z")

</div>

**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**

---

<div class="post-metadata">

**Author:** ![anon90933456](https://forum.infinityfree.com/letter_avatar/anon90933456/32/6_449c533f586939b6e5f246632a46421f.png) [@anon90933456](https://forum.infinityfree.com/u/anon90933456)\
**Post date:** [July 21, 2024, 7:18am UTC](https://forum.infinityfree.com/t/how-to-fix-this-fatal-error/96188/2 "2024-07-21T07:18:38Z")

</div>

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

> [@Unabel to upload autoload\_static.php from my local composer folder to server](https://forum.infinityfree.com/t/unabel-to-upload-autoload-static-php-from-my-local-composer-folder-to-server/62312/2):
>
> There is a limit of 1 MB for PHP files on our hosting, so any file larger than that would be automatically deleted. One possible way I see is to regenerate your Composer files without the --optimize-autoloader option. This may give you a small performance hit in production, but it avoids these large generated PHP files with class information.

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).

---

<div class="post-metadata">

**Author:** ![anon4308913](https://forum.infinityfree.com/letter_avatar/anon4308913/32/6_449c533f586939b6e5f246632a46421f.png) [@anon4308913](https://forum.infinityfree.com/u/anon4308913)\
**Post date:** [July 21, 2024, 7:27am UTC](https://forum.infinityfree.com/t/how-to-fix-this-fatal-error/96188/3 "2024-07-21T07:27:39Z")

</div>

I see, the autoload\_static.php is missing, i reupload it again?

---

<div class="post-metadata">

**Author:** ![anon90933456](https://forum.infinityfree.com/letter_avatar/anon90933456/32/6_449c533f586939b6e5f246632a46421f.png) [@anon90933456](https://forum.infinityfree.com/u/anon90933456)\
**Post date:** [July 21, 2024, 7:28am UTC](https://forum.infinityfree.com/t/how-to-fix-this-fatal-error/96188/4 "2024-07-21T07:28:57Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://infinityfree-forum-uploads.s3.dualstack.eu-central-1.amazonaws.com/original/3X/b/0/b024fd3fa88bae093c9576e55c2c94e33f890206.svg) [@system](https://forum.infinityfree.com/u/system)\
**Post date:** [July 28, 2024, 7:29am UTC](https://forum.infinityfree.com/t/how-to-fix-this-fatal-error/96188/5 "2024-07-28T07:29:15Z")

</div>

Closed on July 28, 2024, 7:29am UTC

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