Support

Home Forums Event Espresso Premium EE General Settings page "self-POST" is failing on WPEngine

EE General Settings page "self-POST" is failing on WPEngine

Posted: June 26, 2012 at 8:41 pm


Jim Schuyler

June 26, 2012 at 8:41 pm

This is a platform-specific issue and I’m just curious whether you EE guys or any customers have experience with WPEngine and the following issue. Your -General Settings- admin page /wp-admin/admin.php?page=event_espresso comes up fine in our admin area, but when it POSTs to itself (click “Save Options”), our ISP (WPEngine.com) is giving us a 502 Bad Gateway error. On our Rackspace VPS servers we have tested your EE plugin and this particular page works fine. So I don’t think there’s anything specifically wrong with your code, and I do suspect what is happening with WPEngine because we’ve run into it before.

I am trying to get some help from the WPEngine engineers, because they have a specialized platform that focuses on high-performance serving of WP sites, and they are doing a lot of stuff that is unusual, but all of your other EE pages, including admin pages, do work. Just this one page when it posts to itself malfunctions.

Do you have any clients running on WPEngine? Would be interested to know if anyone else is experiencing this. Can help get it solved for them perhaps, since I solved it for another site I have on WPEngine a week ago.


Jim Schuyler

June 26, 2012 at 9:26 pm

So, just following up, this is indeed a WPEngine problem caused by self-POSTing to a page. It probably is unique to WPEngine, but who knows, so it may be worth having this discussion with myself here? The workaround is to post to a secondary PHP script that takes the $_POST[] data and stores it using the EE update_option() function and then redirects to the original -General Settings- page (in this case).

Unfortunately I had to modify EE code to make it happen in this devious fashion. No need for alarm, I will work this out with the WPEngine engineers. If anyone else is on WPEngine, just be aware there are such problems.

It does not happen to all self-POSTing pages, just some. (Two very unrelated pages in my case – so far.)


Seth Shoultes

  • Support Staff

June 27, 2012 at 1:01 am

Thanks for the update!


Jim Schuyler

June 29, 2012 at 9:10 pm

We found out that it is seg-faulting when requesting 3GB of RAM. I am sending detail to Seth.


Jim Schuyler

June 29, 2012 at 9:17 pm

It is apparently related to “PUE”


Seth Shoultes

  • Support Staff

July 1, 2012 at 6:36 am

Our developer found the problem and should have it fixed in the next update.


Jed Barish

July 2, 2012 at 9:40 am

How soon will we get the update? I am running the latest version and been struggling with 502 Bad Gateway. Im not able to edit or view each attendee. Im getting the error that our barcode is not being able to read on iPhone app. I had to resend the attendee email again and the barcode itself will be able to read. Hope to see the fix immediately. We are expecting 20k attendees at our event in Las Vegas by end of the month. Been using EE for our expos and world expo event.


Josh

  • Support Staff

July 2, 2012 at 2:51 pm

We’ll be rolling out the automatic update very, very soon. The update will affect core plugin and all the addons. Make sure you have your license key from your account page input into the Event Espresso>General Settings page where it asks for a key to get the automatic update notification.


Jed Barish

July 3, 2012 at 8:55 am

Im still getting 502 Bad Gateway with 3.1.24.1.P when I tried to go into the attendee’s information. I also got the 502 Bad Gateway when I am on General Settings after press SAVE OPTIONS. I could modify and update my event but not general settings and view attendees info at all. I could delete them without a problem. It started when I switched to new version.


Seth Shoultes

  • Support Staff

July 3, 2012 at 9:01 am

@jed I assume you are hosting this on WP Engine? Can you try changing line #40 of the espresso.php file to false? I am curious to see if that fixes the problem.

Should look like this:
$espresso_check_for_updates = false;


Jed Barish

July 3, 2012 at 9:10 am

It worked ๐Ÿ™‚ I used to host my own dedicated server then switched to WP Engine. I still experienced the EE’s query time to list the attendees so long time when it reaches over 500 attendees. I have one event is running over 12k attendees. Normally, it takes 3-5 minutes to finish the query before I click into an attendee info or delete. It repeats every time if I choose to resend a notification of attendee. I run Gravity Forms for our main event two years ago over 25k and it really speeds up 100x than EE every time. Is there a way to speed up that?


Seth Shoultes

  • Support Staff

July 3, 2012 at 9:16 am

Do you not get a dropdown that limits the attendee view to 500?


Seth Shoultes

  • Support Staff

July 3, 2012 at 9:24 am

Never mind. I forgot that limit is for events. I will make a ticket to add a limit for viewing attendees.

Question. Are you viewing your admin in SSL?


Jed Barish

July 3, 2012 at 9:48 am

No I am not viewing it in SSL. It seems that the app is not being able to handle a large scale event like 5k to 20k. It worked so perfectly but when it comes to admin for viewing attendees’ info and loading up the attendees before I can do anything with it. It takes too long to do that.


Seth Shoultes

  • Support Staff

July 3, 2012 at 10:03 am

We have had people use our system with over 80,000 attendees.

This is information we received from socialmediaweek.org: In 2011: 20,000 attendees, across 700+ events, in 12 different cities around the world, from September 19th to 23rd, 2011.

In 2012: 80,000 attendees at the first event in 2012.

From our old website:
REMOVED

  • This reply was modified 8 years, 5 months ago by  Seth Shoultes.
  • This reply was modified 8 months, 3 weeks ago by  Seth Shoultes.


Jed Barish

July 6, 2012 at 9:39 pm

I need your email address to send you a link to view the screen recording of my backend for EE. It shows how long it loads up, etc. Appreciated it!


Seth Shoultes

  • Support Staff

July 6, 2012 at 10:28 pm

Jed,

I will send you a message via email.


Seth Shoultes

  • Support Staff

July 9, 2012 at 8:10 am

@jed It shouldn’t take that long to load those events. It may be a MySQL memory issue and it is running out of memory. Maybe related to other processed running in the background etc. We experienced something like this on our own website with a custom script we were using.

We can try adding some code to the attendee listing that will only pull a certain amount of records at a time. We have done this with the event listing already and it seems to help with large amounts of events. It will take us some time to implement properly, so maybe we can send you the files to test before we release this in an update?


Jed Barish

July 9, 2012 at 8:25 am

Sure, we all will appreciated it ๐Ÿ™‚ Thanks!


Jed Barish

July 18, 2012 at 9:31 am

With the latest updates, its not improving on my end to speed up anything using WPEngine. I will try to use different server but I wish I could import the large data to test it.


Seth Shoultes

  • Support Staff

July 18, 2012 at 9:31 pm

Jed,

The latest update to fix WP Engine has been released yet. We have been short staffed the last couple of weeks, so updates are moving pretty slow. I am hoping to upload the fix later tonight or tomorrow.


Jed Barish

July 18, 2012 at 9:46 pm

Im using the latest version 3.1.24.3.P so I ll wait for new updates. I wish there is an easy way to be notified about new updates through email or on WP Dashboard. Thanks!


Josh

  • Support Staff

July 19, 2012 at 6:56 am

@jed

If you enter the license key from your account page into the license key input field on Event Espresso>General settings, you’ll get an update notification in the WP dashboard when the new versions is ready. Be sure to delete any old inactive versions of Event Espresso from the server to avoid false positives. See this post for more info: http://eventespresso.com/topic/plugin-auto-update-tips/

The support post ‘EE General Settings page "self-POST" is failing on 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.

Do NOT follow this link or you will be banned from the site!
[i]
[i]