Support

Home Forums WP User Integration Non-members not able to register for an event – using EE4 and EE4 WP User Int

Non-members not able to register for an event – using EE4 and EE4 WP User Int

Posted: October 31, 2016 at 3:38 pm


MCAPWebAdmin

October 31, 2016 at 3:38 pm

Since I upgraded non- members have not been able to register. Checked all of the settings but still not working


Josh

  • Support Staff

October 31, 2016 at 4:23 pm

Hi there,

Can you re-send the secure form from the Redeem a Support Token page and please be sure to include the FTP information? We’ll need the FTP information so we can investigate further and apply a fix.

Thank you.


Josh

  • Support Staff

October 31, 2016 at 6:08 pm

Okay it’s fixed now.

One of of differences of Event Espresso 4 is it uses wp-admin/admin-ajax.php to process all registrations, regardless of whether someone is logged in or not.

The trouble that was happening was there was this code in your site’s WordPress theme:

function restrict_admin(){
 //if not administrator, kill WordPress execution and provide a message
 if ( ! current_user_can( 'manage_options' ) ) {
  wp_die( __('You are not allowed to access this part of the site') );
 }
}
add_action( 'admin_init', 'restrict_admin', 1 );

The above was in the functions.php file, and was probably put there as part of a misguided attempt at securing the site. Now that it’s been removed, registrations process as expected.

The support post ‘Non-members not able to register for an event – using EE4 and EE4 WP User Int’ 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