Re: "Uncaught Error" when updating from 2.15 to 2.3-beta1
Posted: Sun Jun 02, 2019 10:48 am
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 and developer community
https://board.s9y.org/
The fix went in even after the release of the 2.3-beta.
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
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
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 32Code: 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
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
Hey onli, can you follow up to that and commit the necessary fixes, or should I add an issue to track that?onli wrote: Tue Jul 16, 2019 2:55 pm 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?
Looks like the "(int)" fixed it?onli wrote: Sun Jul 21, 2019 2:35 pmHi, I pushed an update for the wikipedia_finder (1.5.1), but for serendipity_event_karma I'd need more feedback.
corcons wrote: 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.
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 253Code: Select all
[21-Jul-2019 14:15:17 UTC] PHP Fatal error: Uncaught ErrorException: Warning: mysqli_query(): Empty query in /home/corconsc/blog.corcons.com/de/include/db/mysqli.inc.php:68
Stack trace:
#0 [internal function]: errorToExceptionHandler(2, 'mysqli_query():...', '/home/corconsc/...', 68, Array)
#1 /home/corconsc/blog.corcons.com/de/include/db/mysqli.inc.php(68): mysqli_query(Object(mysqli), '')
#2 /home/corconsc/blog.corcons.com/de/plugins/serendipity_event_metadesc/serendipity_event_metadesc.php(251): serendipity_db_query(NULL)
#3 /home/corconsc/blog.corcons.com/de/include/plugin_api.inc.php(1138): serendipity_event_metadesc->event_hook('backend_publish', Object(serendipity_property_bag), Array, 1)
#4 /home/corconsc/blog.corcons.com/de/include/functions_entries.inc.php(1468): serendipity_plugin_api::hook_event('backend_publish', Array, 1)
#5 /home/corconsc/blog.corcons.com/de/include/functions_config.inc.php(832): serendipity_updertEntry(Array)
#6 /home/corconsc/blog.corcons.com/de/serendipity_admin.php(52): serendipity_iframe(Array, 'save')
#7 {main}
t in /home/corconsc/blog.corcons.com/de/include/db/mysqli.inc.php on line 68
[21-Jul-2019 14:17:39 UTC] PHP Fatal error: Uncaught ErrorException: Warning: mysqli_query(): Empty query in /home/corconsc/blog.corcons.com/de/include/db/mysqli.inc.php:68
Stack trace:
#0 [internal function]: errorToExceptionHandler(2, 'mysqli_query():...', '/home/corconsc/...', 68, Array)
#1 /home/corconsc/blog.corcons.com/de/include/db/mysqli.inc.php(68): mysqli_query(Object(mysqli), '')
#2 /home/corconsc/blog.corcons.com/de/plugins/serendipity_event_metadesc/serendipity_event_metadesc.php(251): serendipity_db_query(NULL)
#3 /home/corconsc/blog.corcons.com/de/include/plugin_api.inc.php(1138): serendipity_event_metadesc->event_hook('backend_save', Object(serendipity_property_bag), Array, 0)
#4 /home/corconsc/blog.corcons.com/de/include/functions_entries.inc.php(1470): serendipity_plugin_api::hook_event('backend_save', Array, 0)
#5 /home/corconsc/blog.corcons.com/de/include/functions_config.inc.php(832): serendipity_updertEntry(Array)
#6 /home/corconsc/blog.corcons.com/de/serendipity_admin.php(52): serendipity_iframe(Array, 'save')
#7 {main}
thrown in /home/corconsc/blog.corcons.com/de/include/db/mysqli.inc.php on line 68
Yes. Looks like a regression from https://github.com/s9y/additional_plugins/pull/99.onli wrote: Sun Jul 21, 2019 8:04 pmIt looks like there is an error in serendipity_event_metadesc.php, which this change in mysql now manages to supress, but I'm not very familiar with that plugin. thh uses it though I think