Support

Home Forums Event Espresso Premium Moved Site to new host, now error.

Moved Site to new host, now error.

Posted: September 3, 2013 at 3:59 pm


ILAwebsite

September 3, 2013 at 3:59 pm

I moved the site to a new host, but now I get:

<code>Warning: Invalid argument supplied for foreach() in /usr/local/admin/apache/vhosts/domain.org/httpdocs/wp-content/plugins/event-espresso/includes/functions/main.php on line 1130

Fatal error: session_start() [&lt;a href=&#039;function.session-start&#039;&gt;function.session-start&lt;/a&gt;]: Failed to initialize storage module: files (path: ) in /usr/local/admin/apache/vhosts/domain.org/httpdocs/wp-content/plugins/event-espresso/espresso.php on line 56</code>

I’m using same domain, same everything, except for moving to a different host. Any ideas what broke?


Sidney Harrell

September 3, 2013 at 8:02 pm

The server is not able to write a file to preserve the session data. Based on the error message, it looks like the session save path has been set to /, instead of something like /tmp. You may want to check your php ini files (http://www.php.net/manual/en/session.configuration.php#ini.session.save-path) and run a test with the session_save_path() php function.


ILAwebsite

September 3, 2013 at 10:55 pm

My host is saying they’ve migrated everything over just as is, and there should be no issues. I resolved the main.php line 1130 issue by enabling payment gateways that, for some reason, got disabled during migration. Could it also be that something in the database needs to be updated to fix espresso.php line 56?

Let me know


Dean

September 4, 2013 at 3:42 am

Hello Cheri,

Can you go to the Event Espresso menu, then System Status. At the bottom it should have a section called PHP Sessions, it will tell you where the session path is and if it is writeable.

If you want us to check this, on the same page at the top click the Generate Report button, then copy and paste the results here.

The support post ‘Moved Site to new host, now 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.

Event Espresso