Support

Home Forums Event Espresso Premium Site down with EE Activated | Warning: Invalid argument supplied for foreach

Site down with EE Activated | Warning: Invalid argument supplied for foreach

Posted: February 14, 2017 at 3:10 pm

Viewing 1 reply thread


northshore13624

February 14, 2017 at 3:10 pm

We recently had to get our EE site key reissued because our update key was not allowing us to update the plugin. Once we received the new key we updated the EE 4 core and everything way working properly. Two weeks later the site went down with the following Event Espresso error displayed on the website (See below.)

We are running WP Version 4.7.2 and Event Espresso Version 4.9.28.p

Below are the errors showing up on our site.

Warning: Invalid argument supplied for foreach() in /home/content/a2pnexwpnas01_data01/41/3357241/html/wp-content/plugins/event-espresso-core-reg/core/EE_System.core.php on line 599

Warning: Cannot modify header information – headers already sent by (output started at /home/content/a2pnexwpnas01_data01/41/3357241/html/wp-content/plugins/event-espresso-core-reg/core/EE_System.core.php:599) in /home/content/a2pnexwpnas01_data01/41/3357241/html/wp-includes/pluggable.php on line 1179

We tried tracking this down in the code and it seems to have to do with the following (below) – I presume it is a check against the most recent version of the new key that we received a few weeks ago???

/**
* Gets the most recently active version listed in the activation history,
* and if none are found (ie, it’s a brand new install) returns ‘0.0.0.dev.000’.
*
* @param array $activation_history (keys are versions, values are arrays of times activated,
* sometimes containing ‘unknown-date’
* @return string
*/

Just looking for a fix so we can get back to using this great plugin and add-on solutions.


Josh

  • Support Staff

February 14, 2017 at 3:16 pm

Hi there,

Actually that code isn’t checking the support license key, it’s only tracking which versions of the software were activated and when (so you can know the date each version of Event Espresso was activated by visiting the Event Espresso > Maintenance page.) Along with that, a PHP Warning should not result in the site going down. If you switch to the default WordPress theme, deactivate all WordPress plugins, then reactivate Event Espresso 4, does the site go down again?

It may also help to install a fresh copy of Event Espresso 4.9.30.p, and you can download a copy from your account page.

Viewing 1 reply thread

The support post ‘Site down with EE Activated | Warning: Invalid argument supplied for foreach’ 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