At some point, when I go to the /admin/tools/scheduler page, I started getting Error 500.
Not on one site, but on all of them.
What could be the matter?
What additional information should I provide?
Thank you!
P. S. I checked permissions in folders and files.
Everything is installed via Linux on the www-data user and the necessary permissions:
Sure, all of plugins are updated, incl. Admin, and Grav is the last updated version too.
I’m completely at a loss…
As for the server, and I have a Caddy, I don’t even know which way to look.
I understand it roughly, but I have not made any significant changes. Although with your reply, I will now intentionally look at it!
The question remains open for now. I will be glad to have any additional ideas!
hm, I’m just experimenting with Caddy for https://immich.app/ because its easy reverse proxy feature, and found it quite good for this purpose, but, also saw that it is quite different to apache or nginx, so there might be some problems w.r. running a Grav site on Caddy.
you could check caddy-php and experiment with php versions to see if this solves your problem.
just a wild guess…
What does Caddy have to do with it, if it’s an APPLICATION-LEVEL error?
All other sections of both the frontend and the backend work perfectly!
The question is different: how can I understand from the backtrace where the error occurs?
To understand this, you need to have a Grav architect qualification.
And the Grav developers are silent.
I have similar sites running in the same environment.
But on some everything is fine, on others the error is 500 when trying to open the Admin/Scheduler page!
Finally, I managed to find the version starting from which The Error appears:
Installing grav-admin-v1.7.25.zip, I do not make any settings and changes, I do not update the system and plugins.
And as soon as I enter Control panel, I immediately go to the Tools/Scheduler section.
The section page opens, everything is fine.
Installing grav-admin-v1.7.26.zip, I also do not make any changes, I immediately go to the Tools/Scheduler section. And I get an Error 500.
Similar to the one described.
Not in line 5 of the template, but in line 4, but with the same trouble.
In the first two cases, I run Grav under PHP 8.1. But The Error disappears if I run Grav under PHP 7.4!
Thus, we can conclude that The Error appears in Grav version 1.7.26 @ PHP 8.1.
How do I report this “discovery” to the developers?
The Caddy Server (@ Ubuntu 20.24) configuration is taken from the template offered in the Grav distribution.
In my case, the configuration looks like this:
encode zstd gzip
root * /var/www/DOMAIN/public
file_server
## PHP 7/8:
#php_fastcgi unix//run/php/php7.4-fpm.sock
php_fastcgi unix//run/php/php8.1-fpm.sock
## Grav:
# Begin - Security
# deny all direct access for these folders
rewrite /(\.git|cache|bin|logs|backups|tests)/.* /403
# deny running scripts inside core system folders
#rewrite /(system|vendor)/.*\.(txt|xml|md|html|yaml|yml|php|pl|py|cgi|twig|sh|bat)$ /403
# Grav Update ↑↓
rewrite /(system|vendor)/.*\.(txt|xml|md|html|htm|shtml|shtm|yaml|yml|php|php2|php3|php4|php5|phar|phtml|pl|py|cgi|twig|sh|bat)$ /403
# deny running scripts inside user folder
#rewrite /user/.*\.(txt|md|yaml|yml|php|pl|py|cgi|twig|sh|bat)$ /403
# Grav Update ↑↓
rewrite /user/.*\.(txt|md|yaml|yml|php|php2|php3|php4|php5|phar|phtml|pl|py|cgi|twig|sh|bat|csv)$ /403 # JOO ADD *.csv
# deny access to specific files in the root folder
rewrite /(LICENSE\.txt|composer\.lock|composer\.json|nginx\.conf|web\.config|htaccess\.txt|\.htaccess) /403
respond /403 403
## End - Security
# global rewrite should come last.
try_files {path} {path}/ /index.php?_url={uri}&{query}
This problem is not solved, but rather marked for me.
After all, no one will downgrade the PHP version because of a strange error deep in the application code?
In addition, there is another mystical moment:
I have several sites, and this error occurs everywhere.
Everywhere… except for one site!
One of the sites is running PHP 8.1 on a completely updated system and plugins, but this error is not there.
So first I will write to the plugin developers, wait for their response, then draw conclusions, and then the issue can be considered officially resolved. )
If you have a minute of free time to answer, please help me figure out the organizational issue:
How do the messages in these topics (Discourse @ GetTrav) relate to the official bug tracker on GitHub?
Do developers come here sometimes? Or is communication here just for enthusiasts?