Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Lars-Janssen's avatar

Deploy error

Hello,

I've got this in my composer.json file:

"files": [
            "App/Square/Helpers/IsActive.php"
        ]

But if I push to production I receive this error:

Warning: Uncaught ErrorException: require(/home/forge/v3.domain.nl/vendor/composer/../../App/Square/Helpers/isActive.php): failed to open stream: No such file or directory in /home/forge/v3.squaredmsforum.nl/vendor/composer/autoload_real.php:66
Stack trace:

Local with homestead I do not have this problem?

0 likes
3 replies
lvismer's avatar

Depending on the platform it might be a problem with the file system that is case sensitive with naming of files.

From your composer.json it does not match, isActive.php is lowercase there.

/home/forge/v3.domain.nl/vendor/composer/../../App/Square/Helpers/isActive.php
lvismer's avatar

Interesting, so if you edit /home/forge/v3.squaredmsforum.nl/vendor/composer/autoload_real.php and change the reference manually on line 66 to IsActive.php it still complains?

If you came from a Mac or going to a Mac with the file perhaps try rename the file, ie. mv IsActive.php rename.php; mv rename.php IsActive.php and then confirm the case is the same everywhere.

Please or to participate in this conversation.