Community Events Redirect plugin and/or snippet not working

Home Forums Calendar Products Community Events Community Events Redirect plugin and/or snippet not working

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1024972
    John
    Participant

    Hello,

    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:

    Redirect After Adding an Event

    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!

    #1024976
    John
    Participant

    I 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

    #1024980
    John
    Participant

    Fixed 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;
    }
    #1025016
    Cliff
    Member

    Hi 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?

    #1075597
    Support Droid
    Keymaster

    This 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.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Community Events Redirect plugin and/or snippet not working’ is closed to new replies.