Support » Plugin: WP eCommerce » WPEC is assuming all page slugs are categories (and overriding the template)

  • Resolved Drew Jaynes


    WordPress Core Developer

    WP: 3.5.1
    WPEC: (upgraded from yesterday)
    Permastruct: %postname%

    Upgraded to yesterday and soon discovered that accessing any non-WPEC page or post was loading the products-page archive instead.

    Upon further inspection, we discovered that every non-WPEC page or post is being matched against the main rewrite of (.+?)/?$ (as they should be). However the the matched rewrite query (via Debug Bar), shows that all slugs are assumed to be WPEC product categories. For instance:


    That’s kind of a deal breaker, especially since it’s overriding the template.

    This is with all plugins disabled except Debug Bar and WPEC. All rewrite rules introduced by theme functionality are disabled and rewrites flushed.

    Any suggestions?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Drew Jaynes


    WordPress Core Developer

    Finally resolved this by running flush_rewrite_rules(); once directly on the homepage. There are several tickets including one on the 3.6 milestone that tackle lingering issues with the so-called, “double-flush” problem.

    Plugin Author Justin Sainton


    Yeah, I think we had a permalink notice to that effect displayed at one point. I believe we thought it was fixed in 3.4, so we removed it. Hadn’t heard of any new issues with it, but sounds like you got bit by it.

    I feel like “FLUSH YOUR PERMALINKS” is the “Turn it off, and then back on” of plugin support 🙂

    Glad to hear you got it resolved.

    Drew Jaynes


    WordPress Core Developer

    Yeah, the problem here was that no amount of back-end flushes could remedy the problem. Worked just fine on the local clone where we managed to reproduce the problem (in fact, we got the double-flush message via WPEC on local), but the double-flush had absolutely no effect on the production site. Apparently flushing from the front-end does it. Weird.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘WPEC is assuming all page slugs are categories (and overriding the template)’ is closed to new replies.