stu_m Posted August 11, 2022 Posted August 11, 2022 (edited) Today I noticed I was getting a lot of 500 errors which is a php issue I have checked system logs and have loads of uncaught_exception errors Error: Call to undefined method DateTime::getDateInformation() (0) #0 /home/stu1981/public_html/applications/calendar/sources/Event/Event.php(363): IPS\calendar\_Event::_findOccurances(Object(IPS\calendar\Date), NULL, Object(IPS\calendar\Date), Object(IPS\calendar\Date), Array) #1 /home/stu1981/public_html/applications/calendar/sources/Event/Event.php(2127): IPS\calendar\_Event->findOccurrences(Object(IPS\calendar\Date), Object(IPS\calendar\Date)) #2 /home/stu1981/public_html/applications/calendar/widgets/upcomingEvents.php(153): IPS\calendar\_Event::retrieveEvents(Object(IPS\calendar\Date), Object(IPS\calendar\Date), NULL, 5, false) #3 /home/stu1981/public_html/system/Widget/Widget.php(833): IPS\calendar\widgets\_upcomingEvents->render() #4 /home/stu1981/public_html/system/Widget/Widget.php(888): IPS\_Widget->_render() #5 /home/stu1981/public_html/system/Theme/Theme.php(885) : eval()'d code(18611): IPS\_Widget->__toString() #6 /home/stu1981/public_html/system/Theme/SandboxedTemplate.php(61): IPS\Theme\class_core_front_global->widgetContainer('sidebar', 'vertical') #7 /home/stu1981/public_html/system/Theme/Theme.php(885) : eval()'d code(15851): IPS\Theme\_SandboxedTemplate->__call('widgetContainer', Array) #8 /home/stu1981/public_html/system/Theme/SandboxedTemplate.php(61): IPS\Theme\class_core_front_global->sidebar('right') #9 /home/stu1981/public_html/system/Theme/Theme.php(885) : eval()'d code(6864): IPS\Theme\_SandboxedTemplate->__call('sidebar', Array) #10 /home/stu1981/public_html/system/Theme/SandboxedTemplate.php(61): IPS\Theme\class_core_front_global->globalTemplate('The Motorbike F...', '\n\n<div class='i...', Array) #11 /home/stu1981/public_html/system/Dispatcher/Dispatcher.php(173): IPS\Theme\_SandboxedTemplate->__call('globalTemplate', Array) #12 /home/stu1981/public_html/system/Dispatcher/Standard.php(113): IPS\_Dispatcher->finish() #13 /home/stu1981/public_html/system/Dispatcher/Front.php(625): IPS\Dispatcher\_Standard->finish() #14 /home/stu1981/public_html/system/Dispatcher/Dispatcher.php(155): IPS\Dispatcher\_Front->finish() #15 /home/stu1981/public_html/index.php(13): IPS\_Dispatcher->run() #16 {main} #0 /home/stu1981/public_html/init.php(1029): IPS\_Log::log('Error: Call to ...', 'uncaught_except...') #1 /home/stu1981/public_html/system/Widget/Widget.php(939): IPS\IPS::exceptionHandler(Object(Error)) #2 /home/stu1981/public_html/system/Theme/Theme.php(885) : eval()'d code(18611): IPS\_Widget->__toString() #3 /home/stu1981/public_html/system/Theme/SandboxedTemplate.php(61): IPS\Theme\class_core_front_global->widgetContainer('sidebar', 'vertical') #4 /home/stu1981/public_html/system/Theme/Theme.php(885) : eval()'d code(15851): IPS\Theme\_SandboxedTemplate->__call('widgetContainer', Array) #5 /home/stu1981/public_html/system/Theme/SandboxedTemplate.php(61): IPS\Theme\class_core_front_global->sidebar('right') #6 /home/stu1981/public_html/system/Theme/Theme.php(885) : eval()'d code(6864): IPS\Theme\_SandboxedTemplate->__call('sidebar', Array) #7 /home/stu1981/public_html/system/Theme/SandboxedTemplate.php(61): IPS\Theme\class_core_front_global->globalTemplate('The Motorbike F...', '\n\n<div class='i...', Array) #8 /home/stu1981/public_html/system/Dispatcher/Dispatcher.php(173): IPS\Theme\_SandboxedTemplate->__call('globalTemplate', Array) #9 /home/stu1981/public_html/system/Dispatcher/Standard.php(113): IPS\_Dispatcher->finish() #10 /home/stu1981/public_html/system/Dispatcher/Front.php(625): IPS\Dispatcher\_Standard->finish() #11 /home/stu1981/public_html/system/Dispatcher/Dispatcher.php(155): IPS\Dispatcher\_Front->finish() #12 /home/stu1981/public_html/index.php(13): IPS\_Dispatcher->run() #13 {main} These only started at 0430 this morning which is when the server updates happen I was running php8 I have just changed to 7.4 and the error seems to have stopped I have a sneaky suspicion this is related to a php update Currently running 4.7 not yet updated to 4.7.1 Edited August 11, 2022 by stu_m
stu_m Posted August 11, 2022 Author Posted August 11, 2022 There is two errors 406 of one and 16 of the other 406 Error: Call to undefined method DateTime::getDateInformation() (0) #0 /home/stu1981/public_html/applications/calendar/sources/Event/Event.php(363): IPS\calendar\_Event::_findOccurances(Object(IPS\calendar\Date), NULL, Object(IPS\calendar\Date), Object(IPS\calendar\Date), Array) #1 /home/stu1981/public_html/applications/calendar/sources/Event/Event.php(2127): IPS\calendar\_Event->findOccurrences(Object(IPS\calendar\Date), Object(IPS\calendar\Date)) #2 /home/stu1981/public_html/applications/calendar/widgets/upcomingEvents.php(153): IPS\calendar\_Event::retrieveEvents(Object(IPS\calendar\Date), Object(IPS\calendar\Date), NULL, 5, false) #3 /home/stu1981/public_html/system/Widget/Widget.php(833): IPS\calendar\widgets\_upcomingEvents->render() #4 /home/stu1981/public_html/system/Widget/Widget.php(888): IPS\_Widget->_render() #5 /home/stu1981/public_html/system/Theme/Theme.php(885) : eval()'d code(18611): IPS\_Widget->__toString() #6 /home/stu1981/public_html/system/Theme/SandboxedTemplate.php(61): IPS\Theme\class_core_front_global->widgetContainer('sidebar', 'vertical') #7 /home/stu1981/public_html/system/Theme/Theme.php(885) : eval()'d code(15851): IPS\Theme\_SandboxedTemplate->__call('widgetContainer', Array) #8 /home/stu1981/public_html/system/Theme/SandboxedTemplate.php(61): IPS\Theme\class_core_front_global->sidebar('right') #9 /home/stu1981/public_html/system/Theme/Theme.php(885) : eval()'d code(6864): IPS\Theme\_SandboxedTemplate->__call('sidebar', Array) #10 /home/stu1981/public_html/system/Theme/SandboxedTemplate.php(61): IPS\Theme\class_core_front_global->globalTemplate('The Motorbike F...', '\n\n<div class='i...', Array) #11 /home/stu1981/public_html/system/Dispatcher/Dispatcher.php(173): IPS\Theme\_SandboxedTemplate->__call('globalTemplate', Array) #12 /home/stu1981/public_html/system/Dispatcher/Standard.php(113): IPS\_Dispatcher->finish() #13 /home/stu1981/public_html/system/Dispatcher/Front.php(625): IPS\Dispatcher\_Standard->finish() #14 /home/stu1981/public_html/system/Dispatcher/Dispatcher.php(155): IPS\Dispatcher\_Front->finish() #15 /home/stu1981/public_html/index.php(13): IPS\_Dispatcher->run() #16 {main} 16 Error: Call to undefined method DateTime::getDateInformation() (0) #0 /home/stu1981/public_html/applications/calendar/sources/Event/Event.php(363): IPS\calendar\_Event::_findOccurances(Object(IPS\calendar\Date), NULL, Object(IPS\calendar\Date), Object(IPS\calendar\Date), Array) #1 /home/stu1981/public_html/applications/calendar/sources/Event/Event.php(2127): IPS\calendar\_Event->findOccurrences(Object(IPS\calendar\Date), Object(IPS\calendar\Date)) #2 /home/stu1981/public_html/applications/calendar/modules/front/calendar/view.php(255): IPS\calendar\_Event::retrieveEvents(Object(IPS\calendar\Date), Object(IPS\calendar\Date), NULL) #3 /home/stu1981/public_html/applications/calendar/modules/front/calendar/view.php(113): IPS\calendar\modules\front\calendar\_view->_viewWeek(Object(IPS\Helpers\Form)) #4 /home/stu1981/public_html/system/Dispatcher/Controller.php(118): IPS\calendar\modules\front\calendar\_view->manage() #5 /home/stu1981/public_html/system/Dispatcher/Dispatcher.php(153): IPS\Dispatcher\_Controller->execute() #6 /home/stu1981/public_html/index.php(13): IPS\_Dispatcher->run() #7 {main}
Jim M Posted August 11, 2022 Posted August 11, 2022 This is something which our team is investigating in relation to PHP 8. Which your experience makes sense here that it works going back to PHP 7.4. stu_m 1
stu_m Posted August 11, 2022 Author Posted August 11, 2022 I will stay on PHP 7.4 for now then until a fix is found SeNioR- 1
Solution Marc Posted August 15, 2022 Solution Posted August 15, 2022 A patch has been released to resolve this issue. Please visit support in your admin CP where you will see "optional patch" available. stu_m 1
Recommended Posts