Posted: June 30, 2022 at 9:31 am
Hi Support, my server farm is doing a forced upgrade to PHP 8.1 from 7.4 Please can you check as i had to set the site back to PHO 7.4 and imagine this might be something you can help with |
|
Hi there, Currently, we don’t fully support PHP8 (we are working on it) but I can create a ticket to investigate this. Was this on the front end or the admin? Can you post a screenshot of the section she was on? https://eventespresso.com/wiki/troubleshooting-checklist/#screenshots |
|
Please see link to 2 images below |
|
Hmm strange. I’m not getting the same with PHP8.0 or 8.1. The critical error you’ve posted is a ‘user facing’ error, its the same error shown whenever there is a PHP fatal error thrown but it doesn’t show the actualy error itself. Can you check the server’s error logs when loading the above page to see what error is being thrown? I should be able to narrow it down from there. Your host will usually have a section in your control panel to view PHP errors. |
|
Thanks here is the error Fatal error: Uncaught RuntimeException: Called current() on invalid iterator in /usr/www/users/fluxtg/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/EE_Message_Repository.lib.php:266 Stack trace: #0 /usr/www/users/fluxtg/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/EE_Message_Repository.lib.php(266): SplObjectStorage->current() #1 /usr/www/users/fluxtg/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/EE_Messages_Generator.lib.php(145): EE_Message_Repository->current() #2 /usr/www/users/fluxtg/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/EE_Messages_Processor.lib.php(130): EE_Messages_Generator->generate() #3 /usr/www/users/fluxtg/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/EE_Messages_Processor.lib.php(101): EE_Messages_Processor->batch_generate_from_queue(Array, true) #4 /usr/www/users/fluxtg/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/EE_Messages_Queue.lib.php(475): EE_Messages_Processor->process_immediately_from_queue(Object(EE_Messages_Queue)) #5 /usr/www/users/fluxtg/wp-content/plugins/event-espresso-core-reg/modules/messages/EED_Messages.module.php(758): EE_Messages_Queue->initiate_request_by_priority() #6 /usr/www/users/fluxtg/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page.core.php(3970): EED_Messages::process_resend(Array) #7 /usr/www/users/fluxtg/wp-content/plugins/event-espresso-core-reg/admin_pages/registrations/Registrations_Admin_Page.core.php(3230): EE_Admin_Page->_process_resend_registration() #8 /usr/www/users/fluxtg/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page.core.php(1025): Registrations_Admin_Page->_resend_registration() #9 /usr/www/users/fluxtg/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page_CPT.core.php(1163): EE_Admin_Page->_route_admin_request() #10 /usr/www/users/fluxtg/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page.core.php(607): EE_Admin_Page_CPT->route_admin_request() #11 /usr/www/users/fluxtg/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page.core.php(231): EE_Admin_Page->_page_setup() #12 /usr/www/users/fluxtg/wp-content/plugins/event-espresso-core-reg/admin_pages/registrations/Registrations_Admin_Page.core.php(83): EE_Admin_Page->__construct(true) #13 /usr/www/users/fluxtg/wp-content/plugins/event-espresso-core-reg/caffeinated/admin/extend/registrations/Extend_Registrations_Admin_Page.core.php(34): Registrations_Admin_Page->__construct(true) #14 [internal function]: Extend_Registrations_Admin_Page->__construct(true) #15 /usr/www/users/fluxtg/wp-content/plugins/event-espresso-core-reg/core/EE_Registry.core.php(1275): ReflectionClass->newInstanceArgs(Array) #16 /usr/www/users/fluxtg/wp-content/plugins/event-espresso-core-reg/core/EE_Registry.core.php(784): EE_Registry->_create_object(‘Extend_Registra…’, Array, ”, false) #17 /usr/www/users/fluxtg/wp-content/plugins/event-espresso-core-reg/core/services/loaders/CoreLoader.php(111): EE_Registry->create(‘Extend_Registra…’, Array, true, false, false, ”) #18 /usr/www/users/fluxtg/wp-content/plugins/event-espresso-core-reg/core/services/loaders/CachingLoader.php(158): EventEspresso\core\services\loaders\CoreLoader->load(‘Extend_Registra…’, Array, true) #19 /usr/www/users/fluxtg/wp-content/plugins/event-espresso-core-reg/core/services/loaders/Loader.php(82): EventEspresso\core\services\loaders\CachingLoader->load(‘Extend_Registra…’, Array, true) #20 /usr/www/users/fluxtg/wp-content/plugins/event-espresso-core-reg/core/services/loaders/Loader.php(105): EventEspresso\core\services\loaders\Loader->load(‘Extend_Registra…’, Array) #21 /usr/www/users/fluxtg/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page_Init.core.php(428): EventEspresso\core\services\loaders\Loader->getShared(‘Extend_Registra…’, Array) #22 /usr/www/users/fluxtg/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page_CPT_Init.core.php(25): EE_Admin_Page_Init->_initialize_admin_page() #23 /usr/www/users/fluxtg/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page_Loader.core.php(355): EE_Admin_Page_CPT_Init->do_initial_loads() #24 /usr/www/users/fluxtg/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page_Loader.core.php(87): EE_Admin_Page_Loader->_get_installed_pages() #25 [internal function]: EE_Admin_Page_Loader->__construct(Object(EventEspresso\core\services\loaders\Loader)) #26 /usr/www/users/fluxtg/wp-content/plugins/event-espresso-core-reg/core/EE_Registry.core.php(1275): ReflectionClass->newInstanceArgs(Array) #27 /usr/www/users/fluxtg/wp-content/plugins/event-espresso-core-reg/core/EE_Registry.core.php(784): EE_Registry->_create_object(‘EE_Admin_Page_L…’, Array, ”, false) #28 /usr/www/users/fluxtg/wp-content/plugins/event-espresso-core-reg/core/services/loaders/CoreLoader.php(111): EE_Registry->create(‘EE_Admin_Page_L…’, Array, true, false, false, ”) #29 /usr/www/users/fluxtg/wp-content/plugins/event-espresso-core-reg/core/services/loaders/CachingLoader.php(158): EventEspresso\core\services\loaders\CoreLoader->load(‘EE_Admin_Page_L…’, Array, true) #30 /usr/www/users/fluxtg/wp-content/plugins/event-espresso-core-reg/core/services/loaders/Loader.php(82): EventEspresso\core\services\loaders\CachingLoader->load(‘EE_Admin_Page_L…’, Array, true) #31 /usr/www/users/fluxtg/wp-content/plugins/event-espresso-core-reg/core/services/loaders/Loader.php(105): EventEspresso\core\services\loaders\Loader->load(‘EE_Admin_Page_L…’, Array) #32 /usr/www/users/fluxtg/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin.core.php(211): EventEspresso\core\services\loaders\Loader->getShared(‘EE_Admin_Page_L…’, Array) #33 /usr/www/users/fluxtg/wp-includes/class-wp-hook.php(307): EE_Admin->init(”) #34 /usr/www/users/fluxtg/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(”, Array) #35 /usr/www/users/fluxtg/wp-includes/plugin.php(476): WP_Hook->do_action(Array) #36 /usr/www/users/fluxtg/wp-content/plugins/event-espresso-core-reg/core/EE_System.core.php(1263): do_action(‘AHEE__EE_System…’) #37 /usr/www/users/fluxtg/wp-includes/class-wp-hook.php(307): EE_System->initialize_last(”) #38 /usr/www/users/fluxtg/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array) #39 /usr/www/users/fluxtg/wp-includes/plugin.php(476): WP_Hook->do_action(Array) #40 /usr/www/users/fluxtg/wp-settings.php(598): do_action(‘init’) #41 /usr/www/users/fluxtg/wp-config.php(79): require_once(‘/usr/www/users/…’) #42 /usr/www/users/fluxtg/wp-load.php(50): require_once(‘/usr/www/users/…’) #43 /usr/www/users/fluxtg/wp-admin/admin.php(34): require_once(‘/usr/www/users/…’) #44 {main} thrown in /usr/www/users/fluxtg/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/EE_Message_Repository.lib.php on line 266 Learn more about troubleshooting WordPress. |
|
Hi there! Thanks for getting back to us. Have you already tried to check if it’s a conflict caused by your theme or third-party plugins? You can find more details on how to do it in the following article sections: Let me know if it helps! |
|
Thanks Joao for your reply |
|
Hmm, so the strange part of this is the fact that I can’t reproduce this when testing against 8.0 and 8.1 As far as I can tell I’m using the same steps as your but no fatal and the error stating the iterator is invalid is strange in itself. I’ve created a ticket for our developers to investigate this and see if they can find any clues. |
|
The support post ‘PHP 8.1 possible bug’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.