Home › Forums › Calendar Products › Community Events › Community Events Redirect plugin and/or snippet not working
- This topic has 4 replies, 3 voices, and was last updated 10 years, 2 months ago by
Support Droid.
-
AuthorPosts
-
November 12, 2015 at 3:00 pm #1024972
John
ParticipantHello,
Just got the add-on today and trying to get a redirect after event submission to work.
I’ve used the snippet in functions.php found here:
and also the plugin found here:
https://theeventscalendar.com/knowledgebase/redirect-to-different-url-after-event-submission/I’ve tried a variety of url’s with both with no luck. Any suggestions?
Thanks!
November 12, 2015 at 3:06 pm #1024976John
ParticipantI added a check at the top of the template to see if the post array is not empty. Even though the events are submitting, there is no redirect.
In reviewing the headers being sent on form submission, there doesn’t seem to be any post data, just “Request Payload” data which is the information I would expect to be sent as post data:
------WebKitFormBoundary2EHI3iVb3Yizdr9y Content-Disposition: form-data; name="post_ID" 23627 ------WebKitFormBoundary2EHI3iVb3Yizdr9y Content-Disposition: form-data; name="_wpnonce" XXXXXXXXXXXXX ------WebKitFormBoundary2EHI3iVb3Yizdr9y Content-Disposition: form-data; name="_wp_http_referer" /events/community/add/…etc
November 12, 2015 at 3:20 pm #1024980John
ParticipantFixed by adding to some other redirects I had on the site.
$uri = $_SERVER['REQUEST_URI']; ... } else if (preg_match('/\/events\/community\/add\//i', $uri) && !empty($_POST)){ wp_redirect(home_url()); exit; }November 12, 2015 at 4:13 pm #1025016Cliff
MemberHi David.
I just tested the https://theeventscalendar.com/knowledgebase/redirect-to-different-url-after-event-submission/ plugin with our latest versions of Core/Free and Community Events and didn’t experience any issues or see any error messages.
Could you try temporarily activating the default Twenty Fifteen theme and seeing if the issue persists?
If disabling the theme fixes it, we have narrowed the issue down to a theme conflict. Do you have any theme overrides for the Events Calendar? If so could you try disabling them by renaming your [themename]/tribe-events/ folder to ‘tribe-events-bak’. Did that fix it?
If the issue persists in the default Twenty Fifteen theme, then we have a different set of debugging steps. Please keep the Twenty Fifteen theme enabled, and also disable any plugins other than the ones from Modern Tribe to see if that fixes it. If it does, please try re-enabling the plugins one at a time until the issue resurfaces. When it does resurface, can you let me know which plugin caused that to happen?
February 18, 2016 at 8:31 am #1075597Support Droid
KeymasterThis topic has not been active for quite some time and will now be closed.
If you still need assistance please simply open a new topic (linking to this one if necessary)
and one of the team will be only too happy to help. -
AuthorPosts
- The topic ‘Community Events Redirect plugin and/or snippet not working’ is closed to new replies.
