Error 500 after click New Page or New Post in admin
Created 6 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  —  6 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  —  6 years ago

Does that file for the file_get_contents indeed not exist?

czorny813  —  6 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  —  6 years ago
ryanthompson  —  6 years ago

Try clearing twig / assets:

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

ryanthompson  —  6 years ago

Then make sure your public/app directory is writable

czorny813  —  6 years ago

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

ryanthompson  —  6 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  —  6 years ago

It's working, thanks ;)