404 on events detail pages

Home Forums Calendar Products Events Calendar PRO 404 on events detail pages

Viewing 15 posts - 1 through 15 (of 18 total)
  • Author
    Posts
  • #902540
    travellearner
    Participant

    Good morning team,
    I saw similar topics in the forum but as I couldn’t solve my issue with any of the instructions found I opened a new discussion, hope that’s ok.

    From the first time I downloaded the events calendar (free edition), till now (Pro) no matter how many times I have created/edited/deleted events, I only see the general page by month/list/day. Whenever I try to see an event’s detail page I always get “Error 404 – Page Not Found”.
    I use Travelify 2.2.0 and now have the Events Calendar and Pro 3.8.1 (also have downloaded The Events Calendar Category colors 3.9.3 if this makes any difference), WP 4.0.1.
    As per your “testing for conflicts” page I have swithced to twenty thirteen and disabled all plugins (while I was still using the free version) but nothing changed. I deleted and downloaded again the plugin a couple of times hoping this may work. Finally I upgraded to Pro thinking that this could solve the problem but it’s still the same.
    I’ve also switched to pretty permalinks but again no changes.
    I’m very new to this so it could be something silly but still I can’t solve it. Can you assist?

    #903326
    Brook
    Participant

    Howdy travellearner,

    That is sort of a common problem. Recently our plugin stopped “flushing permalinks” when it is activated or deactivated. 🙁 This is a problem, and causes 404 errors on single-events pages. I know you have tried switching permalinks, but if you did it at the wrong time that would not truly flush. We have a tutorial that walks you through doing this flush the proper way, do these steps work for you?

    PS. We are fixing the above pretty soon. I am not happy with that bug at all.

    – Brook

    #903408
    travellearner
    Participant

    Thanks Brook. I’m afraid nothing changes. I’ve tried all the permalinks common settings but I always the same response, except when I swith to default when I get “this link appears to be broken” and when I choose custom structure it automatically goes to post name.
    Here is a copy of the system information box:
    urlhttp://www.travellearner.cominstall keys◾events-calendar-pro =
    WordPress version4.0.1PHP version5.2.17plugins◾BackUpWordPress version 3.0.1 by Human Made Limited(http://hmn.md/)
    ◾Akismet version 3.0.3 by Automattic(http://automattic.com/wordpress-plugins/)
    ◾All in one Favicon version 4.3 by Arne Franken(http://www.techotronic.de/)
    ◾The Events Calendar PRO version 3.8.1 by Modern Tribe, Inc.(http://m.tri.be/20)
    ◾Hello Dolly version 1.6 by Matt Mullenweg(http://ma.tt/)
    ◾Jetpack by WordPress.com version 3.2.1 by Automattic(http://jetpack.me)
    ◾MailChimp for WordPress Lite version 2.1.6 by Danny van Kooten(http://dannyvankooten.com)
    ◾MOJO Marketplace version 0.6.0 by Mike Hansen(http://mikehansen.me?utm_campaign=plugin&utm_source=mojo_wp_plugin)
    ◾Multiple Category Selection Widget version 3.1.5 by Isaac Rowntree(http://zackdesign.biz)
    ◾Search & Filter version 1.2.5 by Designs & Code(http://www.designsandcode.com/)
    ◾The Events Calendar Category Colors version 3.9.3 by Andy Fragen, Barry Hughes(http://thefragens.com)
    ◾The Events Calendar version 3.8.1 by Modern Tribe, Inc.(http://m.tri.be/1x)
    ◾WordPress Importer version 0.6.1 by wordpressdotorg(http://wordpress.org/)
    ◾Yet Another Related Posts Plugin version 4.2.4 by Adknowledge(http://www.yarpp.com/)
    network plugins-mu plugins-themeTravelifymultisite-settings◾recurring_events_are_hidden = exposed
    ◾tribeEventsTemplate =
    ◾tribeEventsBeforeHTML =
    ◾tribeEventsAfterHTML =
    ◾previous_ecp_versions = Array
    (
    [0] => 0
    )

    ◾latest_ecp_version = 3.8.1
    ◾welcome_notice = 1
    ◾last-update-message = 3.8.1
    ◾stylesheetOption = tribe
    ◾tribeEnableViews = Array
    (
    [0] => list
    [1] => month
    [2] => day
    )

    ◾viewOption = month
    ◾tribeDisableTribeBar =
    ◾monthEventAmount = 3
    ◾dateWithYearFormat = F j, Y
    ◾dateWithoutYearFormat = F j
    ◾monthAndYearFormat = F Y
    ◾dateTimeSeparator = @
    ◾timeRangeSeparator = –
    ◾datepickerFormat = 0
    ◾earliest_date = 2014-11-29 11:00:00
    ◾latest_date = 2014-12-02 14:00:00
    ◾donate-link = 1
    ◾postsPerPage = 10
    ◾liveFiltersUpdate = 1
    ◾showComments =
    ◾showEventsInMainLoop = 1
    ◾eventsSlug = events
    ◾singleEventSlug = event
    ◾multiDayCutoff = 00:00
    ◾defaultCurrencySymbol = €
    ◾reverseCurrencyPosition = 1
    ◾embedGoogleMaps = 1
    ◾embedGoogleMapsZoom = 10
    ◾debugEvents =
    ◾defaultValueReplace =
    ◾disable_metabox_custom_fields = show
    ◾pro-schema-version = 3.5
    WordPress timezone-server timezoneUTC

    I have not tried to copy the snippet you suggest in the tutorial as I’m not very familiar with this and I’m a bit hesitant. Should I try it or you can see what’s wrong from the above?

    #904123
    Brook
    Participant

    Howdy travellearner,

    Thank you for giving that a whirl. Usually it would fix things. I am sad to see it did not.

    One thing we might try before attempting that snippet, go to WP Admin > Events > Settings, and find the box labeled “Single event URL slug”. Change it from “event” to “tribaltect”. Now flush permalinks again, same as you did before. Maybe even change your permalinks as you have been that way you are 100% sure they flushed. Is it fixed?

    If not, that snippet is worth a shot for sure. You might download the functions.php file before modifying it, and create a duplicate/backup to be safe. To be super safe, you could even do a full backup of your site, but that is practically never needed it’s just some comforting insurance. Then paste the snippet in your functions.php file (obviously the backup/duplicate though). Now upload the new file with the snippet. Usually the best place to put that snippet is just under the <?php tag on the first line. So plase the snippet on line 2. Most of the time you might hit enter a few to create a few extra new lines under the <?php one, then paste the snippet that way there is some visual spacing between it and the other code.

    Does that all make sense?

    – Brook

    #904786
    travellearner
    Participant

    Hi Brook,
    changed to “tribaltect” and everything is the same.
    added the snippet to functions.php
    added “?tribe_query_debug=true” to my “xmas decoration” event pretty permalink (I noticed it takes out the? when I save the permalink is that how it should be?) and I still got the same
    http://www.travellearner.com/tribaltect/xmas-decorationtribe_query_debugtrue/

    thanks

    #905594
    Brook
    Participant

    I am so sorry. That was the outdatted version of that snippet. I just updated the tutorial. Could you delete the code you pasted in functions,php, and replace it with this? They are quite similar, this just works better.

    Thanks for giving tribaltect a go. I was hoping we could push it to refresh permalinks. At this point we are down to where we need to examine that query by pasting that updated snippet inside your functions.php.

    An alternative option, that is unfortunately not necessarily easier, is you could provide us with a copy of your database. I can not really give you great instructions on how to do this, because it varies from hosting provider to hosting provider. But, if you know how to make a backup copy of your database and wish to share it with us, let me know. I will investigate it further. You are the first peson I have seen in a number of months who is having a problem like this. But as mentioned in that tutorial our investigation into 404s is still technically ongoing, and I would be keen to see if I can glean anything from your database.

    Please let me know if I can help with anything. If not, once that snippet is in there let me know and I will investigate some more. Thank you!

    – Brook

    #905909
    travellearner
    Participant

    Hi Brook,
    I tried to paste this snippet but it returns to “internak system error”, even when I try to replace the functions.php with the original file. Hope this is temporary and has nothing to do with the snippet. will look at it again. meanwhile how can i send you the backup files? I cannot attach a file in here.

    #905955
    travellearner
    Participant

    I’m afraid this had to do with the snippet. I’m now logged out with no access to wp-admin and dashboard. Will try to upload backup files and restore site.

    #906684
    Brook
    Participant

    I am sorry to hear that. 🙁 Often that sort of thing happens because there is a syntax error. For instance, sometimes folks have two opening <?php tags without a corresponding closing ?> one in between. Or, perhaps if you truly replaced the entire functions.php file with the code above, instead of just the original snippet portion of the file while leaving the rest of said file untouched, then that also would generally cause an error.

    I really wish there was an easier way! Let me know if you have any questions. I am happy you chose to make backups, that was a good call.

    – Brook

    #915330
    travellearner
    Participant

    Hi, I still can’t restore the site.
    Looking for someone to assist. Hope I resolve this soon so that we can see how we will fix the issue with the Calendar.

    #916691
    Brook
    Participant

    So you were unable to upload your backups? I want to help you restore your site for sure. What problem are you currently facing? Have you made any progress since Decemeber 3rd? Was my comment helpful?

    – Brook

    #918607
    travellearner
    Participant

    Hi Brook,
    At last I managed to restore the site!
    So, we were back to where we were. Still have the “tribaltect” and same responses from the site. I updated The Events Calendar free version to 3.9 and category colours to 3.9.4.
    When I uploaded the snippet (without losing everything this time! I think it was the <?php as you said that did all this) I got the following message at the top:

    “The following plugins are out of date: Events Calendar PRO 3.8.1. All add-ons contain dependencies on The Events Calendar and will not function properly unless paired with the right version. Want to pair an older version?”

    Is there a newre version of Calendar Pro? How can I update it? I don’t see any “Update” sign like in free version.

    The original problem still remains the same, however.
    Thanks

    #919765
    Brook
    Participant

    Hello travellearner,

    Excellent news! Thank you for sticking with that. I am very sorry for the inconvenience. I wish there was more I could have done remotely to help while the site was not working.

    Yes there is a new version! In order to recieve updates to it you need to activate your PRO license key. That is pretty easy to do. Check out this tutorial. Once you have done that, within an hour or so you should see an update available and you can just click update.

    Thank you for pasting that code in your theme. It was truly enlightening. I know of two other topics with a similar issue. For one of them changing the priority level of our TribeEvents::init() was all that they needed. I think this might work for you too. I have tried to make that as easy as possible by creating this snippet. I hate to have you do this again, but could you paste one more snippet in your theme, the one I just linked to? You can leave everything else alone, but replace the opening <?php tag with this code. As you know, you only need one <?php tag and since that snippet includes it, you can just replace your tag with that code. Afterwards, flush your permalinks again as outlined under the heading “What if it is only event pages that 404?“.

    Did that work for you? If not, would you mind copy/pasting your entire functions.php file to pastebin? I can have a look and make sure it is all setup. Just post the link to your file here after you’ve pasted it.

    Thanks!

    – Brook

    #920973
    travellearner
    Participant

    Hi Brook,
    I think we made it!
    Firstly, just to let you know that I had my PRO license activated but for some reason I wasn’t seeing any “update available” before. Today, there was a sign (without doing anything), so I updated to 3.9.
    Secondly, I added the snippet as you said and now it is working, both for old and new events! For your info I didn’t flush permalinks and since it is working I think I’d better not do it 🙂

    What should I do next? Should I erase the first snipet and leave the 2nd one?

    thanks

    #922272
    Brook
    Participant

    Awesome! That is the best of news. After some research the error seems like the result of a plugin conflict. Possibly one whose impact still remains even after it is disabled. Regardless the last snippet, the one that fixed it, is a perfect fix and can be left in your functions.php file permanently.

    You can feel remove the other snippets from your functions.php now.

    It’s totally cool that you did not flush the permalinks. I was only advising that out of an abundance of preparedness. I was not sure you would need to, but if you did it can’t hurt. They will flush themselves from time to time, like when you update a plugin. No worries there, with that final snippet in your theme you should be good from what I have seen.

    Please let me know if you need anything else. If not, mind marking this resolved? Cheers!

    – Brook

Viewing 15 posts - 1 through 15 (of 18 total)
  • The topic ‘404 on events detail pages’ is closed to new replies.