WordPress.org

Ready to get started?Download WordPress

Forums

WP eCommerce
[resolved] WPEC is assuming all page slugs are categories (and overriding the template) (4 posts)

  1. 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/

  2. 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.

  3. Justin Sainton
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  4. 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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic