Unabel to upload autoload_static.php from my local composer folder to server

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.

7 Likes