Jump to content

System errors logs and PHP error 500


Go to solution Solved by Marc,

Recommended Posts

Posted (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 by stu_m
Posted

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}

 

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...