Support

Home Forums Event Espresso Premium Issues after migrating to WP Engine

Issues after migrating to WP Engine

Posted: November 1, 2016 at 7:59 am

Viewing 24 reply threads


Andy

November 1, 2016 at 7:59 am

Hi, I have migrated an Event Espresso site to WP Engine and have implemented the steps in your article https://eventespresso.com/wiki/setup-wpengine-hosting-event-espresso/. However I am getting intermittent errors when I try to book an event:

– Sometimes I get a 500 error which can be fixed by clearing the cookies, but then it happens again and I have to clear the cookies again
– Sometimes I get an error when I try to submit the event booking form: “This registration step could not be completed. Please refresh the page and try again”
– Occasionally I get a message: “An error has occurred: “Direct access to the registration checkout page is not allowed”
– The following errors are in the error log:

[Tue Nov 01 13:38:29.825447 2016] [:error] [pid 25822] [client 95.172.233.180:56394] PHP Warning: Missing argument 1 for EE_Request::__construct() in /nas/content/live/dialogueltd/wp-content/plugins/event-espresso-core-reg/core/request_stack/EE_Request.core.php on line 70, referer: http://dialogueltd.wpengine.com/wp-admin/admin.php?page=espresso_general_settings&action=critical_pages&critical_pages_nonce=b3838920b5

[Tue Nov 01 13:38:29.825583 2016] [:error] [pid 25822] [client 95.172.233.180:56394] PHP Warning: Missing argument 2 for EE_Request::__construct() in /nas/content/live/dialogueltd/wp-content/plugins/event-espresso-core-reg/core/request_stack/EE_Request.core.php on line 70, referer: http://dialogueltd.wpengine.com/wp-admin/admin.php?page=espresso_general_settings&action=critical_pages&critical_pages_nonce=b3838920b5

[Tue Nov 01 13:38:29.825651 2016] [:error] [pid 25822] [client 95.172.233.180:56394] PHP Warning: Missing argument 3 for EE_Request::__construct() in /nas/content/live/dialogueltd/wp-content/plugins/event-espresso-core-reg/core/request_stack/EE_Request.core.php on line 70, referer: http://dialogueltd.wpengine.com/wp-admin/admin.php?page=espresso_general_settings&action=critical_pages&critical_pages_nonce=b3838920b5

[Tue Nov 01 13:38:29.825728 2016] [:error] [pid 25822] [client 95.172.233.180:56394] PHP Warning: array_merge(): Argument #1 is not an array in /nas/content/live/dialogueltd/wp-content/plugins/event-espresso-core-reg/core/request_stack/EE_Request.core.php on line 75, referer: http://dialogueltd.wpengine.com/wp-admin/admin.php?page=espresso_general_settings&action=critical_pages&critical_pages_nonce=b3838920b5

The test site is http://dialogueltd.wpengine.com/. Let me know if you’d like admin access.

Please could you help me to figure out why Event Espresso is not working properly on WP Engine. I am happy to talk to WP Engine support but need to know what to ask them.

Many thanks


Josh

  • Support Staff

November 1, 2016 at 8:08 am

Hi there,

It turns out that in version 4.9.18.p there’s a new option that’s made for adding compatibility for server environments where you’ll see the 500 error and other errors during registration. You can go to Event Espresso > General Settings > Admin Options and set Encode Session Data? to Yes.


Andy

November 1, 2016 at 8:37 am

Thanks, I have done this. I am still getting the error “This registration step could not be completed. Please refresh the page and try again” when I try to submit the booking form.


Josh

  • Support Staff

November 1, 2016 at 8:47 am

Would it be okay if you can send full access to the server so one of the developers can investigate? If so, you can send the credentials via the secure form on this page:

https://eventespresso.com/send-login-details/


Andy

November 1, 2016 at 8:51 am

Thanks, I have sent you the logins


Josh

  • Support Staff

November 1, 2016 at 10:11 am

Thank you! Can you check with WPEngine support to see if they can temporarily set the site config so that use_object_cache is not set to true? I can see that they have Varnish caching disabled for the Event Espresso pages, but that object caching might not be disabled there. I think it’d be good to rule out the possibility that object caching may be affecting the reg. process.


Andy

November 1, 2016 at 11:18 am

Hi Josh, I have disabled Object Cache in the WP Engine control panel and am still getting the error “This registration step could not be completed. Please refresh the page and try again” when I try to submit the booking form.


Josh

  • Support Staff

November 1, 2016 at 2:54 pm

Thanks for trying that, it was the one difference I could find from comparing my site that’s hosted on WPEngine and your site. The lead developer of Event Espresso is looking into this now and I’ll update this thread with any new information and hopefully there will be a fix ready soon.


Josh

  • Support Staff

November 3, 2016 at 11:58 am

