Support

Home Forums Event Espresso Premium This registration step could not be completed. Please refresh the page and try..

This registration step could not be completed. Please refresh the page and try..

Posted: August 28, 2015 at 9:42 am

Viewing 8 reply threads


simone

August 28, 2015 at 9:42 am

Hello,

i’m using Evento Espresso with Wp User plugin and i get this error trying to register on a event with anonymous user and logged user except with the admin user.
Whit the admin user i can go to the payment page and easy complete the registration.
I have also paid membership pro plugin, but the problem is not resolved also after it was deactivated.
Anybody has this problem?

Any helps will be appreciated
Simone


Tony

  • Support Staff

August 28, 2015 at 11:10 am

Hi there,

Can you link us to one of your events so we can test this please?


simone

September 1, 2015 at 4:18 am

Hello,

thanks for the reply and sorry for the delay.
The error occurs in a test version site. I have setup the event on the online version and the problem occurs again. Registration event works with the admin users, it doesn’t work with regsitered and anonymous users.

This is the link of the event to testing: http://www.eas-aligners.com/registration-checkout/

Thank you for the help,
Simone


Dean

September 1, 2015 at 5:25 am

Hi Simone,

Do you have any sort of redirection plugin/code, that redirects users after logging in?

The issue is that EE requests the admin-ajax.php file, which is a WordPress admin file, and unfortunately instead of returning what we want, it’s returning a 302 Temporarily Moved response.

Googling the subject leads me to think it could be either a redirect plugin/code, or perhaps even something in the theme/plugin doing something to block admin access.


simone

September 1, 2015 at 8:06 am

Yes, i have a function on my theme that redirect users:

add_action( 'admin_init', 'eas_stick_subscribers_to_user_page', 999 );
function eas_stick_subscribers_to_user_page( $wp_admin_bar ) {
if ( !current_user_can('edit_posts') ) {
        if ( 'profile.php' != $pagenow ) {
            wp_redirect( 'profile.php' );
            exit;
        }
    }
}

Without this, everything works as expcted, but I need this behaviour. There is a solution without compromise the plugin?
Thanks


Josh

  • Support Staff

September 1, 2015 at 10:18 am

Hi Simone,

You can correct your code so that it allows Ajax requests. There is some similar code in the WP codex that shows an example you can follow:

https://codex.wordpress.org/Plugin_API/Action_Reference/admin_init#Example:_Access_Control_with_redirect


simone

September 2, 2015 at 3:01 am

Thanks all of you for the help. Whit the code suggested me the plugin does a great work!

Simone


Dean

September 2, 2015 at 6:00 am

Glad to hear it!

Anything else regarding this topic we can help with or may we mark it as resolved?


simone

September 2, 2015 at 6:09 am

Dear Dean,

you can mark it as definitely resolved!
Thanks a lot again!
Simone

Viewing 8 reply threads

The support post ‘This registration step could not be completed. Please refresh the page and try..’ 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