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

Does that file for the file_get_contents indeed not exist?

czorny813  —  1 year 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  —  1 year ago
ryanthompson  —  1 year ago

Try clearing twig / assets:

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

ryanthompson  —  1 year ago

Then make sure your public/app directory is writable

czorny813  —  1 year ago

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

ryanthompson  —  1 year 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  —  1 year ago

It's working, thanks ;)