Level 11
Bump.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hey guys,
When I try to artisan optimize I'm getting the following error:
[ErrorException]
php_strip_whitespace(/home/forge/website.com): failed to open stream: Success
Script php artisan optimize handling the post-install-cmd event returned with an error
[RuntimeException]
Error Output:
Anyone got any ideas? Cheers!
I also had this problem. I solved it by removing the additional compiled classes in config/compile.php.
Please or to participate in this conversation.