Posted: 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 [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 |
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. |
|
|
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. |
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: |
|
|
Thanks, I have sent you the logins |
Thank you! Can you check with WPEngine support to see if they can temporarily set the site config so that |
|
|
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. |
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. |
|
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. |
|
|
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. |
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. |
|
|
Thanks, I have given you access and support@eventespresso.com will receive an invitation from WP Engine. |
|
This is not a live site so you can do whatever you like to it! |
Thanks, having access to this site has been invaluable and the lead developer is making some good progress on putting together a fix. |
|
|
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? |
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 |
|
|
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 |
|
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 |
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:
There’s more info about that error in this StackExchange thread: 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. |
|
|
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 |
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. |
|
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. |
|
|
Sounds brilliant thanks. Please let me know when you have installed that plugin and I will test. |
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. |
|
|
That’s brilliant, thank you so much for your help. Have a nice weekend. |
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.