WordPress.org

Forums

WooCommerce - excelling eCommerce
[resolved] Cart Page giving error 404 WC 2.1.2 (4 posts)

  1. Chirag Vora
    Member
    Posted 1 year ago #

    My cart page is giving 404, My permalinks are set to:
    COMMON SETTINGS: custom structure: /%postname%
    PRODUCT PERMALINK BASE: custom base: /%product_cat%

    Tried flushing permalink (although not required after 2.1.1 according to this) but it doesn't solve the problem.

    Worth noting that default permalink works. Any other permalink structure gives 404 Not found.

    https://wordpress.org/plugins/woocommerce/

  2. Chirag Vora
    Member
    Posted 1 year ago #

    Custom base: /%product_cat% is not working for product permalink. It return 404 Not found for all pages!

    This happened while moving from 2.1.1 to 2.1.2.

    I have Yoast SEO installed with "Redirect ugly URLs to clean permalinks" turned off.

    If /shop/%product_cat% or /anything/%product_cat% is used, all pages show up fine. It's just /%product_cat% that would lead to all pages giving "Not Found". I guess, something got messed up with permalinks in 2.1.2

  3. Coen Jacobs
    Member
    Posted 1 year ago #

    Unfortunately /%product_cat is an invalid permalinks structure. WordPress core doesn't allow this, as it's not a proper base for a custom post type.

    We've added a failsafe to those settings in this commit that will enforce a static base. This will be released in the next fix release (v2.1.3).

  4. Chirag Vora
    Member
    Posted 1 year ago #

    I thought something was wrong with my setup. Good to hear that. Thank you, Coen!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce - excelling eCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic