Support

Home Forums Event Espresso Premium Fatal Error after transferring to new host

Fatal Error after transferring to new host

Posted: July 13, 2023 at 5:35 am

Viewing 7 reply threads


UniquelyWired

July 13, 2023 at 5:35 am

I recently transferred site to new hosting company.

After transfer EE4 is throwing this fatal error:

Fatal error: Uncaught Error: Unsupported operand types in /wp-content/plugins/event-espresso-core-reg/core/EE_Session.core.php:1299

Stack trace:
#0 /wp-content/plugins/event-espresso-core-reg/core/EE_Session.core.php(813): EE_Session->updateSessionSettings(Array)
#1 /wp-content/plugins/event-espresso-core-reg/core/EE_Session.core.php(789): EE_Session->_get_sid_salt()
#2 /wp-content/plugins/event-espresso-core-reg/core/EE_Session.core.php(625): EE_Session->_generate_session_id()
#3 /wp-content/plugins/event-espresso-core-reg/core/EE_Session.core.php(324): EE_Session->_espresso_session()
#4 /wp-includes/class-wp-hook.php(308): EE_Session->open_session(”)
#5 /wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array)
#6 /wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#7 /wp-content/ in /home/pbcpba5/epcecfl.com/wp-content/plugins/event-espresso-core-reg/core/EE_Session.core.php on line 1299

Fatal error: Uncaught Error: Unsupported operand types in /wp-content/plugins/event-espresso-core-reg/core/EE_Session.core.php:1299

Stack trace:
#0 /wp-content/plugins/event-espresso-core-reg/core/EE_Session.core.php(1312): EE_Session->updateSessionSettings(Array)
#1 /wp-includes/class-wp-hook.php(308): EE_Session->garbageCollection(”)
#2 /wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array)
#3 /wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#4 /wp-includes/load.php(1144): do_action(‘shutdown’)
#5 [internal function]: shutdown_action_hook()
#6 {main} thrown in /wp-content/plugins/event-espresso-core-reg/core/EE_Session.core.php on line 1299

Any thoughts on what it could be?


Tony

  • Support Staff

July 13, 2023 at 6:33 am

Hi Carlos,

Which specific version number of Event Espresso are you running, please?

The code in question above is:

$updated_settings += get_option(EE_Session::OPTION_NAME_SETTINGS, []);

Either $updated_settings isn’t an array, or an array isn’t being returned but get_option()

We would need to troubleshoot this further to get more details on what is being returned on your site, do you have FTP access?


UniquelyWired

July 13, 2023 at 7:01 am

This reply has been marked as private.


Tony

  • Support Staff

July 14, 2023 at 8:04 am

Hi there,

Can you submit login credentials using this form please:

https://eventespresso.com/send-login-details/

I need both WP-Admin and FTP credentials for this as I’ll need to enable EE and add a custom plugin to run some debug code.

Thank you.


UniquelyWired

July 14, 2023 at 8:17 am

This reply has been marked as private.


Tony

  • Support Staff

July 14, 2023 at 11:30 am

Ok, so this has been fixed on your site.

However, I’m going to add some details on this because if you didn’t have this issue BEFORE you moved hosts but did after, then ‘something’ on the migrations wasn’t done right.

The details I shared above about the code in question is all valid.

The problem here was that get_option(EE_Session::OPTION_NAME_SETTINGS, []);

Returned false and we tried to use the returned value to ‘merge’ into an array, so:

array += false

Will result in Fatal error: Uncaught Error: Unsupported operand types

For get_option() to return false, there wasn’t an option within the DB to return… but then you’d have gotta this on your original site if that was the case. So somewhere along the migration that option has been lost, and if that has been lost, what else has?

I’ve created a ticket to change our code so that it doesn’t throw this fatal again but this issue is more than just a change in our code, I recommend going over your site to confirm everything else still works as it did prior to the migration.


UniquelyWired

July 15, 2023 at 5:52 am

Thanks for your help on this.

Everything looks to be working perfectly.

Could not have done this without your help.

Great support team.


Tony

  • Support Staff

July 17, 2023 at 2:29 am

You’re most welcome 🙂

If have a minute we would really appreciate it if you could share your experience with Event Espresso or provide a review on WP.org.

Viewing 7 reply threads

The support post ‘Fatal Error after transferring to new host’ 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.

Event Espresso