Support

Home Forums Event Espresso Premium EE3 to EE4 Upgrade – errors and cart always empty

EE3 to EE4 Upgrade – errors and cart always empty

Posted: January 30, 2016 at 2:02 pm


Stephanie Mandel

January 30, 2016 at 2:02 pm

Hi,

We recently did a successful update from EE3 to EE4 on our dev site.

http://bpdevelopment.wpengine.com/community/cooking-classes/

However, when I ran the updates on our live site I ran into numerous errors throughout the data migration process and the events would add to the cart but the cart would always show empty and display a message saying the browser needed to enable cookies.

Our live site, currently reverted back to ee3: http://www.briarpatch.coop/community/cooking-classes/

So, I took the reverted copy and tested the update on a different development location (same server): http://bpsandbox.wpengine.com/community/cooking-classes/

I ran into many data errors on migration and when finished the site had about 10 messages saying “database tables wp_esp_answer exists when it shouldn’t..” and to add a define to the WP config to drop these tables and retry. Despite the errors this site functioned as expected.

Then I tried the upgrade AGAIN on our live site, same errors, same issue with the events adding to cart but not displaying. I even briefly enabled the default WP theme and the empty cart issue was still present.

ALL THREE SITES ARE IDENTICAL COPIES.

Can you please help direct us to get a successful update on our live site? Thanks a bunch!


Josh

  • Support Staff

January 30, 2016 at 3:51 pm

Hi Stephanie,

It turns out the difference between your staging sites and the live site is WPEngine runs caching on the live server, which will cause the errors you’re seeing when running EE4. To fix, you can need to contact WPEngine support and ask them to disable caching for all pages that serve Event content and process the registration steps. There’s more information in this guide:

https://eventespresso.com/wiki/setup-wpengine-hosting-event-espresso/


Stephanie Mandel

January 30, 2016 at 4:22 pm

Thanks that is interesting. Now, one of our installs works just fine – and the caching setup is identical between all the installs on WP Engine. Does that not point to another issue than caching – one that is install specific?


Stephanie Mandel

January 30, 2016 at 4:25 pm

Also, we have been running EE3 for about a year on WP Engine without these no-caching rules. It is only after upgrading to EE4.


Stephanie Mandel

January 30, 2016 at 4:25 pm

One more thing – does this related to the errors I am getting upon upgrading or the cart being empty or both?


Tony

  • Support Staff

February 1, 2016 at 3:15 am

Thanks that is interesting. Now, one of our installs works just fine – and the caching setup is identical between all the installs on WP Engine. Does that not point to another issue than caching – one that is install specific?

Which install? Staging or live?

I ran into many data errors on migration and when finished the site had about 10 messages saying “database tables wp_esp_answer exists when it shouldn’t..” and to add a define to the WP config to drop these tables and retry. Despite the errors this site functioned as expected.

This usually means that the database has been altered, this may have been from restoring a previous backup or installing different versions of EE4.

Basically EE4 checks which tables are already present within the database and compares that to what it is expecting from either the current release or the version that your site reports that it previously had installed. However if you are getting a notice for EVERY Event Espresso table then this is likely a false positive caused when the EE tables are within the database AND the wp_options value that stores the last installed version has been removed (meaning EE can see all of these tables but acroding to your site none should be there)

Then I tried the upgrade AGAIN on our live site, same errors, same issue with the events adding to cart but not displaying. I even briefly enabled the default WP theme and the empty cart issue was still present.

The events being added to the cart and then not displaying is due to to the caching mentioned above.

Once you run through the link above for setting up WPEngine that should stop happening.

Also, we have been running EE3 for about a year on WP Engine without these no-caching rules. It is only after upgrading to EE4.

EE4 works differently than EE3 but caching can still causes problems with EE3, its just that with EE4 it is more obvious with the checkout page.

One more thing – does this related to the errors I am getting upon upgrading or the cart being empty or both?

The ‘Nothing in your event queue’ issue is likely caching and should NOT effect migrations.

The ‘database tables wp_esp_answer exists when it shouldn’t..’ warnings are should not be causing the problems above but are informing you of a possible issue. I’ll check in with the developers on this.

Have you previously activated EE4 on the site and then decided to continue to use EE3?


Stephanie Mandel

February 2, 2016 at 11:39 am

Thanks all.

1) I had WP engine disable caching for those pages and we still have the issue of nothing adding to cart. I have created a test page on our live site to show you the issue:

http://www.briarpatch.coop/ee-test/

Again, I can set a default theme or disable plugins and the issue still exists.

2) Our Dev sites (there are two) both upgraded and work fine. Here is one of duplicates of this site we tested this on at first:

http://bpdevelopment.wpengine.com/community/cooking-classes/
U: bpdevelopment
P: 12345678

Please advise ASAP as our live site is unable to register for events and I am leaving it broke to get assistance from you. We appreciate your attention here! 🙂


Stephanie Mandel

February 2, 2016 at 11:39 am

PS – caches have been cleared since upgrade.


Tony

  • Support Staff

February 2, 2016 at 11:45 am

Hi Stephanie,

Your registration pages are still being cached by WPEngine.

Live site – http://take.ms/iu4Z6

Dev site – http://take.ms/bzual

Notice how the live site ‘hit’s the cache?

Staging servers on WPEngine do not have caching enabled, which is why the development sites work fine, the live site does have caching enabled and that is what is causing this problem. The registration pages are still not bypassing the cache.

This is something WPEngine need to fix as we can not prevent the server from caching the page.


Stephanie Mandel

February 2, 2016 at 12:38 pm

Thanks Tony – that was the ticket.

WP Engine had setup the exclusions correctly however they had to forcibly clear those specific caches on their in for the caching to disable.


Tony

  • Support Staff

February 2, 2016 at 12:57 pm

Thank you for keeping us updated, I’m glad it’s now working 🙂

Any further problems just let us know.

The support post ‘EE3 to EE4 Upgrade – errors and cart always empty’ 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