Support

Home Forums Event Espresso Premium Error after updating to 4.6 and then moving to production in WPEngine

Error after updating to 4.6 and then moving to production in WPEngine

Posted: February 6, 2015 at 1:50 pm


ftdatabase

February 6, 2015 at 1:50 pm

Hello,

After updating to 4.6 and then moving to production in WPEngine my site is down with a HTTP 500 error. I see the following in the logs:

PHP Fatal error: Cannot redeclare class ee_data_migration_class_base in /nas/wp/www/cluster-103/megadoevents/wp-content/plugins/event-espresso-core-reg/core/EE_Data_Migration_Script_Base.core.php on line 636

I need to investigate more, and I do realize that the WPENgine publish process is a bit of a black box. That being said, this scenario has always worked for me before and I expect quite a few folks to use WPEngine and possibly hit this.

Any clues?


Lorenzo Orlando Caum

  • Support Staff

February 6, 2015 at 2:05 pm

Hi,

Please login to your site using an SFTP client and then rename the Event Espresso plugin folder.

event-espresso-core-reg –> event-espresso-core-reg1

That should restore access to your site. Then go ahead and login to your WP-admin.

From here, restore the name of the plugin folder:

event-espresso-core-reg1 –> event-espresso-core-reg

Then try reactivating Event Espresso through your WP dashboard.


Lorenzo


ftdatabase

February 6, 2015 at 2:29 pm

Thanks for the response, yes, this allows me to get back in, of course. However as soon as I rename the folder back, the error occurs again…


ftdatabase

February 6, 2015 at 2:41 pm

Okay, the bug is with WPEngine. Basically the staging to migration process does not mirror the file system correctly – in other words, it ADDS new files but does not DELETE files that were deleted from the staging environment. It looks like you guys have deleted a few PHP files and refactored – WPEngine ignored that, so I had duplicate classes.

Thank you!!


Lorenzo Orlando Caum

  • Support Staff

February 6, 2015 at 2:53 pm

Thanks for clarifying. You are correct on the major release.

An update will not work correctly if files are merged (overwritten).

Enjoy your weekend!


Lorenzo

The support post ‘Error after updating to 4.6 and then moving to production in WPEngine’ 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