WordPress.org

Support

Support » Plugins and Hacks » WP eCommerce » [Resolved] WPEC is assuming all page slugs are categories (and overriding the template)

[Resolved] WPEC is assuming all page slugs are categories (and overriding the template)

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

    Upgraded to 3.8.9.5 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:

    wpsc_product_category=contact-us

    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?

    http://wordpress.org/extend/plugins/wp-e-commerce/

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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

    @justinsainton

    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.

    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 ‘[Resolved] WPEC is assuming all page slugs are categories (and overriding the template)’ is closed to new replies.
Skip to toolbar