After Update to PHP 8.4 index.php not found

Found a bug? Tell us!!
Post Reply
kdtcat
Regular
Posts: 7
Joined: Wed Apr 08, 2009 4:17 pm

After Update to PHP 8.4 index.php not found

Post by kdtcat »

I upgraded PHP 7.4 to PHP 8.4. Ater this I can still open the Admin Desktop Page but not the Blog Page. Error is 500 page not found.
Going back to PHP 7.4 let it work again. I did not find any errorlog.

Any ideas?
onli
Regular
Posts: 3044
Joined: Tue Sep 09, 2008 10:04 pm
Contact:

Re: After Update to PHP 8.4 index.php not found

Post by onli »

Hi, what a strange bug. 500 "Page not found" is very strange though, 500 should be "internal server error", and "page not found" a 404.

My guess is that it really is a 500 and something blocks the blog from working. With "I did not find any errorlog" you mean you did not find it on the server? Who is the hoster, or do you host it yourself?
kdtcat
Regular
Posts: 7
Joined: Wed Apr 08, 2009 4:17 pm

Re: After Update to PHP 8.4 index.php not found

Post by kdtcat »

Sorry for the mismatch. You are right with the 500. My hoster is all-inkl and I switched on the PHP errorlog for the serendipity domain. Meanwhile I tried all available PHP versions (8.1, 8.2, 8.3, 8.4) all with the same result 500.
At the moment my dashboard bottom line looks like this:
Betrieben mit Serendipity 2.5.0 und PHP 8.1.31-nmm1
onli
Regular
Posts: 3044
Joined: Tue Sep 09, 2008 10:04 pm
Contact:

Re: After Update to PHP 8.4 index.php not found

Post by onli »

All-inkl I haven't used myself, but https://www.egm.at/blog/php-7-8-error-l ... ktivieren/ is a manual on how to activate the log. Just in case that's helpful.

We will need the error log to find the error. It's likely an outdated plugin, but that's too large an area to search without the error.
kdtcat
Regular
Posts: 7
Joined: Wed Apr 08, 2009 4:17 pm

Re: After Update to PHP 8.4 index.php not found

Post by kdtcat »

The error logging is exactly what I switched on. I can see it in the PHP Info. I fear the error is not shown because a 500 is just a HTML error. At all-inkl I have to wait for the next day to get the html access logs. I will come back tomorrow.
kdtcat
Regular
Posts: 7
Joined: Wed Apr 08, 2009 4:17 pm

Re: After Update to PHP 8.4 index.php not found

Post by kdtcat »

Had a typo in the errorlog name. Now got a result. It seems to be the timezone plugin.

Code: Select all

29-Jul-2025 23:23:37 Europe/Berlin] PHP Fatal error:  Uncaught TypeError: Unsupported operand types: int + string in /www/htdocs/w0182e3c/pocosdecaldas.de/serendipity/plugins/serendipity_plugin_timezones/serendipity_plugin_timezones.php:186
Stack trace:
#0 /www/htdocs/w0182e3c/pocosdecaldas.de/serendipity/include/plugin_api.inc.php(971): serendipity_plugin_timezones->generate_content('Uhrzeit in:')
#1 /www/htdocs/w0182e3c/pocosdecaldas.de/serendipity/include/functions_smarty.inc.php(645): serendipity_plugin_api::generate_plugins('left')
#2 /www/htdocs/w0182e3c/pocosdecaldas.de/serendipity/templates_c/bulletproof/4f/46/02/4f46028ae0ed02441066b8b79c62e5aaabf69128_0.file.index.tpl.php(309): serendipity_smarty_printSidebar(Array, Object(Smarty_Internal_Template))
#3 /www/htdocs/w0182e3c/pocosdecaldas.de/serendipity/bundled-libs/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_66d5def3d94e30_93926009(Object(Smarty_Internal_Template))
#4 /www/htdocs/w0182e3c/pocosdecaldas.de/serendipity/bundled-libs/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode(Object(Smarty_Internal_Template))
#5 /www/htdocs/w0182e3c/pocosdecaldas.de/serendipity/bundled-libs/smarty/smarty/libs/sysplugins/smarty_internal_template.php(217): Smarty_Template_Compiled->render(Object(Smarty_Internal_Template))
#6 /www/htdocs/w0182e3c/pocosdecaldas.de/serendipity/bundled-libs/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(238): Smarty_Internal_Template->render(false, 1)
#7 /www/htdocs/w0182e3c/pocosdecaldas.de/serendipity/bundled-libs/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(134): Smarty_Internal_TemplateBase->_execute(Object(Smarty_Internal_Template), NULL, NULL, NULL, 1)
#8 /www/htdocs/w0182e3c/pocosdecaldas.de/serendipity/index.php(124): Smarty_Internal_TemplateBase->display('/www/htdocs/w01...')
#9 {main}
  thrown in /www/htdocs/w0182e3c/pocosdecaldas.de/serendipity/plugins/serendipity_plugin_timezones/serendipity_plugin_timezones.php on line 186
