Support

Home Forums Event Espresso Premium Registration Completion Error – EE4

Registration Completion Error – EE4

Posted: April 5, 2016 at 8:28 am


Kori

April 5, 2016 at 8:28 am

We are currently experiencing issues when users attempt to complete payment and registration for an event

Once the user has entered all of the payment info and selects the finalize registration button, they receive an error letting them know they could not complete registration.

Although the user is told that registration is not complete, they are charged and and receive the confirmation emails for both registration and payment. They are also marked as registered in the WordPress Admin area. The payment is completing with Authorize.net successfully.

The error seems to be specific to the ajax request that is sent upon final registration, as it is returning a 500 error. We have reviewed both the Event Espresso Logs and Apache logs and were unable to find any useful data.

Please feel free to reference the info below:
WordPress Version:
4.4.2
PHP Version:
5.5.9-1ubuntu4.14
MySQL Version:
5.5.43
Event Espresso Version:
4.8.38.p
WordPress Address (URL):
https://www.wtwp.com
Site address (URL):
http://www.wtwp.com


Tony

  • Support Staff

April 5, 2016 at 9:48 am

Hi Nancy,

You are correct, it looks like there is a fatal error being thrown during the ajax request.

Can you enable WP_DEBUG so we can run a registration and see if we can catch the error please?


Kori

April 5, 2016 at 10:17 am

WP_Debug has been enabled.

Thanks!


Tony

  • Support Staff

April 5, 2016 at 10:22 am

Unfortunately your theme is throwing notices that are breaking the ajax request (separate issue from the error 500)

Can you swap out the WP_Debug code you have now, for this:

define( 'WP_DEBUG', true ); // Or false
if ( WP_DEBUG ) {
    define( 'WP_DEBUG_LOG', true );
    define( 'WP_DEBUG_DISPLAY', false );
    @ini_set( 'display_errors', 0 );
}

Which basically enables WP_Debug, but stops it printing errors to the screen and adds them to a debug.log file within /wp-content/

This is the notice being thrown:

Notice: The called constructor method for WP_Widget is deprecated since version 4.3.0!

Its usually within the theme and just means a widget need to be updates to follow the latest coding standard. I’d recommend you issue a ticket with your theme developers to get that fixed.


Kori

April 5, 2016 at 10:47 am

I have updated the WP_debug code.

I will make sure to make to make a note regarding the deprecated constructor method in the theme.

Thanks!


Tony

  • Support Staff

April 5, 2016 at 2:20 pm

Hmm, there’s nothing being logged in the debug log when the ajax error is thrown.

Have you modified the default message templates within Event Espresso at all?

I’m wondering if this is an issue with triggering messages (although it would be strange as the payment message seems to work fine).

Can you enable the Invoice payment method so I can finalize a registration without having to pay and confirm that works.


Kori

April 5, 2016 at 2:50 pm

I have activated the invoice method. Please let me know when you are done testing so I can disable it, as the site is live.

I don’t believe any of the message templates have been modified besides some basic text changes, but I can verify with the client to make sure.


Tony

  • Support Staff

April 5, 2016 at 2:59 pm

Ok, I think I’ve found it.

With the invoice payment method there’s a fatal error shown within debug.log:

[05-Apr-2016 20:54:26 UTC] PHP Fatal error: Allowed memory size of 41943040 bytes exhausted (tried to allocate 80 bytes) in /wp-includes/wp-db.php on line 2350

That’s about 40MB which is rather low when using Event Espresso. I’d recommend updating to at least 96MB, you usually can do that by adding:

define( 'WP_MEMORY_LIMIT', '96M' );

to the wp-config.php file, anywhere above the line /* That's all, stop editing! Happy blogging. */

I normally add it just above where I add WP_Debug.

More info:

https://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP

If that then works you can de-activate the Invoice payment method, set WP_Debug to FALSE and also delete the debug.log file from within /wp-content/


Kori

April 6, 2016 at 7:22 am

That appears to have resolved the issue.

Thank you for your help!


Tony

  • Support Staff

April 6, 2016 at 7:34 am

You’re most welcome.

Remember to disable the error logging and remove the debug log (unless you want to start the rrors) as that file is publicly accessible.

The support post ‘Registration Completion Error – EE4’ 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