PHP8-issues using Serendipity 2.4-beta1, php8. and 2k11

Having trouble installing serendipity?
Post Reply
Walter
Regular
Posts: 7
Joined: Mon Sep 14, 2015 4:44 pm

PHP8-issues using Serendipity 2.4-beta1, php8. and 2k11

Post by Walter »

Hi,

Serendipity cooperates well with php 7.4.27 on our https://-blog site (thanks to onli, see blog-site https://marxuwa.eu) as well as in the admin-area.

When I switched to php8, the blog-site remained blank. By screening the error-log file, I identified two plugins (serendipity_event_multilingual.. and serendipity_event_custom_permalink) which had produced fatal errors. After discarding them, the admin-area seems to be all right and on the blog-site the blog-content (text, & pictures) seems to be displayed correctly too.

Unfortunately, the right-hand side-bar plugins such as archive, categories DO NOT SHOW with php8 running - except the serendipity_plugin_quicksearch (and this is also functional) .

A meaningful interpretation of the error-log file is beyond may capacity. So I have no clue what has to be done.

By pressing the plugin-update button, the message 'no update available' is issued.

Below, I have added some lines with warnings from the error-log file



30.01.2022 17:02:11 marxuwa.eu [client 2a02:8070:b00::] PHP Warning: Undefined array key "serendipity_plugin_superuser:97fe44b54f8f2cf108cd839e8f0b7ada" in /mnt/web206/c2/99/54486999/htdocs/serendipity_01/plugins/serendipity_event_sidebarhider/serendipity_event_sidebarhider.php on line 129
30.01.2022 17:02:11 marxuwa.eu [client 2a02:8070:b00::] PHP Warning: Undefined array key "serendipity_plugin_superuser:97fe44b54f8f2cf108cd839e8f0b7ada" in /mnt/web206/c2/99/54486999/htdocs/serendipity_01/plugins/serendipity_event_sidebarhider/serendipity_event_sidebarhider.php on line 135
30.01.2022 17:02:11 marxuwa.eu [client 2a02:8070:b00::] PHP Warning: Undefined array key "serendipity_plugin_superuser:97fe44b54f8f2cf108cd839e8f0b7ada" in /mnt/web206/c2/99/54486999/htdocs/serendipity_01/plugins/serendipity_event_sidebarhider/serendipity_event_sidebarhider.php on line 160
30.01.2022 17:02:11 marxuwa.eu [client 2a02:8070:b00::] PHP Warning: Undefined array key "serendipity_plugin_plug:97fe44b54f8f2cf108cd839e8f0b7ada" in /mnt/web206/c2/99/54486999/htdocs/serendipity_01/plugins/serendipity_event_sidebarhider/serendipity_event_sidebarhider.php on line 127
30.01.2022 17:02:11 marxuwa.eu [client 2a02:8070:b00::] PHP Warning: Undefined array key "serendipity_plugin_plug:97fe44b54f8f2cf108cd839e8f0b7ada" in /mnt/web206/c2/99/54486999/htdocs/serendipity_01/plugins/serendipity_event_sidebarhider/serendipity_event_sidebarhider.php on line 129
30.01.2022 17:02:11 marxuwa.eu [client 2a02:8070:b00::] PHP Warning: Undefined array key "serendipity_plugin_plug:97fe44b54f8f2cf108cd839e8f0b7ada" in /mnt/web206/c2/99/54486999/htdocs/serendipity_01/plugins/serendipity_event_sidebarhider/serendipity_event_sidebarhider.php on line 135
30.01.2022 17:02:11 marxuwa.eu [client 2a02:8070:b00::] PHP Warning: Undefined array key "serendipity_plugin_plug:97fe44b54f8f2cf108cd839e8f0b7ada" in /mnt/web206/c2/99/54486999/htdocs/serendipity_01/plugins/serendipity_event_sidebarhider/serendipity_event_sidebarhider.php on line 160
30.01.2022 17:02:11 marxuwa.eu [client 2a02:8070:b00::] PHP Warning: Undefined array key "serendipity_plugin_statistics:9a580a427657dc481ebf3bbcc81340c5" in /mnt/web206/c2/99/54486999/htdocs/serendipity_01/plugins/serendipity_event_sidebarhider/serendipity_event_sidebarhider.php on line 127
30.01.2022 17:02:11 marxuwa.eu [client 2a02:8070:b00::] PHP Warning: Undefined array key "serendipity_plugin_statistics:9a580a427657dc481ebf3bbcc81340c5" in /mnt/web206/c2/99/54486999/htdocs/serendipity_01/plugins/serendipity_event_sidebarhider/serendipity_event_sidebarhider.php on line 129
30.01.2022 17:02:11 marxuwa.eu [client 2a02:8070:b00::] PHP Warning: Undefined array key "serendipity_plugin_statistics:9a580a427657dc481ebf3bbcc81340c5" in /mnt/web206/c2/99/54486999/htdocs/serendipity_01/plugins/serendipity_event_sidebarhider/serendipity_event_sidebarhider.php on line 135
30.01.2022 17:02:11 marxuwa.eu [client 2a02:8070:b00::] PHP Warning: Undefined array key "serendipity_plugin_statistics:9a580a427657dc481ebf3bbcc81340c5" in /mnt/web206/c2/99/54486999/htdocs/serendipity_01/plugins/serendipity_event_sidebarhider/serendipity_event_sidebarhider.php on line 160
30.01.2022 17:02:11 marxuwa.eu [client 2a02:8070:b00::] PHP Warning: Undefined array key "serendipity_plugin_timezones:fc0f4bc894583ed49b536bcf391db835" in /mnt/web206/c2/99/54486999/htdocs/serendipity_01/plugins/serendipity_event_sidebarhider/serendipity_event_sidebarhider.php on line 127
30.01.2022 17:02:11 marxuwa.eu [client 2a02:8070:b00::] PHP Warning: Undefined array key "serendipity_plugin_timezones:fc0f4bc894583ed49b536bcf391db835" in /mnt/web206/c2/99/54486999/htdocs/serendipity_01/plugins/serendipity_event_sidebarhider/serendipity_event_sidebarhider.php on line 129
30.01.2022 17:02:11 marxuwa.eu [client 2a02:8070:b00::] PHP Warning: Undefined array key "serendipity_plugin_timezones:fc0f4bc894583ed49b536bcf391db835" in /mnt/web206/c2/99/54486999/htdocs/serendipity_01/plugins/serendipity_event_sidebarhider/serendipity_event_sidebarhider.php on line 135
30.01.2022 17:02:11 marxuwa.eu [client 2a02:8070:b00::] PHP Warning: Undefined array key "serendipity_plugin_timezones:fc0f4bc894583ed49b536bcf391db835" in /mnt/web206/c2/99/54486999/htdocs/serendipity_01/plugins/serendipity_event_sidebarhider/serendipity_event_sidebarhider.php on line 160
30.01.2022 17:02:11 marxuwa.eu [client 2a02:8070:b00::] PHP Warning: Undefined array key "serendipity_plugin_statistics:f4e07849267707f85c66e09cb0d41b77" in /mnt/web206/c2/99/54486999/htdocs/serendipity_01/plugins/serendipity_event_sidebarhider/serendipity_event_sidebarhider.php on line 127
30.01.2022 17:02:11 marxuwa.eu [client 2a02:8070:b00::] PHP Warning: Undefined array key "serendipity_plugin_statistics:f4e07849267707f85c66e09cb0d41b77" in /mnt/web206/c2/99/54486999/htdocs/serendipity_01/plugins/serendipity_event_sidebarhider/serendipity_event_sidebarhider.php on line 129
30.01.2022 17:02:11 marxuwa.eu [client 2a02:8070:b00::] PHP Warning: Undefined array key "serendipity_plugin_statistics:f4e07849267707f85c66e09cb0d41b77" in /mnt/web206/c2/99/54486999/htdocs/serendipity_01/plugins/serendipity_event_sidebarhider/serendipity_event_sidebarhider.php on line 135
30.01.2022 17:02:11 marxuwa.eu [client 2a02:8070:b00::] PHP Warning: Undefined array key "serendipity_plugin_statistics:f4e07849267707f85c66e09cb0d41b77" in /mnt/web206/c2/99/54486999/htdocs/serendipity_01/plugins/serendipity_event_sidebarhider/serendipity_event_sidebarhider.php on line 160
30.01.2022 17:02:11 marxuwa.eu [client 2a02:8070:b00::] PHP Fatal error: Uncaught Error: Non-static method Date_TimeZone::isValidID() cannot be called statically in /opt/RZphp80/includes/Date/TimeZone.php:4715
30.01.2022 17:02:11 marxuwa.eu [client 2a02:8070:b00::] Stack trace:
30.01.2022 17:02:11 marxuwa.eu [client 2a02:8070:b00::] #0 /opt/RZphp80/includes/Date.php(55): require_once()
30.01.2022 17:02:11 marxuwa.eu [client 2a02:8070:b00::] #1 /mnt/web206/c2/99/54486999/htdocs/serendipity_01/plugins/serendipity_plugin_timezones/serendipity_plugin_timezones.php(167): include_once('...')
30.01.2022 17:02:11 marxuwa.eu [client 2a02:8070:b00::] #2 /mnt/web206/c2/99/54486999/htdocs/serendipity_01/include/plugin_api.inc.php(971): serendipity_plugin_timezones->generate_content()
30.01.2022 17:02:11 marxuwa.eu [client 2a02:8070:b00::] #3 /mnt/web206/c2/99/54486999/htdocs/serendipity_01/include/functions_smarty.inc.php(644): serendipity_plugin_api::generate_plugins()
30.01.2022 17:02:11 marxuwa.eu [client 2a02:8070:b00::] #4 /mnt/web206/c2/99/54486999/htdocs/serendipity_01/templates_c/2k11/21/a0/50/21a05067a3a4fd00a47c6dd605fc9cf7e5c9b2db_0.file.index.tpl.php(176): serendipity_smarty_printSidebar()
30.01.2022 17:02:11 marxuwa.eu [client 2a02:8070:b00::] #5 /mnt/web206/c2/99/54486999/htdocs/serendipity_01/bundled-libs/Smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_61e84a25dd81e0_13166736()
30.01.2022 17:02:11 marxuwa.eu [client 2a02:8070:b00::] #6 /mnt/web206/c2/99/54486999/htdocs/serendipity_01/bundled-libs/Smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode()
30.01.2022 17:02:11 marxuwa.eu [client 2a02:8070:b00::] #7 /mnt/web206/c2/99/54486999/htdocs/serendipity_01/bundled-libs/Smarty/libs/sysplugins/smarty_internal_template.php(216): Smarty_Template_Compiled->render()
30.01.2022 17:02:11 marxuwa.eu [client 2a02:8070:b00::] #8 /mnt/web206/c2/99/54486999/htdocs/serendipity_01/bundled-libs/Smarty/libs/sysplugins/smarty_internal_templatebase.php(232): Smarty_Internal_Template->render()
30.01.2022 17:02:11 marxuwa.eu [client 2a02:8070:b00::] #9 /mnt/web206/c2/99/54486999/htdocs/serendipity_01/bundled-libs/Smarty/libs/sysplugins/smarty_internal_templatebase.php(134): Smarty_Internal_TemplateBase->_execute()
30.01.2022 17:02:11 marxuwa.eu [client 2a02:8070:b00::] #10 /mnt/web206/c2/99/54486999/htdocs/serendipity_01/index.php(124): Smarty_Internal_TemplateBase->display()
30.01.2022 17:02:11 marxuwa.eu [client 2a02:8070:b00::] #11 {main}
30.01.2022 17:02:11 marxuwa.eu [client 2a02:8070:b00::] thrown in /opt/RZphp80/includes/Date/TimeZone.php on line 4715
30.01.2022 17:06:27 marxuwa.eu [client 2a02:8070:b00::] PHP Warning: Undefined array key "subpage" in /mnt/web206/c2/99/54486999/htdocs/serendipity_01/plugins/serendipity_event_imageselectorplus/serendipity_event_imageselectorplus.php on line 156
30.01.2022 17:06:55 marxuwa.eu [client 2a02:8070:b00::] PHP Fatal error: Uncaught <table style="border: 1px" cellspacing="0">
30.01.2022 17:06:55 marxuwa.eu [client 2a02:8070:b00::] <tr><td colspan="3" style="background: #ff9999"> <b>HTTP_Request2_MessageException</b>: gzinflate() call failed in <b>/opt/RZphp80/includes/HTTP/Request2/Response.php</b> on line <b>439</b></td></tr>
30.01.2022 17:06:55 marxuwa.eu [client 2a02:8070:b00::] <tr><td colspan="3" style="background-color: #aaaaaa; text-align: center; font-weight: bold;">Exception trace</td></tr>
30.01.2022 17:06:55 marxuwa.eu [client 2a02:8070:b00::] <tr><td style="text-align: center; background: #cccccc; width:20px; font-weight: bold;">#</td><td style="text-align: center; background: #cccccc; font-weight: bold;">Function</td><td style="text-align: center; background: #cccccc; font-weight: bold;">Location</td></tr>
30.01.2022 17:06:55 marxuwa.eu [client 2a02:8070:b00::] <tr><td style="text-align: center;">0</td><td>HTTP_Request2_Response::decodeGzip()</td><td>/opt/RZphp80/includes/HTTP/Request2/Response.php:439</td></tr>
30.01.2022 17:06:55 marxuwa.eu [client 2a02:8070:b00::] <tr><td style="text-align: center;">1</td><td>HTTP_Request2_Response->getBody()</td><td>/mnt/web206/c2/99/54486999/htdocs/serendipity_01/plugins/serendipity_event_spartacus/serendipity_event_spartacus.php:535</td></tr>
30.01.2022 17:06:55 marxuwa.eu [client 2a02:8070:b00::] <tr><td style="text-align: center;">2</td><td>serendipity_event_spartacus->fetchfile()</td><td>/mnt/web206/c2/99/54486999/htdocs/serendipity_01/plugins/serendipity_event_spartacus/serendipity_event_spartacus.php:653</td></tr>
30.01.2022 17:06:55 marxuwa.eu [client 2a02:8070:b00::] <tr><td style="text-align: center;">3</td><td>serendipity_event_spartacus->fetchOnline()</td><td>/mnt/web206/c2/99/54486999/htdocs/serendipity_01/plugins/serendipity_event_spartacus/serendipity_event_spartacus.php:1165</td></tr>
30.01.2022 17:06:55 marxuwa.eu [client 2a02:8070:b00::] <tr><td style="text-align: center;">4</td><td>serendipity_event_spartacus->count_plugin_upgrades()</td><td>/mnt/web206/c2/99/54486999/htdocs/serendipity_01/plugins/serendipity_event_spartacus/serendipity_event_spartacus.php:1340</td></tr>
30.01.2022 17:06:55 marxuwa.eu [client 2a02:8070:b00::] <tr><td style="text-align: center;">5</td><td>serendipity_event_spartacus->event_hook()</td><td>/mnt/web206/c2/99/54486999/htdocs/serendipity_01/include/plugin_api.inc.php:1188</td></tr>
30.01.2022 17:06:55 marxuwa.eu [client 2a02:8070:b00::] <tr><td style="text-align: center;">6</td><td>serendipity_plugin_api::hook_event()</td><td>/mnt/web206/c2/99/54486999/htdocs/serendipity_01/include/admin/overview.inc.php:66</td></tr>
30.01.2022 17:06:55 marxuwa.eu [client 2a02:8070:b00::] <tr><td style="text-align: center;">7</td><td>include('/mnt/web206/c2/9&hellip;')</td><td>/mnt/web206/c2/99/54486999/htdocs/serendipity_01/serendipity_admin.php:214</td></tr>
30.01.2022 17:06:55 marxuwa.eu [client 2a02:8070:b00::] <tr><td style="text-align: center;">8</td><td>{main}</td><td>&nbsp;</td></tr>
30.01.2022 17:06:55 marxuwa.eu [client 2a02:8070:b00::] </table>
30.01.2022 17:06:55 marxuwa.eu [client 2a02:8070:b00::] thrown in /opt/RZphp80/includes/HTTP/Request2/Response.php on line 633
30.01.2022 17:17:43 marxuwa.eu [client 2a02:8070:b00::] PHP Deprecated: Non-static method Date_TimeZone::getDefault() should not be called statically in /opt/RZphp74/includes/Date.php on line 201
onli
Regular
Posts: 2822
Joined: Tue Sep 09, 2008 10:04 pm
Contact:

Re: PHP8-issues using Serendipity 2.4-beta1, php8. and 2k11

Post by onli »

Good work with the log and plugin debug!

Guessing here, but to me it seems like serendipity_plugin_timezones produces an error. Is that plugin installed? An error in a sidebar plugin could stop s9y before it can emit the other sidebarplugins, which would explain the errors you saw.

The sidebarhider plugin is also a candidate to be removed. The warnings its emits are just warnings, so it should not be responsible here, but given its functionality I'd try removing it as well.

For both plugins goes: If you need them state it here, I will have a look at whether they can be salvaged. That also goes for serendipity_event_custom_permalink and serendipity_event_multilingual, though for those I'm surprised about the error.
Walter
Regular
Posts: 7
Joined: Mon Sep 14, 2015 4:44 pm

Re: PHP8-issues using Serendipity 2.4-beta1, php8. and 2k11

Post by Walter »

...

It works! The plug-in 'serendipity_plugin_timezones' was the culprit. I haven't deleted the 'serendipity-event-sidebarhider' . According to my notes it seems to be required for sidebar plugin-updating.

For me the removed plug-in :
- 'serendipity_event_multilingual' - is a nice gadget but not really required;
- serendipity_event_custom_permalink - can become useful in the medium run;
- serendipity_plugin_timezones - would be useful, but is not vital;
- 'serendipity-event-sidebarhider' - seems to be required, see above.

... and thank you for the encouragement. I'll need it for the cleaning and improved structuring of our blog ...
Post Reply