kdtcat
Regular
Posts: 7
Joined: Wed Apr 08, 2009 4:17 pm

Re: After Update to PHP 8.4 index.php not found

Post by kdtcat »

After removing timezone Plugin received the next error.

Code: Select all

[29-Jul-2025 23:33:42 Europe/Berlin] PHP Fatal error:  Uncaught mysqli_sql_exception: Table 'd02a61de.serendipity_visitors_count' doesn't exist in /www/htdocs/w0182e3c/pocosdecaldas.de/serendipity/include/db/mysqli.inc.php:68
Stack trace:[29-Jul-2025 23:33:42 Europe/Berlin] PHP Fatal error:  Uncaught mysqli_sql_exception: Table 'd02a61de.serendipity_visitors_count' doesn't exist in /www/htdocs/w0182e3c/pocosdecaldas.de/serendipity/include/db/mysqli.inc.php:68
Stack trace:
#0 /www/htdocs/w0182e3c/pocosdecaldas.de/serendipity/include/db/mysqli.inc.php(68): mysqli_query(Object(mysqli), 'SELECT sum(visi...')
#1 /www/htdocs/w0182e3c/pocosdecaldas.de/serendipity/plugins/serendipity_event_statistics/serendipity_plugin_statistics.php(214): serendipity_db_query('SELECT sum(visi...', true, 'assoc')
#2 /www/htdocs/w0182e3c/pocosdecaldas.de/serendipity/include/plugin_api.inc.php(971): serendipity_plugin_statistics->generate_content('Statistiken')
#3 /www/htdocs/w0182e3c/pocosdecaldas.de/serendipity/include/functions_smarty.inc.php(645): serendipity_plugin_api::generate_plugins('right')
#4 /www/htdocs/w0182e3c/pocosdecaldas.de/serendipity/templates_c/bulletproof/4f/46/02/4f46028ae0ed02441066b8b79c62e5aaabf69128_0.file.index.tpl.php(352): serendipity_smarty_printSidebar(Array, Object(Smarty_Internal_Template))
#5 /www/htdocs/w0182e3c/pocosdecaldas.de/serendipity/bundled-libs/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_66d5def3d94e30_93926009(Object(Smarty_Internal_Template))
#6 /www/htdocs/w0182e3c/pocosdecaldas.de/serendipity/bundled-libs/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode(Object(Smarty_Internal_Template))
#7 /www/htdocs/w0182e3c/pocosdecaldas.de/serendipity/bundled-libs/smarty/smarty/libs/sysplugins/smarty_internal_template.php(217): Smarty_Template_Compiled->render(Object(Smarty_Internal_Template))
#8 /www/htdocs/w0182e3c/pocosdecaldas.de/serendipity/bundled-libs/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(238): Smarty_Internal_Template->render(false, 1)
#9 /www/htdocs/w0182e3c/pocosdecaldas.de/serendipity/bundled-libs/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(134): Smarty_Internal_TemplateBase->_execute(Object(Smarty_Internal_Template), NULL, NULL, NULL, 1)
#10 /www/htdocs/w0182e3c/pocosdecaldas.de/serendipity/index.php(124): Smarty_Internal_TemplateBase->display('/www/htdocs/w01...')
#11 {main}
  thrown in /www/htdocs/w0182e3c/pocosdecaldas.de/serendipity/include/db/mysqli.inc.php on line 68
kdtcat
Regular
Posts: 7
Joined: Wed Apr 08, 2009 4:17 pm

Re: After Update to PHP 8.4 index.php not found

Post by kdtcat »

Removed Plugin Statistiken and Blog seems to be free of errors. :D
onli
Regular
Posts: 3044
Joined: Tue Sep 09, 2008 10:04 pm
Contact:

Re: After Update to PHP 8.4 index.php not found

Post by onli »

Great :) I will check how both plugins can be fixed, for other users. Thanks for reporting these bugs.
Post Reply