Home › Forums › Calendar Products › Events Calendar PRO › 404 Error When Navigating Back a Page
- This topic has 15 replies, 3 voices, and was last updated 8 years, 6 months ago by
Alex.
-
AuthorPosts
-
August 21, 2017 at 6:14 am #1338063
Alex
ParticipantHi 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,
AlexAugust 23, 2017 at 8:57 pm #1339497Shelby
ParticipantHey 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 ๐August 24, 2017 at 1:11 am #1339572Alex
ParticipantHey 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!
August 24, 2017 at 8:36 am #1339776Shelby
ParticipantHey Alex,
Glad to see this has (somewhat mysteriously) resolved itself! We’ll be happy to help if this problem reoccurs. ๐
Take care!
Shelby ๐
August 30, 2017 at 2:36 pm #1342731Alex
ParticipantHey 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=listNotice 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
AlexAugust 31, 2017 at 9:15 am #1343111Shelby
ParticipantHey 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 ๐
August 31, 2017 at 9:28 am #1343114Alex
ParticipantHey 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
AlexSeptember 1, 2017 at 10:26 am #1343803Shelby
ParticipantHey 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 ๐
September 4, 2017 at 3:39 am #1344419Alex
ParticipantHey 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…
September 8, 2017 at 7:40 am #1346589Victor
MemberHi 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,
VictorSeptember 11, 2017 at 4:27 am #1347439Alex
ParticipantHi 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
AlexSeptember 11, 2017 at 7:04 pm #1347810Victor
MemberHi 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,
VictorSeptember 12, 2017 at 1:37 am #1347883Alex
ParticipantHi 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,
AlexSeptember 12, 2017 at 8:49 pm #1348402Victor
MemberHi 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,
VictorOctober 4, 2017 at 9:37 am #1359067Support 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 ‘404 Error When Navigating Back a Page’ is closed to new replies.
