WordPress.org

Forums

The Events Calendar
[resolved] Events not publishing/Page not found (27 posts)

  1. cbridges
    Member
    Posted 1 year ago #

    Hi,
    I added The events calendar to a second install of wordpress in a subdirectory to start redesigning my site. I have it also installed on the original wordpress install and it works fine.

    However, on the second install I can publish an event and when I go to view the event, I get page not found. When you view the full month calendar, the events do show up in calendar view but when you try to click on an event from the calendar, you get page not found (You can hover over the event in the calendar and it shows the details) I have a sidebar widget on the home page and the event link (title and duration) show in the widget, but you also get a page not found when you select an event from widget.
    When you look at the url in the page not found for whatever event you've selected, it is pointing to the correct url. I can publish an event and copy the permalink into the browser and it shows page not found. I can publish it and click "preview changes" and get page not found

    I exported events from the original calendar and imported them into this install. I thought that may be the problem, however I tried creating new events and get the same problem.
    Here are some of the urls to check what I am getting
    Monthly Calendar
    Sidebar widget
    Any ideas?
    Thanks
    Chris

    http://wordpress.org/plugins/the-events-calendar/

  2. griep123
    Member
    Posted 1 year ago #

    I have exactly the same problem. Have been searching for solutions, but haven't found it yet...

    Working with WP 3.8 and The Events Calendar 3.3.1.

    Permalinks are set as: /%category%/%postname%/
    When I change permalinks to default, it works! But with permalinks set, the slugs come into play. Then it:
    - does work for /events (calendar or list view)
    - does not work for /event (detail page). I get an error 400 (page not found).

    Hope there is quick solution for this!
    Thanks!

  3. cbridges
    Member
    Posted 1 year ago #

    I changed my permalinks back to default, saved it and then turn them back to post name. The link from the widget now gets to the event post but the formatting of the individual post is all messed up. From calendar view (month view) when I click the event it takes me to the events list view, not the individual event.

    I have this plugin installed on both the working website/directory and development site (wordpress installed in a subdirectory of the working site). Both are running WP 3.8 and Events Calendar 3.3.1 and on the working website it works just fine but the plugin on the development site/subdirectory install is having all the problems.

    Hopefully we get some input from the plugin developer.

  4. BrentEades
    Member
    Posted 1 year ago #

    Exact same issue for me. WP 3.8 and version 3.3.1 of the Calendar. Changing permalink structure from Post Name to Numeric fixes it, but I'd prefer to retain the Post Name structure.

    Plugin developer, any advice here?

  5. jswartzendruber
    Member
    Posted 1 year ago #

    cbridges - thanks for the note; I too, was having the same problem (trying to bring up a single event gives a 404). Changing Permalinks from Post Name to Default, then back to Post Name solved the problem for me.

    I spent some time experimenting, here's what I've found:

    1. Permalinks are set to "Post name"
    2. After installation of The Events Calendar, the "Single Event slug URL" is set to "event"
    3. Trying to view a single event (/event/test-event) gives a 404
    4. Set Permalinks to "Default"
    5. Set Permalinks back to "Post name"
    6. Viewing a single event works properly.
    7. I change the Single Event slug URL to "thisEvent"
    8. Trying to view a single event (/thisEvent/test-event) gives a 404
    9. Set Permalinks to "Default"
    10. Set Permalinks back to "Post name"
    11. Viewing a single event works properly again.

    So basically, once I decide what I want the Single Event slug URL to be then I set it, get the 404, do the Permalink two-step, and then the single event displays properly using the slug URL I've specified.

    I used Debug Bar to see the difference between a failed and successful query, here's what I found:

    404 for /event/test-event

    Request:  event/test-event
    Query String:  attachment=test-event
    Matched Rewrite Rule:  [^/]+/([^/]+)/?$
    Matched Rewrite Query:  attachment=test-event

    Successful request for /event/test-event

    Request:  event/test-event
    Query String:  tribe_events=test-event&post_type=tribe_events&name=test-event
    Matched Rewrite Rule:  event/([^/]+)(/[0-9]+)?/?$
    Matched Rewrite Query:  tribe_events=test-event&page=

    Hope this helps - FYI I'm using WP 3.8, Events Calendar 3.3.1

  6. jswartzendruber
    Member
    Posted 1 year ago #

    A bit more information ... playing around a bit more shows that if I change the Single event URL slug I don't actually have to set Permalinks to "Default" and back to "Post name". Simply navigating to the Permalink Settings admin page and clicking on "Save Changes" is enough to produce the expected behavior and avoid the 404.

  7. BrentEades
    Member
    Posted 1 year ago #

    Interesting. I see the exact same behaviour -- changing the slug seems to do the trick. Thanks for the pointer!

  8. griep123
    Member
    Posted 1 year ago #

    Thanks jswartzendruber!

    Unfortunately it doesn't work for me...
    I am now thinking to check out my .htaccess file, maybe a setting there will solve the problem.

  9. cbridges
    Member
    Posted 1 year ago #

    Thanks @jswartzendruber

  10. conradcathalmurray
    Member
    Posted 1 year ago #

    I don't know why the plugin creator has failed to respond to this post as it effectively makes their plugin unusable.

  11. Stick14
    Member
    Posted 1 year ago #

    I'm having the same issue. When clicking on the event itself I get 404. I can view the events in list mode but can only see some of the details.

  12. svinqvmraka
    Member
    Posted 1 year ago #

    Same issue here. Im getting a 404 when trying to open a single event page. Some observations:
    When I flush the permalinks, everything looks fine and works as it should until I open an incognito window and try opening an even in it without logging in to wordpress. This breaks the events again, 404s start showing up for both logged in and logged out visitors until I flush the permalinks again and we're back to square one.
    Any indication that someone is working on this from the dev team would be great because this is kind of a major mess up.

  13. thecookiemonster
    Member
    Posted 1 year ago #

    Same deal here. Lets hope they fix it!

  14. HelenSama
    Member
    Posted 1 year ago #

    I'm having the same issue and will try changing the permalinks to default and back again. Agree with thecookiemonster - let's hope they fix it!

  15. mdv1985
    Member
    Posted 1 year ago #

    I'm having the exact same problem and the permalinks switch doesn't fix it for me. Really wish they would at least acknowledge this is an issue they are working on since it effectively breaks the plugin. Since I haven't seen anyone else mention it, this problem only occurs for me on individual event posts. If the event is recurring it doesn't have an issue.

  16. Barry Hughes
    Member
    Plugin Author

    Posted 1 year ago #

    Hi cbridges, sorry for the delay first of all - looks like this one slipped through the cracks. Can I confirm in the first instance that you still need help with this?

    To everyone else, please bear in mind the guidelines detailed in the forum welcome - in particular that even if a problem looks very similar it may not be the same problem, as illustrated by mdv1985's comment:

    I'm having the exact same problem and the permalinks switch doesn't fix it for me.

    (That's not to single you out mdv1985, just to highlight we are quite likely looking at a lot of superficially similar reports with different causes and solutions.)

    For that reason it is best to post new threads of your own.

    Thanks!

  17. mdv1985
    Member
    Posted 1 year ago #

    Hi Barry,

    I'll keep that in mind in the future. It turns out I likely am having the same problem, the permalinks fix wasn't working because of a caching issue. Once I fixed that the permalinks solution did work, it just isn't practical.

    Thanks.

  18. cbridges
    Member
    Posted 1 year ago #

    @Barry,
    I do have this issue corrected. By doing the permalink switch I mentioned above, it is working properly. Thanks!

  19. woodraf
    Member
    Posted 1 year ago #

    I have still the same problem and it looks that's something wrong with Event Calendar not my page. :/

    https://tri.be/support/forums/topic/after-upgrade-single-event-view-stopped-working/#post-88857

  20. Aaron Courtyard
    Member
    Posted 1 year ago #

    had this problem and the permalink fix didn't work for me. The new update fixed it tho. updated to 3.4.1! yay!

  21. Aaron Courtyard
    Member
    Posted 1 year ago #

    ooooh spoke to soon,now its back to not working again

  22. Aaron Courtyard
    Member
    Posted 1 year ago #

    so i found what caused mine to fail, incompatibility with a plugin called "project status". Even after getting rid of this plugin, i had to deactivate the event calendar , then reactivate it to get it to work right again!

  23. cbridges
    Member
    Posted 1 year ago #

    @aaron,
    Glad you got it to work as we'll!

  24. xand79
    Member
    Posted 1 year ago #

    I have the same problem. In one situation I got a 404, in other - cyclical redirect on page with single event. It depends of permalink structure (and I don't want to change it!). But in any case there is right way to see event page: call it http://www.yoursite.com/?tribe_events=event_name. Problem wasn't decided for a long time, and I desided to simply find a part of code where link to single post is generated and change it according to this sample.

    For month view it is in /the-events-calendar/views/month/single-event.php line 27 (ver.3.4.1). Here's link string made with function tribe_event_link. For widget - it's made with tribe_get_event_link.

    Both functions we can find in /the-events-calendar/public/template-tags/link.php and what's more - tribe_event_link only calls tribe_get_event_link. So, isn't it a decision to change this function?

    And, at last, here's my simple variant of this function:

    function tribe_get_event_link() {
    		$lnk = get_permalink($event);
    		$lnk = explode("/", $lnk);
    		return $lnk[0] . "/" . $lnk[1] . "/" . $lnk[2] . "/?tribe_events=" . $lnk[4];
    	}

    Well, maybe you'll decide that it's reverse ingeneering, but what we can do - this variant works!

  25. Barry Hughes
    Member
    Plugin Author

    Posted 1 year ago #

    We don't recommend changing core code, certainly, but you're welcome to if you want and understand the consequences. I'm not sure that particular fix will be useful in every case for all users, though.

    That apart I want you to know we are unlikely to monitor this thread going forward and recommend posting individual threads if you need further help - thanks for the updates, though, particularly the info about "Project Status". There certainly seems to be a broad correlation between plugins that modify WP's rewrite rules and this 404 issue for single events.

  26. xand79
    Member
    Posted 1 year ago #

    Of course, it's not a decision, cause if version of plugin will be renewed, all changes will be lost. But if I whant my calendar do working now - not a days-weeks-... later - it's only one way: modify code. Of course, those who don't understand basical php will not do it, but if someone do - this is one of the possible ways to try, I think.

    Btw, cyclical redirect in this plugin is an old problem (don't remember for shure, maybe some monthes). I tried to analyse mechanism of redirects in it, but from version to version it becomes more and more difficult. Add this to redirects in .htaccess, wordpress core, some other plugins in your installation - so where is the broblem? Noone can tell you, it's only your combination of different factors. And if you don't want to change your links structure or kill some plugins you need - will author change the code only for you? Will he find universal algoritm for everyone? And general question: when? For me it's critically, of course not for everybody.

  27. Barry
    Member
    Plugin Author

    Posted 1 year ago #

    Hi!

    We definitely appreciate your viewpoint and I want you to know we do work hard to be good citizens of the WordPress world - and that ethos extends to our code, which we want to play as nicely with other plugins (and themes) as is practical.

    That said, can we write code that is guaranteed to work universally in all installations and side-by-side with every other plugin? The reality is we cannot.

    As you highlight, a single installation of WordPress can be a complex beast with many layers and addons - I am sure you appreciate then the challenges in supporting many thousands of installations with sometimes wildly different configurations in terms of plugins, themes, versions and differing hosting environments.

    Thanks for sharing your solution though, hopefully it will indeed be useful for others here.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • The Events Calendar
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.