Support

Home Forums Event Espresso Premium Issue with paid registrations not being recorded and constant 502/500 errors

Issue with paid registrations not being recorded and constant 502/500 errors

Posted: September 6, 2016 at 12:05 am


Laneway Learning

September 6, 2016 at 12:05 am

I am getting this warning on my error log:
[30-Aug-2016 15:57:27 Australia/Melbourne] PHP Warning: array_merge(): Argument #2 is not an array in /wp-content/plugins/event-espresso/gateways/process_payments.php on line 30
Since we updated to the latest version available of EE3 we are also getting lots of 502,500 errors and we have noticed people register for the event and pay on Paypal but somehow the registration isn’t recorded on the event. Also people paying and the registration remaining unpaid…
what could it be?

  • This topic was modified 7 years, 7 months ago by  Tony. Reason: Removed server path


Tony

  • Support Staff

September 6, 2016 at 4:01 am

Hi there,

What version of EE were you using prior to the update?

[30-Aug-2016 15:57:27 Australia/Melbourne] PHP Warning: array_merge(): Argument #2 is not an array in /wp-content/plugins/event-espresso/gateways/process_payments.php on line 30

This means that EE did not receiving any attendee information from the database when it loaded the function.

Do you get that for every registration?

Also people paying and the registration remaining unpaid…
what could it be?

It could be caused by a lot of different things. Possibly related to the 502/500 errors your getting, is it every payment?

Do you have any custom code running within EE?

Using FTP if you go to /wp-content/uploads/espresso/ do you have files within any of the directories there? or are they empty?


Laneway Learning

September 12, 2016 at 12:51 am

I think it was the previous one? not sure about the version because it overwrote it.
It seems we are getting it for all registrations on particular events and then random resgistrations go missing. There are events that say 0 attendees and then we check paypal and they have 20-30 people in them…
No, we don’t have any custom code running with EE..
Regarding the files on ftp: gateways is empty, language has index.html, logs has htaccess, express-log, paypal-ipn results.
Template has confirmation display, error_log, payment_page, registration page and registration page display all .php except error log
Here are the logs of last week:
[09-Sep-2016 20:35:00 Australia/Melbourne] PHP Warning: array_merge(): Argument #2 is not an array in /public_html/wp-content/plugins/event-espresso/gateways/process_payments.php on line 30

  • This reply was modified 7 years, 7 months ago by  Tony. Reason: Removed repeating warning


Josh

  • Support Staff

September 12, 2016 at 12:29 pm

Template has confirmation display, error_log, payment_page, registration page and registration page display all .php except error log.

You should remove those, they may be causing issues. The quick and safe way is you rename the /wp-content/uploads/espresso/templates folder to be /wp-content/uploads/espresso/templates-off.


Laneway Learning

September 14, 2016 at 8:03 pm

Hi Josh,
I did so but I am still getting the same error…
[15-Sep-2016 10:20:54 Australia/Melbourne] PHP Warning: array_merge(): Argument #2 is not an array in /home4/alittleh/public_html/wp-content/plugins/event-espresso/gateways/process_payments.php on line 30

Bluehost has asked me to optimise wordpress but we are already using a cache plugin and have recently checked the database. Any other solutions? Thank you


Tony

  • Support Staff

September 15, 2016 at 4:49 am

Optimize WordPress in what way? Why have they asked you to optimize?

Can you go to Event Espresso -> System status and check the ‘PHP Sessions’ section, what does it show for the ‘Session save path’?


Laneway Learning

September 19, 2016 at 12:27 am

I think it’s their way of saying they don’t know why it’s giving 502/500 errors so they asked me to download cache plugins, check sizes of photos, and read sone articles about optimising databases…
We have done all those things and we are still getting 502/500 errors but the most pressing matter is the event espresso not recording our attendees as we sometimes end up with double the allocated spots for some events…
I went to the system status and it says:
PHP Sessions
Session save path /tmp is writable.
Session name PHPSESSID


Tony

  • Support Staff

September 20, 2016 at 2:41 am

I think it’s their way of saying they don’t know why it’s giving 502/500 errors so they asked me to download cache plugins, check sizes of photos, and read sone articles about optimising databases…

What kind of hosting package are you using?

5xx errors are server related. 502 is usually due to insufficient resources and 500 would normally be a fatal error being thrown. ‘Optimizing’ your database doesn’t really help/fix the problem it just moves it around/hides it, you need to find what is actually causing those errors as right now you could just be on a wild goose chase.

Try enabling WP_DEBUG and see if you can get either of the errors to show, you may find an error shown on the page when that happens.

the most pressing matter is the event espresso not recording our attendees as we sometimes end up with double the allocated spots for some events…

When you added the caching plugin, did you exclude Event Espresso from caching?

Do you have all forms of caching or just page caching?

Disable ALL caching on the site, don’t just disable the plugin as that won’t work (the cache will still be present), go through the plugin settins and de-activate any form of caching you have enabled, remove the cache then disable the plugin.

Now run another test registration on the site, does the payment show up in EE correctly?

I went to the system status and it says:
PHP Sessions
Session save path /tmp is writable.
Session name PHPSESSID

Thank you, that is correct.

The support post ‘Issue with paid registrations not being recorded and constant 502/500 errors’ 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