• Resolved Andrew

    (@pezigns)


    Hello,

    I am using your plugin to display events on a site I am creating. I am using the index and single templates you provided in your plugin. Do I need to be creating a CPT to run this plugin and get single pages? I have the eventbrite-index.php page displaying the full list of events but currently cant get the single pages to load for each event. I believe this is caused by a redirect issue.

    The urls are displaying correctly as https://ww.example.com/events/eventname-eventid

    I have saved my permalinks with /%postname%/ but this still isn’t working. What can be done I am running this on a dev environment locally. I am developing this site using the “_s theme”. Any help with this would be greatly appreciated, been racking my brain for some time now. Thank you,

    https://www.ads-software.com/plugins/eventbrite-api/

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Automattic

    (@automattic)

    Hello,

    It should still work as expected during local development too… I’m assuming events is a page, with the Eventbrite Events template applied to it (it’s not a subpage at all)?

    It sounds like a rewrite rules issue. If resaving on Settings > Permalinks doen’t help, can you install the Rewrite Rules Inspector plugin and let us know if you have your Eventbrite rewrite rules at the top (they should be).

    Thread Starter Andrew

    (@pezigns)

    No it is not a subpage. I have it setup as a page with the event list page template applied. I think it is maybe a redirect issue as well. Below I have attached the event redirects I see on the page. basically what the rewrite plugin is displaying. Let me know if this makes sense.

    Thank You!!

    (events)/organizer/[0-9a-z-]+-(\d+)/?$ index.php?pagename=$matches[1]&organizer_id=$matches[2] other

    (events)/organizer/[0-9a-z-]+-(\d+)/page/([0-9]{1,})/?$ index.php?pagename=$matches[1]&organizer_id=$matches[2]&paged=$matches[3] other

    (events)/venue/[0-9a-z-]+-(\d+)/?$ index.php?pagename=$matches[1]&venue_id=$matches[2] other

    (events)/venue/[0-9a-z-]+-(\d+)/page/([0-9]{1,})/?$ index.php?pagename=$matches[1]&venue_id=$matches[2]&paged=$matches[3] other

    (events)/[0-9a-z-]+-(\d{11})/?$ index.php?pagename=$matches[1]&eventbrite_id=$matches[2] other

    Plugin Author Automattic

    (@automattic)

    Is the page with the Eventbrite Events page template also set as your front page? This has been known to cause issues in the past. If it’s not the home page nor a subpage, do the redirects work properly for you?

    Thread Starter Andrew

    (@pezigns)

    I currently have the events page setup as the front page. However I have tried using another page as front page and still get the same troubles with the redirects. When I set another page as the front page, before I tested I tried re-saving permalinks as well as flushing my rewrite rules and I still am getting 404’s for the single pages as well as venue, organizer and really any other links associated. Sorry for being such a pain this site is for a client and I just really want this to work. Thanks again for your time on this!

    Plugin Author Automattic

    (@automattic)

    Hm, sounds like something is scrambled at this point. Do you have the same problem if you create a new page (not assigned as the home page or a subpage) and assigned it the Eventbrite Events page template? (Multiple pages can have the template.) Also, is this a custom theme you’re using? Does the problem exist when using a default theme?

    Thread Starter Andrew

    (@pezigns)

    Hi,

    It is the Underscores theme (as suggested in your installation). This is the first functionality I have added to the theme. I am just running this how the installation says. I have tried other pages. I also have tried using a couple different default themes.

    Thread Starter Andrew

    (@pezigns)

    Hello,
    I am still working to get this issue resolved. Any help with this would be greatly appreciated. Thank You,

    Plugin Author Automattic

    (@automattic)

    Hm, I can’t replicate this. I’ve got Underscores (latest master branch) activated, with the Eventbrite Events page template from the plugin assigned to a page that displays all events. The single and category (venue, organizer) links all work. Eventbrite API plugin is version 1.0.10, Keyring is version 1.6.2 (both the latest). Does all of that sound the same as what you’ve got?

    Any indicators in PHP error logs at all?

    Plugin Author Automattic

    (@automattic)

    Hi Andrew, any luck with this?

    Plugin Author Automattic

    (@automattic)

    Closing; just open a new thread if you’re still having issues.

    This will sound ridiculous but check you file permissions, I was getting a not found error (404), I set the permissions on the *.php file to 644 they were at 666, I imagine 744 would work too. fixed everything.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Issues accessing single pages (404)’ is closed to new replies.