404 Error When Navigating Back a Page

Home Forums Calendar Products Events Calendar PRO 404 Error When Navigating Back a Page

Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #1338063
    Alex
    Participant

    Hi Guys

    I’ve discovered a bit of a large bug with my site and I’m not sure what’s causing it. We’re just about to go live with a client’s site and experiencing this error: A user can visit this page fine – http://visitcardiff.staging.wpengine.com/events/ but if they click on the ‘next evants>>’ link at the bottom, they get pointed to this page – http://visitcardiff.staging.wpengine.com/events-advanced/list/?tribe_paged=2&tribe_event_display=list which will also display fine for the person who clicked the ‘next events>>’ link, but if you or I click on that second link now, it will link to a 404 page.

    Can anyone tell me why this is happening? I presume it’s something to do with ajax page loading, but I can see no option to turn it off

    Thanks,
    Alex

    #1339497
    Shelby
    Participant

    Hey Alex,

    Thanks for using our plugins! Apologies for the delayed response, but I’m happy to help out here. ๐Ÿ™‚

    Because I’m unable to replicate this issue on my testing server, this seems that it may be a theme or plugin conflict. Would you please work through the steps here to test for a conflict? This will help me be able to better assist you. ๐Ÿ™‚

    Let me know what you find out & we’ll go from there!

    Best,
    Shelby ๐Ÿ™‚

    #1339572
    Alex
    Participant

    Hey Shelby

    Thanks for getting back to me – but the problem seems to have resolved itself – I have no idea how. If it returns, I’ll do some digging and try to find what happened and let you know!

    #1339776
    Shelby
    Participant

    Hey Alex,

    Glad to see this has (somewhat mysteriously) resolved itself! We’ll be happy to help if this problem reoccurs. ๐Ÿ™‚

    Take care!

    Shelby ๐Ÿ™‚

    #1342731
    Alex
    Participant

    Hey Shelby & Team!

    So this issue has come back and slipped through the cracks into live so I’m under quite a lot of pressure to get it fixed PDQ!

    So I’ve done a bit more digging and I’ve narrowed the problem down to this, when a user refreshes the page or navigates back a page, they are redirected from:
    http://www.visitcardiff.com/events/?tribe_paged=2&tribe_event_display=list
    To
    http://www.visitcardiff.com/events/page/2/?tribe_paged=2&tribe_event_display=list

    Notice the addition of the /page/2/ in the url. Now I’ve turned off all of the other plugins and switched theme, and this still happens so I’m assuming it’s part of The Events Calendar. It’s also worth noting, I’m not using the events calendar ‘page’ but instead using the [tribe_events view=”list”] shortcode to display the page (because of the way the theme I’m using is put together, it has to be done this way). The pages are made up from post categories and each section included on the page has to be created seperately.

    So, when I include this shortcode on a page, it works fine. When I use the proper calendar, it works fine. It just doesn’t seem to work when I use it as part of this shortcode on this type of page. I am presuming, there is something baked into the events calendar plugin which is forcing the redirect and adding that /page/2/ in the middle of the URL – but I can’t find it. So I guess any help to remove that function would be greatly appreciated as it seems to serve no real purpose as the pagination is determined from the query string, rather than the domain.

    Thanks
    Alex

    #1343111
    Shelby
    Participant

    Hey again Alex,

    Sorry to hear this issue is back! ๐Ÿ™

    I also want to say thanks for providing so much detail on how you’re using this. I just want to make sure I understand correctly, you’re using the shortcode inside of the events page somehow?

    Can you let me know exactly how you set this up (and possibly attach a copy of the modified template file in a private reply), so I can help you out with this?

    Let me know!

    Cheers,

    Shelby ๐Ÿ™‚

    #1343114
    Alex
    Participant

    Hey Shelby

    No problem! So yes, the theme I’m using is this one – http://edition.themewich.com/

    It’s put together in a set of ‘sections’ which are controlled from one navigation option in the sidebar and each of the pages in the theme is controlled through the post categories section under the posts part of the wordpress admin nav (I can create a login for you to see this for yourself if it would make explaining it slightly easier?)

    In one of these sections, I’ve included the shortcode and put a few different sections together on the page to make the one you currently see – so there’s not really a posibility for me to send the page template over as it’s made up from a few different of these sections.

    Thanks
    Alex

    #1343803
    Shelby
    Participant

    Hey again Alex,

    Thanks for clarifying! ๐Ÿ™‚

    So, the fact that the shortcode doesn’t work inside of the theme’s sections properly, is considered a conflict with you’re theme, which isn’t something we can officially support.

    We use this forum to support issues with our plugins out of the box, as configured with the latest version of WordPress, WordPress default themes, and the rest of our plugin suite. I’d suggest reaching out to your theme developer for support with this issue.

    Thanks for understanding & Best of luck with your project!

    Best,

    Shelby ๐Ÿ™‚

    #1344419
    Alex
    Participant

    Hey Shelby

    Completely understand that you can’t support this specifically, however – would you be able to tell me where I should be looking to remove the function that drops in the /page/2/ as I feel that once I remove that – I’ll be able to solve my problem! Otherwise, I feel like I may need to write some kind of function that looks for ‘/events/page/REGEX/’, takes the whole url, strips out that section and then redirects to the new one… which may not even work…

    #1346589
    Victor
    Member

    Hi Alex,

    Let me help you with that issue while Shelby is out for some days.

    First, please make sure you are using the latest versions of our plugins.

    If you still experience the /page/2/ issue after that, please share with us your system information by following this guide > https://theeventscalendar.com/knowledgebase/sharing-sys-info/

    This could be caused by the permalinks settings you are using. Please follow the permalinks best practices in here >ย https://theeventscalendar.com/knowledgebase/permalinks-best-practices/ย Does it change anything?

    If it doesn’t, the next step would be to create a new blank page and adding theย [tribe_events view=”list”] shortcode in it with only our plugins activated and using a default theme like twenty seventeen to see if any difference.

    Let us know how that goes.

    Best,
    Victor

    #1347439
    Alex
    Participant

    Hi Victor

    Thanks for getting back to me. I’ve just updated all plugins to the latest versions and I’m still getting the error.

    I’ve checked the box to say I want to share my support info with you.

    I’ve checked my permalinks and we are using a custom structure of %category%/%postname%

    I’ve used the plugin on a fresh page and it works fine, it just seems to be my current setup that it doesn’t want to work on. Any help would be greatly appreciated!

    Thanks
    Alex

    #1347810
    Victor
    Member

    Hi Alex!

    Thanks for following up with this and for sharing your system information.

    I tried to reproduce the issue you are having but I’m unable to.

    This seems like it could be a theme or plugin conflict somehow. Could you please go through the steps provided in our Testing for Conflicts guide here >ย https://theeventscalendar.com/knowledgebase/testing-for-conflicts/ and let us know what you find in the process?

    I can see from your system settings you are using the Relevanssi plugin. While I’m not sure if it’s causing the issue, I know there are some incompatibilities between that plugin and ours, so I would start by deactivating it and see if any difference. If no difference, then continue with the Testing for conflicts guide.

    We suggest to set up a staging/dev site to make all these tests so you don’t disrupt the live site. We also encourage to make a full backup of your site, both database and files just in case something breaks and you can always go back to a previous state.

    Let us know how that goes.

    Thanks,
    Victor

    #1347883
    Alex
    Participant

    Hi Victor

    Yes I am aware this is a problem with the theme, my question is – how do I change The Events Calendar plugin so that it will not add in the /page/2/ part of the url when I refresh the page.

    I have switched to a different theme and also disabled all plugins and I still see the /page/2/ portion of the URL get inserted when I refresh or go back a page. All I want to do is to stop your plugin from adding that bit into the url.

    Thanks,
    Alex

    #1348402
    Victor
    Member

    Hi Alex,

    I’m sorry about the confusion, I missed the fact that you are actually using the shortcode in a different way.

    I’m not sure I understand exactly how you are creating the events page. Is theย page-events.php a custom template where you are embedding the shortcode? If so, please share with us a copy of that template (in a private reply if you’d like) so we can make some tests and see if we can help you with that.

    Thanks,
    Victor

    #1359067
    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 15 posts - 1 through 15 (of 15 total)
  • The topic ‘404 Error When Navigating Back a Page’ is closed to new replies.