# 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:** 1\
**Showing post:** 2

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

---

_[View the full topic](https://forum.infinityfree.com/t/how-to-fix-this-fatal-error/96188)._
