Thank you for your attention!
I have not changed any templates, all templates are from the standard package.
Moreover, as a result of painstaking research, I was able to reproduce this error as follows:
One by one, I downloaded and installed older versions of "Grav + Admin" bundle from https://github.com/getgrav/grav/releases.
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}
PHP is installed in the following configuration:
# PHP 7.4
sudo apt install php7.4 php7.4-bcmath php7.4-cli php7.4-common php7.4-curl php7.4-fpm php7.4-gd php7.4-json php7.4-mbstring php7.4-mysql php7.4-xml -y php7.4-zip php7.4-apcu php7.4-opcache php7.4-yaml php7.4-xdebug php7.4-bz2 php7.4-sqlite3 php7.4-mail
# PHP 8.1
sudo apt install php8.1 php8.1-bcmath php8.1-cli php8.1-common php8.1-curl php8.1-fpm php8.1-gd php8.1-mbstring php8.1-mysql php8.1-xml -y php8.1-zip php8.1-apcu php8.1-opcache php8.1-yaml php8.1-xdebug php8.1-bz2 php8.1-sqlite3 php8.1-intl php8.1-soap php8.1-redis
If it matters, on Grav sites I use templates with Gantry 5 @ https://rockettheme.com/grav/themes
Thanks!