thorsten / phpMyFAQ

phpMyFAQ - Open Source FAQ web application for PHP 8.1+ and MySQL, PostgreSQL and other databases
https://www.phpmyfaq.de
Mozilla Public License 2.0
582 stars 253 forks source link

When I clicked on phpMyFAQ Update in 4.0 Sidebar an error occurred #3040

Closed c1972 closed 2 days ago

c1972 commented 4 days ago

When I clicked on phpMyFAQ Update in 4.0 Sidebar (to get to the Update Options)

bug2-sc1

following error occurred:

bug2-sc2

Code:

phpMyFAQ Fatal error
Uncaught exception: 'Twig\Error\RuntimeError'

Message: 'An exception has been thrown during the rendering of a template ("Failed to parse time string (Invalid Date) at position 0 (I): The timezone could not be found in the database").'

Stack trace:

#0 /home/www/cc10.de/src/libs/twig/twig/src/Template.php(335): Twig\Template->yield(Array)
#1 /home/www/cc10.de/src/libs/twig/twig/src/TemplateWrapper.php(38): Twig\Template->render(Array)
#2 /home/www/cc10.de/admin/upgrade.php(62): Twig\TemplateWrapper->render(Array)
#3 /home/www/cc10.de/admin/index.php(363): require('/home/www/cc10....')
#4 {main}
Thrown in '/home/www/cc10.de/assets/templates/admin/configuration/upgrade.twig' on line 135

At first I had activated the online update and selected nightly builds. Now I can't get to that place anymore.

OS: Windows Browser: Chrome 126.0.6478.127 phpMyFAQ Version: 4.0 PHP-Version: 8.2 Database: MariaDB 10.11.4 Elasticsearch: No

Regards Christian

thorsten commented 3 days ago

Is it possible that no timezone is set for PHP?

c1972 commented 3 days ago

As far as I can see in phpinfo the timezone has been set correct.

c1972 commented 3 days ago

timezone-php