Events Order Script Breaks New User Activation Email

Home Forums Calendar Products Events Calendar PRO Events Order Script Breaks New User Activation Email

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1299313
    Chris
    Participant

    I’m working on our staging server and discovered that the reason we get a 500 server error when a new user clicks on their activation email is because of the following script:

    // Changes past event views to reverse chronological order
    function tribe_past_reverse_chronological ($post_object) {
    $past_ajax = (defined( ‘DOING_AJAX’ ) && DOING_AJAX && $_REQUEST[‘tribe_event_display’] === ‘past’) ? true : false;
    if(tribe_is_past() || $past_ajax) {
    $post_object = array_reverse($post_object);
    }
    return $post_object;
    }
    add_filter(‘the_posts’, ‘tribe_past_reverse_chronological’, 100);

    Please note that we are using the “User Role Editor Pro” plugin so this is not a standard WP activation email. So it is a “plugin conflict” but I’m hoping someone can suggest a fix on this script as we can’t really modify the plugin.

    #1299533
    Jennifer
    Keymaster

    Hi Chris,

    Thanks for reaching out!

    We are a bit limited on how much support we can provide for these types of conflicts, but I will have one of our developers take a look and see if we can recommend anything.

    We typically only have support available during the week, so I’ll follow up with you on Monday and let you know what I find out.

    Thanks,

    Jennifer

    #1300145
    Cliff
    Member

    Hi, Chris.

    Thanks for this detailed report.

    Would you please provide a copy of the latest version of that plugin and then provide steps to reproduce the issue so we can attempt to replicate (and then possibly rectify) the issue?

    Thank you.

    #1300675
    Chris
    Participant

    This reply is private.

    #1301383
    Cliff
    Member

    Chris, thanks for all your help here. We try to avoid logging into customers’ sites. Also, I don’t think I’ll be able to fully troubleshoot this via your staging site.

    Can you replicate this issue with all other user roles or only the “EditorAdmin” one?

    #1301405
    Chris
    Participant

    Thanks. The staging site is an exact replica. Yes, the issue seems persistent through all users.

    #1301571
    Cliff
    Member

    Sorry if my question wasn’t clear.

    My understanding of the issue is that the 500 error happens when a New User gets created and that new user’s email activation link gets clicked. Are you saying A) this is correct and it happens for all new users regardless of their user level, or B) just new users if they’re assigned the EditorAdmin level?

    #1321254
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Events Order Script Breaks New User Activation Email’ is closed to new replies.