WordPress.org

Ready to get started?Download WordPress

Forums

Need Help Diagnosing Permalink Problem Reports (5 posts)

  1. davidfcarr
    Member
    Posted 3 years ago #

    I'm having trouble with reports of 404 errors from some but not all users of an event management plugin I created that uses WP3 custom post types. It works fine on my system, and those of some other happy customers, but the people who are having trouble report they get page not found when they try to click on a permalink associated with the post type.

    I would appreciate any suggestions on how to track down the problem. The custom post type is registered as 'event' so the permalink structure is /event/%event%

    At one point I, thought the url parsing routine might be getting confused between that and a page on one of the problems sites that was /events/ -- based on another post I saw that discussed these sorts of problems. Someone said the parser could be confused if a similar slug was used in the category hierarchy. But I tried changing the post type slug to 'rsvp-event' and that didn't seem to make a difference. I had one of the people who was having trouble install it on her site.

    Below, I've included the custom post type setup code and a data dump of the rewrite object it creates.

    The plugin in question is this:

    http://wordpress.org/extend/plugins/rsvpmaker/

    The custom post type setup code looks like this:

    [Code moderated as per the Forum Rules. Please use the pastebin]

    BTW, I had one of the people who was reporting problems do the same data dump of the rewrite object, and it looked essentially identical. So it's not that flush rewrite hasn't run, apparently. She is running WP3.0

  2. davidfcarr
    Member
    Posted 3 years ago #

    This is the plugin code I wanted to post:

    http://wordpress.pastebin.com/XesqTBLT

  3. davidfcarr
    Member
    Posted 3 years ago #

    And this is the rewrite rules object data dump I mentioned, which shows that the rules are being created correctly:

    http://wordpress.pastebin.com/GYxUssXj

  4. Dalton
    Member
    Posted 3 years ago #

    I would be very interested in hearing if you come up with an answer for this, because I'm experiencing the same thing with my FAQ plugin. I suspect that it's related to the client permalink structure. I'll keep an eye on this post and follow up if I find anything.

    Dalton

  5. davidfcarr
    Member
    Posted 3 years ago #

    I found I had to use a flush_rewrite_rules on initialization of the custom post type, at least for some users' systems. In my RSVPMaker plugin, it's an options preference to run it every time (if you're having problems with 404 errors) or just when the plugin is first activated.

Topic Closed

This topic has been closed to new replies.

About this Topic