Hi again,

One thing that came up in discussion while we’ve been looking into this is the possibility of something with the actual migration of the database to WPEngine. Can you check in PHPmyadmin and look for the database character set and database collation? We’re wondering if there’s an issue from having a mismatch of the database collation between the site that was migrated in from and the new site hosted on WPEngine.


Andy

November 3, 2016 at 12:37 pm

Hi Josh, I have uploaded a screenshot of the database to https://barn2.co.uk/wp-content/uploads/2016/11/db.png. This shows the character set and I’m not sure what you mean by database collection. I can give you full access to the WP Engine account which includes phpMyAdmin if you like.
Katie


Josh

  • Support Staff

November 3, 2016 at 12:53 pm

Yeah that’d help. Can you send access via that secure form? Or another thing you can do is temporarily add support@eventespresso.com as a user for your WPEngine account, which you can later revoke.


Andy

November 3, 2016 at 1:00 pm

Thanks, I have given you access and support@eventespresso.com will receive an invitation from WP Engine.


Andy

November 3, 2016 at 1:01 pm

This is not a live site so you can do whatever you like to it!


Josh

  • Support Staff

November 4, 2016 at 1:51 pm

Thanks, having access to this site has been invaluable and the lead developer is making some good progress on putting together a fix.


Andy

November 7, 2016 at 4:01 am

Hi John, my client’s old hosting expires on Friday so we need to move the WP Engine version of the website live before then. How are you getting on with fixing those issues?
Thanks very much


Josh

  • Support Staff

November 7, 2016 at 7:18 am

Hi there,

It’s still a work in progress, and you can view that progress on this branch of Event Espresso 4 core:

https://github.com/eventespresso/event-espresso-core/tree/BUG-10209-session-encoding


Andy

November 7, 2016 at 1:37 pm

Hi

Sorry, which section of https://github.com/eventespresso/event-espresso-core/tree/BUG-10209-session-encoding relates to my issue?

My client’s current hosting runs out on Friday so he needs to go live on Friday, will it be fixed by then please?

Many thanks


Andy

November 7, 2016 at 1:37 pm

Hi

Sorry, which section of https://github.com/eventespresso/event-espresso-core/tree/BUG-10209-session-encoding relates to my issue?

My client’s current hosting runs out on Friday so he needs to go live on Friday, will it be fixed by then please?

Many thanks


Josh

  • Support Staff

November 7, 2016 at 2:29 pm

The commit log in that branch shows the commits made so far to correct the issue that we saw on your site, which boiled down to this fatal error:

Fatal error: Invalid serialization data for DateTime object.

There’s more info about that error in this StackExchange thread:

http://stackoverflow.com/questions/20124030/php-fatal-error-invalid-serialization-data-for-datetime-object-at-session-start

While I don’t have a timeframe on exactly how long it will take to work around what’s causing that error, you may be able to get a newer version of PHP installed on your site, if you ask WPEngine support, they may even get that site an upgrade to PHP 7.


Andy

November 8, 2016 at 1:32 am

Thanks for pointing me in the right direction. Since the website works on other WP Engine websites, is there anything we can do as a temporary workaround? Should I create a new WP Engine install and re-migrate the site in case the issue doesn’t happen again, or something like that?

Obviously this doesn’t affect all sites using Event Espresso – even all the ones on WP Engine – so what is different about my client’s site that is making the problem so bad?

Thanks


Josh

  • Support Staff

November 8, 2016 at 7:27 am

Two possible ideas, and both may be contributing are the PHP version (other WPEngine sites have newer versions of PHP) and also the original site’s database tables were migrated from another server, which if you look at the tables they have a mix of different collations.


Josh

  • Support Staff

November 10, 2016 at 4:29 pm

Hi again,

We have a fix and have tested it on your site and we’re no longer seeing the issues anymore. There’s still one issue with the way that WPEngine disables the WordPress heartbeat api, which causes the “Loading Transaction Information” section on the Thank you page to not load, but I can add a plugin to your site that will fix that.


Andy

November 11, 2016 at 1:00 am

Sounds brilliant thanks. Please let me know when you have installed that plugin and I will test.
Many thanks


Josh

  • Support Staff

November 11, 2016 at 8:20 am

The plugin that allows the WP Heartbeat API scripts to load in more places on WPEngine has been installed on your site.

Also please note that your site currently has an early version of EE 4.9.22 which includes the fixes to avoid issues with serializing and unserializing the registration data. So when 4.9.22.p is released next week, you can update to that version and it will have that fix along with other fixes/enhancements.


Andy

November 11, 2016 at 11:39 am

That’s brilliant, thank you so much for your help.

Have a nice weekend.

Viewing 24 reply threads

The support post ‘Issues after migrating to WP Engine’ 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