Home › Forums › Calendar Products › Events Calendar PRO › Events Order Script Breaks New User Activation Email
- This topic has 8 replies, 3 voices, and was last updated 8 years, 9 months ago by
Chris.
-
AuthorPosts
-
June 16, 2017 at 12:14 pm #1299313
Chris
ParticipantI’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.
June 17, 2017 at 12:08 am #1299533Jennifer
KeymasterHi 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
June 19, 2017 at 2:02 pm #1300145Cliff
MemberHi, 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.
June 20, 2017 at 11:24 am #1300675Chris
ParticipantThis reply is private.
June 21, 2017 at 3:23 pm #1301383Cliff
MemberChris, 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?
June 21, 2017 at 3:54 pm #1301405Chris
ParticipantThanks. The staging site is an exact replica. Yes, the issue seems persistent through all users.
June 22, 2017 at 1:44 am #1301571Cliff
MemberSorry 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?
July 14, 2017 at 9:35 am #1321254Support Droid
KeymasterHey 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 -
AuthorPosts
- The topic ‘Events Order Script Breaks New User Activation Email’ is closed to new replies.
