Support

Home Forums Event Espresso Premium PHP Error

PHP Error

Posted: August 5, 2013 at 6:20 am


Dustin Wilcox

August 5, 2013 at 6:20 am

Moved my site to a different development domain and now getting two php errors. I’ve tried uninstalling and reinstalling…no luck.

Warning: Invalid argument supplied for foreach() in /home/wilcoxco/public_html/domains/aerospacemaintenancecompetition.com/wp-content/plugins/event-espresso/includes/functions/main.php on line 1130

Warning: session_start() [function.session-start]: Cannot send session cache limiter – headers already sent (output started at /home/wilcoxco/public_html/domains/aerospacemaintenancecompetition.com/wp-content/plugins/event-espresso/includes/functions/main.php:1130) in /home/wilcoxco/public_html/domains/aerospacemaintenancecompetition.com/wp-content/plugins/event-espresso/espresso.php on line 56


Josh

  • Support Staff

August 5, 2013 at 11:59 am

Hi Dustin,

When you moved the site did you update the database so that the file path strings point to the new site? In most cases a plugin like WP Migrate DB or WP Migrate DB Pro can automate this.

The reason that it’s showing you an invalid argument error is because it’s trying to check for files for active payment gateways at the old site’s location.

What you can do at this point to fix this is clear out the active gateway options by adding this to your active theme’s functions.php file:

update_option ( 'event_espresso_active_gateways', '' );

then save the file, refresh a page on the site, then remove that line of code from functions.php then save again. When you go to the Event Espresso>Payments Settings page you’ll see a few new errors that will go away after you activate one gateway and save the settings.

The support post ‘PHP Error’ 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.

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: closed

Updated by  Josh 6 years ago ago

Topic Tags

Tagged: 

Notifications

This topic is: not resolved
Do NOT follow this link or you will be banned from the site!