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

  1. Drew Jaynes
    Docs Czar
    Posted 2 years ago #

    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?


  2. Drew Jaynes
    Docs Czar
    Posted 2 years ago #

    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
    Plugin Author

    Posted 2 years 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. Drew Jaynes
    Docs Czar
    Posted 2 years ago #

    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

  • WP eCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic