"Uncaught Error" when updating from 2.15 to 2.3-beta1

Found a bug? Tell us!!
thh
Regular
Posts: 266
Joined: Thu Oct 26, 2006 2:38 pm
Location: Stuttgart, Germany
Contact:

Re: "Uncaught Error" when updating from 2.15 to 2.3-beta1

Post by thh » Sun Jun 02, 2019 10:48 am

onli wrote:
Sat Jun 01, 2019 3:23 pm
Then it's possible it's a bug in 2.1.5 we fixed only in 2.3.
The fix went in even after the release of the 2.3-beta. :)

I've backported it now for a presumably final 2.1.6 release later on.

User avatar
onli
Regular
Posts: 2220
Joined: Tue Sep 09, 2008 10:04 pm
Contact:

Re: "Uncaught Error" when updating from 2.15 to 2.3-beta1

Post by onli » Sun Jun 02, 2019 11:57 am

Ah, okay! Thank you :)

corcons
Regular
Posts: 15
Joined: Sun Jun 30, 2019 11:54 pm

Re: "Uncaught Error" when updating from 2.15 to 2.3-beta1

Post by corcons » Tue Jul 16, 2019 12:41 pm

Hi, I've got the same errors. Here is what I've done:
1.) I've installed the auto updater
2.) I've started the updater and the update was successfully
3.) After the update was completed a page shows up with a link to finish the update
4.) When clicked this link I've got a bunch of fatal errors I'll show this below.
5.) I'm running PHP version 7.2 on my machine and as I've set the PHP version at the .htacces file to version 5.6 (AddHandler application/x-httpd-php56 .php) I could finish point 3.) and the frontend works fine to.

Question would you be able to fix this problem in a short time, because I do not like to run an old PHP version.

Errors

Code: Select all

Fatal error: Uncaught ErrorException: Warning: sizeof(): Parameter must be an array or an object that implements Countable in /home/corconsc/blog.corcons.com/templates_c/timeline/b8/f9/3f/b8f93f2c5be720c95c25162d4483180bacbd406e_0.file.upgrader.inc.tpl.php:253 Stack trace: #0 [internal function]: errorToExceptionHandler(2, 'sizeof(): Param...', '/home/corconsc/...', 253, Array) #1 /home/corconsc/blog.corcons.com/templates_c/timeline/b8/f9/3f/b8f93f2c5be720c95c25162d4483180bacbd406e_0.file.upgrader.inc.tpl.php(253): sizeof(NULL) #2 /home/corconsc/blog.corcons.com/bundled-libs/Smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_5d2d99c68ee6d3_95491941(Object(Smarty_Internal_Template)) #3 /home/corconsc/blog.corcons.com/bundled-libs/Smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode(Object(Smarty_Internal_Template)) #4 /home/corconsc/blog.corcons.com/bundled-libs/Smarty/libs/sysplugins/smarty_internal_template.php(216): Smarty_Template_Compiled- in /home/corconsc/blog.corcons.com/templates_c/timeline/b8/f9/3f/b8f93f2c5be720c95c25162d4483180bacbd406e_0.file.upgrader.inc.tpl.php on line 253
== ERROR-REPORT (BETA/ALPHA-BUILDS) ==
Fatal Error: Uncaught ErrorException: Warning: sizeof(): Parameter must be an array or an object that implements Countable in /home/corconsc/blog.corcons.com/templates_c/timeline/b8/f9/3f/b8f93f2c5be720c95c25162d4483180bacbd406e_0.file.upgrader.inc.tpl.php:253 Stack trace: #0 [internal function]: errorToExceptionHandler(2, 'sizeof(): Param...', '/home/corconsc/...', 253, Array) #1 /home/corconsc/blog.corcons.com/templates_c/timeline/b8/f9/3f/b8f93f2c5be720c95c25162d4483180bacbd406e_0.file.upgrader.inc.tpl.php(253): sizeof(NULL) #2 /home/corconsc/blog.corcons.com/bundled-libs/Smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_5d2d99c68ee6d3_95491941(Object(Smarty_Internal_Template)) #3 /home/corconsc/blog.corcons.com/bundled-libs/Smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode(Object(Smarty_Internal_Template)) #4 /home/corconsc/blog.corcons.com/bundled-libs/Smarty/libs/sysplugins/smarty_internal_template.php(216): Smarty_Template_Compiled- in /home/corconsc/blog.corcons.com/templates_c/timeline/b8/f9/3f/b8f93f2c5be720c95c25162d4483180bacbd406e_0.file.upgrader.inc.tpl.php on line 253.
For more details set $serendipity['production'] = 'debug' in serendipity_config_local.inc.php to receive a stack-trace.



Fatal error: Uncaught ErrorException: Fatal Error: Uncaught ErrorException: Warning: sizeof(): Parameter must be an array or an object that implements Countable in /home/corconsc/blog.corcons.com/templates_c/timeline/b8/f9/3f/b8f93f2c5be720c95c25162d4483180bacbd406e_0.file.upgrader.inc.tpl.php:253
Stack trace:
#0 [internal function]: errorToExceptionHandler(2, 'sizeof(): Param...', '/home/corconsc/...', 253, Array)
#1 /home/corconsc/blog.corcons.com/templates_c/timeline/b8/f9/3f/b8f93f2c5be720c95c25162d4483180bacbd406e_0.file.upgrader.inc.tpl.php(253): sizeof(NULL)
#2 /home/corconsc/blog.corcons.com/bundled-libs/Smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_5d2d99c68ee6d3_95491941(Object(Smarty_Internal_Template))
#3 /home/corconsc/blog.corcons.com/bundled-libs/Smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode(Object(Smarty_Internal_Template))
#4 /home/corconsc/blog.corcons.com/bundled-libs/Smarty/libs/sysplugins/smarty_internal_templa in /home/corconsc/blog.corcons.com/templates_c/timeline/b8/f9/3f/b8f93f2c5be720c95c25162d4483180bacbd406e_0.file.upgrader.inc.tpl.php on line 253

corcons
Regular
Posts: 15
Joined: Sun Jun 30, 2019 11:54 pm

Re: "Uncaught Error" when updating from 2.15 to 2.3-beta1

Post by corcons » Tue Jul 16, 2019 1:36 pm

Verify Installation Integrity
Unable to compare checksums! (No checksums.inc.php in main directory)
File is there but empty
After copying he file from the downloaded version, transfered them to the main die the check ferifyed "All required files verified."

Fatal errors from plugins after update and running PHP version 7.2 (server error file)

Code: Select all

[16-Jul-2019 11:24:17 UTC] PHP Fatal error:  Uncaught ErrorException: Warning: A non-numeric value encountered in /home/corconsc/blog.corcons.com/plugins/serendipity_event_karma/serendipity_event_karma.php:2063
Stack trace:
#0 /home/corconsc/blog.corcons.com/plugins/serendipity_event_karma/serendipity_event_karma.php(2063): errorToExceptionHandler(2, 'A non-numeric v...', '/home/corconsc/...', 2063, Array)
#1 /home/corconsc/blog.corcons.com/plugins/serendipity_event_karma/serendipity_event_karma.php(1404): serendipity_event_karma->createRatingBar('29', 0, 0)
#2 /home/corconsc/blog.corcons.com/include/plugin_api.inc.php(1138): serendipity_event_karma->event_hook('entry_display', Object(serendipity_property_bag), Array, Array)
#3 /home/corconsc/blog.corcons.com/include/functions_entries.inc.php(1065): serendipity_plugin_api::hook_event('entry_display', Array, Array)
#4 /home/corconsc/blog.corcons.com/include/genpage.inc.php(129): serendipity_printEntries(Array)
#5 /home/corconsc/blog.corcons.com/include/functions_routing.inc.php(18): include('/home/corcon in /home/corconsc/blog.corcons.com/plugins/serendipity_event_karma/serendipity_event_karma.php on line 2063
[16-Jul-2019 11:28:33 UTC] PHP Fatal error:  Uncaught ErrorException: Warning: Use of undefined constant baseURL - assumed 'baseURL' (this will throw an Error in a future version of PHP) in /home/corconsc/blog.corcons.com/plugins/serendipity_plugin_wikipedia_finder/serendipity_plugin_wikipedia_finder.php:165
Stack trace:
#0 /home/corconsc/blog.corcons.com/plugins/serendipity_plugin_wikipedia_finder/serendipity_plugin_wikipedia_finder.php(165): errorToExceptionHandler(2, 'Use of undefine...', '/home/corconsc/...', 165, Array)
#1 /home/corconsc/blog.corcons.com/include/plugin_api.inc.php(933): serendipity_plugin_wikipedia_finder->generate_content('Wikipedia Finde...')
#2 /home/corconsc/blog.corcons.com/include/functions_smarty.inc.php(619): serendipity_plugin_api::generate_plugins('right')
#3 /home/corconsc/blog.corcons.com/templates_c/timeline/23/1f/59/231f593a695fb9b7511cf9c996cddcd7c1019c86_0.file.index.tpl.php(348): serendipity_smarty_printSidebar(Array, Object(Smarty_Internal_Template))
#4 /home/corconsc/blog.corcons.com/bundled-libs/Smarty/libs/sysp in /home/corconsc/blog.corcons.com/plugins/serendipity_plugin_wikipedia_finder/serendipity_plugin_wikipedia_finder.php on line 165

corcons
Regular
Posts: 15
Joined: Sun Jun 30, 2019 11:54 pm

Re: "Uncaught Error" when updating from 2.15 to 2.3-beta1

Post by corcons » Tue Jul 16, 2019 2:22 pm

If I update editing pages following warning and error:

Code: Select all

Warning: Unsupported declare 'strict_types' in /home/corconsc/blog.corcons.com/bundled-libs/voku/simple-cache/src/voku/cache/CacheAdapterAutoManager.php on line 3

Parse error: syntax error, unexpected ':', expecting ';' or '{' in /home/corconsc/blog.corcons.com/bundled-libs/voku/simple-cache/src/voku/cache/CacheAdapterAutoManager.php on line 32

User avatar
onli
Regular
Posts: 2220
Joined: Tue Sep 09, 2008 10:04 pm
Contact:

Re: "Uncaught Error" when updating from 2.15 to 2.3-beta1

Post by onli » Tue Jul 16, 2019 2:55 pm

I assume this is still running PHP 5.6. In PHP 7 strict_types should be understood, so the most likely explanation is the switch to PHP 7 did not work. Can you confirm?

There seem to be multiple different errors in plugins and themes used here:

1. error points to timeline. You should talk with Don about that, btu we can also have a look when the rest is fixed.
2. error seems to be in serendipity_plugin_wikipedia_finder. And yes, line 165 uses a constant that does not exist. That I can fix now.
3. error it claims to be in serendipity_event_karma.php. Line 2063 is indeed a calculation, maybe one of those variables in really not a number? PHP 5.6 probably did not care about that. Can you edit the file and add (int) in front of the variables?

corcons
Regular
Posts: 15
Joined: Sun Jun 30, 2019 11:54 pm

Re: "Uncaught Error" when updating from 2.15 to 2.3-beta1

Post by corcons » Tue Jul 16, 2019 4:20 pm

Yes I've put everything back to Serendipity version 2.1.5 and PHP version to 7.2 as it was before the update.
On the Karma plugin I've put the (int) and the error is gone. If I run PHP 5.6 the error stays.
This are the actual errors / warnings now on Serendipity version 2.1.5 and PHP version to 7.2:

Code: Select all

[16-Jul-2019 14:10:26 UTC] PHP Warning:  Use of undefined constant Y - assumed 'Y' (this will throw an Error in a future version of PHP) in /home/corconsc/blog.corcons.com/templates/timeline/config.inc.php on line 211
[16-Jul-2019 14:10:26 UTC] PHP Warning:  Use of undefined constant baseURL - assumed 'baseURL' (this will throw an Error in a future version of PHP) in /home/corconsc/blog.corcons.com/plugins/serendipity_plugin_wikipedia_finder/serendipity_plugin_wikipedia_finder.php on line 165
But what is happen if I upgrade to Serendipity Version 2.3-beta1 running with PHP 7.2 and there is no frontend and neither a backend sow up in the browser: JUST THE BUNCH OF ERRORS????????? But as a miracle, if I set PHP to 5.6 the new version function. I guess this is not that is what we want.

corcons
Regular
Posts: 15
Joined: Sun Jun 30, 2019 11:54 pm

Re: "Uncaught Error" when updating from 2.15 to 2.3-beta1

Post by corcons » Tue Jul 16, 2019 4:20 pm

Yes I've put everything back to Serendipity version 2.1.5 and PHP version to 7.2 as it was before the update.
On the Karma plugin I've put the (int) and the error is gone. If I run PHP 5.6 the error stays.
This are the actual errors / warnings now on Serendipity version 2.1.5 and PHP version to 7.2:

Code: Select all

[16-Jul-2019 14:10:26 UTC] PHP Warning:  Use of undefined constant Y - assumed 'Y' (this will throw an Error in a future version of PHP) in /home/corconsc/blog.corcons.com/templates/timeline/config.inc.php on line 211
[16-Jul-2019 14:10:26 UTC] PHP Warning:  Use of undefined constant baseURL - assumed 'baseURL' (this will throw an Error in a future version of PHP) in /home/corconsc/blog.corcons.com/plugins/serendipity_plugin_wikipedia_finder/serendipity_plugin_wikipedia_finder.php on line 165
But what is happen if I upgrade to Serendipity Version 2.3-beta1 running with PHP 7.2 and there is no frontend and neither a backend sow up in the browser: JUST THE BUNCH OF ERRORS????????? But as a miracle, if I set PHP to 5.6 the new version function. I guess this is not that is what we want.

corcons
Regular
Posts: 15
Joined: Sun Jun 30, 2019 11:54 pm

Re: "Uncaught Error" when updating from 2.15 to 2.3-beta1

Post by corcons » Tue Jul 16, 2019 7:54 pm

Ok, I've re-upgraded to version 2.3 again but I've leave the PHP version on 5.6. After Updating I set the PHP version to 7.2 and so far it looks OK.

Post Reply