Error 500 after click New Page or New Post in admin
Created 2 years ago by czorny813

This is error from logs: Next exception 'Twig_Error_Runtime' with message 'An exception has been thrown during the rendering of a template ("file_get_contents(/home/bartosz/www/pyro/test3/public/pyro/test3/public/app/default/assets/anomaly/streams-platform/resources/js/modal/filter.js): failed to open stream: No such file or directory") in "streams::modals/filter" at line 2.' in /home/bartosz/www/pyro/test3/vendor/twig/twig/lib/Twig/Template.php:447

ryanthompson  —  2 years ago Best Answer

If twig cache is failing make sure the storage directory is writable as well. That's where the compiled views, cache, and logs all will be stashed.

ryanthompson  —  2 years ago

Does that file for the file_get_contents indeed not exist?

czorny813  —  2 years ago

Not exist. He exist in /home/bartosz/www/pyro/test3/public/app/default/assets/anomaly/streams-platform/resources/js/modal/filter.js but there in link is twice pyro/test3/public/pyro/test3/public, I dont know why. You have idea why?

czorny813  —  2 years ago
ryanthompson  —  2 years ago

Try clearing twig / assets:

php artisan asset:clear && php artisan twig:clean

ryanthompson  —  2 years ago

Then make sure your public/app directory is writable

czorny813  —  2 years ago

When try php artisan twig:clean -> Twig cache failed to be cleaned. public/app directory is writable

ryanthompson  —  2 years ago Best Answer

If twig cache is failing make sure the storage directory is writable as well. That's where the compiled views, cache, and logs all will be stashed.

czorny813  —  2 years ago

It's working, thanks ;)