Page 2 of subcategory gives 404
-
The given url: https://www.zwenkwielenwinkel.nl/zwenkwielen/zwenkwiel-75mm/page/2/ gives a 404 error. If i use the parent category it works fine: https://www.zwenkwielenwinkel.nl/zwenkwielen/page/2/
Any idea where I can look to fix this problem?
The page I need help with: [log in to see the link]
-
Hi @bowis
In some cases, it might help to “reset” the permalinks in your site.
To do this, go to Settings → Permalinks, change the setting under “Common Settings” and Save. Next, change it back to how it was, and save again.
Let us know if that works!
@senff thank you for the reply, I did this, however it did not result in anything, still getting the 404.
Hey there,
Could you please share a copy of your site’s System Status? You can find it via WooCommerce > Status.
Select “Get system report” and then “Copy for support”.? Once you’ve done that, paste it here in your response.### WordPress Environment ### WordPress address (URL): https://www.zwenkwielenwinkel.nl Site address (URL): https://www.zwenkwielenwinkel.nl WC Version: 4.2.2 REST API Version: ? 1.0.8 WC Blocks Version: ? 2.5.16 Action Scheduler Version: ? 3.1.6 WC Admin Version: ? 1.2.4 Log Directory Writable: ? WP Version: 5.4.2 WP Multisite: – WP Memory Limit: 256 MB WP Debug Mode: – WP Cron: ? Language: nl_NL External object cache: – ### Server Environment ### Server Info: Apache/2 PHP Version: 7.1.26 - We raden je aan om PHP-versie 7.2 of hoger te gebruiken voor betere prestaties en beveiliging. Hoe je PHP-versie bijwerken PHP Post Max Size: 64 MB PHP Time Limit: 30 PHP Max Input Vars: 1000 cURL Version: 7.64.0 OpenSSL/1.1.1d SUHOSIN Installed: – MySQL Version: 5.5.5-10.2.22-MariaDB Max Upload Size: 64 MB Default Timezone is UTC: ? fsockopen/cURL: ? SoapClient: ? DOMDocument: ? GZip: ? Multibyte String: ? Remote Post: ? Remote Get: ? ### Database ### WC Database Version: 4.2.2 WC Database Prefix: www_ Totale databasegrootte: 45.67MB Database datagrootte: 39.15MB Database index grootte: 6.52MB www_woocommerce_sessions: Data: 1.02MB + Index: 0.02MB + Engine InnoDB www_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB www_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB www_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB www_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB www_woocommerce_order_itemmeta: Data: 0.09MB + Index: 0.09MB + Engine InnoDB www_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB www_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB www_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB www_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB www_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB www_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB www_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB www_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB www_actionscheduler_actions: Data: 0.31MB + Index: 0.19MB + Engine InnoDB www_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB www_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB www_actionscheduler_logs: Data: 0.19MB + Index: 0.14MB + Engine InnoDB www_berocket_termmeta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB www_clever_visitors_info: Data: 0.02MB + Index: 0.00MB + Engine InnoDB www_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB www_comments: Data: 0.05MB + Index: 0.09MB + Engine InnoDB www_failed_jobs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB www_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB www_mailchimp_carts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB www_mailchimp_jobs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB www_ms_snippets: Data: 0.02MB + Index: 0.00MB + Engine InnoDB www_options: Data: 9.27MB + Index: 0.38MB + Engine InnoDB www_pmxe_exports: Data: 0.19MB + Index: 0.00MB + Engine InnoDB www_pmxe_google_cats: Data: 0.39MB + Index: 0.00MB + Engine InnoDB www_pmxe_posts: Data: 0.23MB + Index: 0.00MB + Engine InnoDB www_pmxe_templates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB www_pmxi_files: Data: 0.02MB + Index: 0.00MB + Engine InnoDB www_pmxi_history: Data: 0.02MB + Index: 0.00MB + Engine InnoDB www_pmxi_images: Data: 0.02MB + Index: 0.00MB + Engine InnoDB www_pmxi_imports: Data: 0.28MB + Index: 0.00MB + Engine InnoDB www_pmxi_posts: Data: 0.28MB + Index: 0.00MB + Engine InnoDB www_pmxi_templates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB www_postmeta: Data: 11.52MB + Index: 3.00MB + Engine InnoDB www_posts: Data: 4.52MB + Index: 0.38MB + Engine InnoDB www_queue: Data: 0.02MB + Index: 0.00MB + Engine InnoDB www_snippets: Data: 0.02MB + Index: 0.00MB + Engine InnoDB www_termmeta: Data: 0.06MB + Index: 0.03MB + Engine InnoDB www_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB www_term_relationships: Data: 0.38MB + Index: 0.17MB + Engine InnoDB www_term_taxonomy: Data: 0.05MB + Index: 0.03MB + Engine InnoDB www_usermeta: Data: 0.05MB + Index: 0.03MB + Engine InnoDB www_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB www_wcpdf_invoice_number: Data: 0.02MB + Index: 0.00MB + Engine InnoDB www_wc_admin_notes: Data: 0.02MB + Index: 0.00MB + Engine InnoDB www_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB www_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB www_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB www_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB www_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB www_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB www_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB www_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB www_wc_product_meta_lookup: Data: 0.09MB + Index: 0.13MB + Engine InnoDB www_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB www_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB www_wfblockediplog: Data: 0.02MB + Index: 0.00MB + Engine InnoDB www_wfblocks7: Data: 0.02MB + Index: 0.05MB + Engine InnoDB www_wfconfig: Data: 0.47MB + Index: 0.00MB + Engine InnoDB www_wfcrawlers: Data: 0.02MB + Index: 0.00MB + Engine InnoDB www_wffilechanges: Data: 0.02MB + Index: 0.00MB + Engine InnoDB www_wffilemods: Data: 4.52MB + Index: 0.00MB + Engine InnoDB www_wfhits: Data: 0.22MB + Index: 0.08MB + Engine InnoDB www_wfhoover: Data: 0.02MB + Index: 0.02MB + Engine InnoDB www_wfissues: Data: 0.02MB + Index: 0.06MB + Engine InnoDB www_wfknownfilelist: Data: 1.52MB + Index: 0.00MB + Engine InnoDB www_wflivetraffichuman: Data: 0.02MB + Index: 0.02MB + Engine InnoDB www_wflocs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB www_wflogins: Data: 0.38MB + Index: 0.16MB + Engine InnoDB www_wfls_2fa_secrets: Data: 0.02MB + Index: 0.02MB + Engine InnoDB www_wfls_settings: Data: 0.02MB + Index: 0.00MB + Engine InnoDB www_wfnotifications: Data: 0.02MB + Index: 0.00MB + Engine InnoDB www_wfpendingissues: Data: 0.02MB + Index: 0.06MB + Engine InnoDB www_wfreversecache: Data: 0.02MB + Index: 0.00MB + Engine InnoDB www_wfsnipcache: Data: 0.02MB + Index: 0.05MB + Engine InnoDB www_wfstatus: Data: 0.14MB + Index: 0.11MB + Engine InnoDB www_wftrafficrates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB www_wpf_filters: Data: 0.02MB + Index: 0.00MB + Engine InnoDB www_yoast_indexable: Data: 1.52MB + Index: 0.31MB + Engine InnoDB www_yoast_indexable_hierarchy: Data: 0.02MB + Index: 0.05MB + Engine InnoDB www_yoast_migrations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB www_yoast_primary_term: Data: 0.02MB + Index: 0.03MB + Engine InnoDB www_yoast_seo_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB www_yoast_seo_meta: Data: 0.05MB + Index: 0.00MB + Engine InnoDB www_zoo_cw_global_config: Data: 0.02MB + Index: 0.00MB + Engine InnoDB www_zoo_cw_product_attribute_swatch_type: Data: 0.02MB + Index: 0.00MB + Engine InnoDB www_zoo_ln_filter_config: Data: 0.02MB + Index: 0.00MB + Engine InnoDB www_zoo_ln_filter_list: Data: 0.02MB + Index: 0.00MB + Engine InnoDB www_zoo_ln_global_config: Data: 0.02MB + Index: 0.00MB + Engine InnoDB ### Post Type Counts ### attachment: 319 br_product_filter: 1 cmm4e_menu: 15 cmm4e_menu_location: 1 cmm4e_menu_theme: 2 custom_css: 3 elementor_library: 5 jetpack_migration: 2 mc4wp-form: 1 nav_menu_item: 130 page: 22 post: 1 product: 495 revision: 828 shop_order: 42 shop_order_refund: 1 wpcf7_contact_form: 2 ### Security ### Secure connection (HTTPS): ? Hide errors from visitors: ? ### Active Plugins (31) ### Clever Addons for Elementor: door CleverSoft – 2.0.6 Child Theme Generator: door Serafino Corriero – 2.2.6 Clever Addons: door Zootemplate – 1.0.0 Clever Layered Navigation: door cleversoft.co – 1.3.2 – Ge?nstalleerde versie niet getest met actieve versie van WooCommerce 4.2.2 Clever Mega Menu Pro for Elementor: door CleverSoft – 1.0.0 Clever Swatches: door cleversoft.co – 2.1.4 – Ge?nstalleerde versie niet getest met actieve versie van WooCommerce 4.2.2 Codefragmenten: door Code Snippets Pro – 2.14.0 Contact Form 7: door Takayuki Miyoshi – 5.2 OnepathDTPlugin: door Corné Steenbakkers Boris Winter – 1.0.0 – Ge?nstalleerde versie niet getest met actieve versie van WooCommerce 4.2.2 Google Tag Manager for WordPress: door Thomas Geiger – 1.11.4 Elementor Pro: door Elementor.com – 2.10.3 Elementor: door Elementor.com – 2.9.13 Enhanced E-commerce for Woocommerce store: door Tatvic – 2.3.4 – Ge?nstalleerde versie niet getest met actieve versie van WooCommerce 4.2.2 Loco Translate: door Tim Whitlock – 2.4.0 Mailchimp voor WooCommerce: door MailChimp – 2.4.1 – Ge?nstalleerde versie niet getest met actieve versie van WooCommerce 4.2.2 MC4WP: Mailchimp for WordPress: door ibericode – 4.7.8 Meta Box: door MetaBox.io – 5.3.2 one.com themes and plugins: door one.com – 0.6.2 WooCommerce Sisow Betaal Opties: door Sisow – 5.5.0 – Ge?nstalleerde versie niet getest met actieve versie van WooCommerce 4.2.2 TM WooCommerce Product API Link: door Manish – 1.1.0 – Ge?nstalleerde versie niet getest met actieve versie van WooCommerce 4.2.2 Onder constructie: door WebFactory Ltd – 3.80 W3 Total Cache: door BoldGrid – 0.14.2 WooCommerce Product Feed: door WebAppick – 3.6.10 – Ge?nstalleerde versie niet getest met actieve versie van WooCommerce 4.2.2 Woo Align Buttons: door 320up – 3.6.5 – Ge?nstalleerde versie niet getest met actieve versie van WooCommerce 4.2.2 Multi Currency for WooCommerce: door VillaTheme – 2.1.5.5 – Ge?nstalleerde versie niet getest met actieve versie van WooCommerce 4.2.2 WooCommerce Admin: door WooCommerce – 1.2.4 – Ge?nstalleerde versie niet getest met actieve versie van WooCommerce 4.2.2 WooCommerce PDF Invoices & Packing Slips: door Ewout Fernhout – 2.5.2 – Ge?nstalleerde versie niet getest met actieve versie van WooCommerce 4.2.2 WooCommerce Services: door Automattic – 1.23.2 – Ge?nstalleerde versie niet getest met actieve versie van WooCommerce 4.2.2 WooCommerce: door Automattic – 4.2.2 (update naar versie 4.3.0 is beschikbaar) Wordfence Security: door Wordfence – 7.4.9 Yoast SEO: door Team Yoast – 14.4.1 ### Inactive Plugins (2) ### Performance Cache: door One.com – 0.2.2 Visual Composer: door visualcomposer.com – 28.0 ### Dropin Plugins (1) ### advanced-cache.php: advanced-cache.php ### Settings ### API Enabled: – Force SSL: – Currency: EUR (€) Currency Position: left_space Thousand Separator: . Decimal Separator: , Number of Decimals: 2 Taxonomies: Product Types: external (external) grouped (grouped) simple (simple) variable (variable) Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog) exclude-from-search (exclude-from-search) featured (featured) outofstock (outofstock) rated-1 (rated-1) rated-2 (rated-2) rated-3 (rated-3) rated-4 (rated-4) rated-5 (rated-5) Connected to WooCommerce.com: – ### WC Pages ### Winkelbasis: #6 - /winkel/ Winkelmand: #7 - /winkelmand/ Afrekenen: #8 - /afrekenen/ Mijn account: #9 - /mijn-account/ Algemene voorwaarden: #4247 - /terms-conditions/ ### Theme ### Name: Cerato Child Version: 1.0.5 Author URL: https://zootemplate.com Child Theme: ? Parent Theme Name: Cerato Parent Theme Version: 1.0.5 Parent Theme Author URL: https://www.zootemplate.com/contact-us WooCommerce Support: ? ### Templates ### Overrides: cerato/woocommerce/cart/cart-totals.php cerato/woocommerce/cart/cart.php versie 3.5.0 is verouderd. De hoofdversie is 3.8.0 cerato/woocommerce/cart/mini-cart.php versie 3.5.0 is verouderd. De hoofdversie is 3.7.0 cerato/woocommerce/checkout/form-checkout.php cerato/woocommerce/checkout/review-order.php versie 3.3.0 is verouderd. De hoofdversie is 3.8.0 cerato/woocommerce/global/form-login.php cerato/woocommerce/global/quantity-input.php versie 3.6.0 is verouderd. De hoofdversie is 4.0.0 cerato/woocommerce/myaccount/form-login.php versie 3.6.0 is verouderd. De hoofdversie is 4.1.0 cerato/woocommerce/myaccount/form-lost-password.php cerato/woocommerce/single-product/add-to-cart/grouped.php versie 3.4.0 is verouderd. De hoofdversie is 4.0.0 /home/zwenk/domains/zwenkwielenwinkel.nl/public_html/wp-content/plugins/clever-swatches/templates/woocommerce/single-product/add-to-cart/variable.php versie 2.0.3 is verouderd. De hoofdversie is 3.5.5 cerato/woocommerce/single-product/meta.php cerato/woocommerce/single-product/clever-swatches-image.php versie 2.0.0 is verouderd. De hoofdversie is 3.5.1 cerato/woocommerce/single-product/rating.php cerato/woocommerce/single-product/tabs/tabs.php versie 2.4.0 is verouderd. De hoofdversie is 3.8.0 cerato/woocommerce/single-product-reviews.php Outdated Templates: ? Leer hoe te updaten ### Action Scheduler ### Afgerond: 735 Oldest: 2020-06-13 15:58:39 +0000 Newest: 2020-07-14 14:53:47 +0000 In afwachting: 1 Oldest: 2020-07-14 15:44:18 +0000 Newest: 2020-07-14 15:44:18 +0000
Hello @bowis,
Could you also post a screenshot of your permalink settings? You could upload the screenshot to your site and then place the link here. Have you adjusted the category base by any chance?
- This reply was modified 4 years, 4 months ago by Niels Lange.
@nielslange here’s the permalink: https://imgur.com/a/LAzeOVO
Additionally, I found this piece of code in my functions.php:
add_filter('request', function( $vars ) { global $wpdb; if( ! empty( $vars['pagename'] ) || ! empty( $vars['category_name'] ) || ! empty( $vars['name'] ) || ! empty( $vars['attachment'] ) ) { $slug = ! empty( $vars['pagename'] ) ? $vars['pagename'] : ( ! empty( $vars['name'] ) ? $vars['name'] : ( !empty( $vars['category_name'] ) ? $vars['category_name'] : $vars['attachment'] ) ); $exists = $wpdb->get_var( $wpdb->prepare( "SELECT t.term_id FROM $wpdb->terms t LEFT JOIN $wpdb->term_taxonomy tt ON tt.term_id = t.term_id WHERE tt.taxonomy = 'product_cat' AND t.slug = %s" ,array( $slug ))); if( $exists ){ $old_vars = $vars; $vars = array('product_cat' => $slug ); if ( !empty( $old_vars['paged'] ) || !empty( $old_vars['page'] ) ) $vars['paged'] = ! empty( $old_vars['paged'] ) ? $old_vars['paged'] : $old_vars['page']; if ( !empty( $old_vars['orderby'] ) ) $vars['orderby'] = $old_vars['orderby']; if ( !empty( $old_vars['order'] ) ) $vars['order'] = $old_vars['order']; } } return $vars; });
If I delete this code, all the categories in the menu do not work anymore.
- This reply was modified 4 years, 4 months ago by bowis.
It’s possible that this may be caused due to a theme conflict, or a third-party plugin. I’d recommend to perform a full conflict test to isolate the source of the issue
The best way to determine if the issue is being caused by a theme and/or plugin is to do the following:
– Temporarily switch your theme back to a default?theme, such as Storefront (https://woocommerce.com/products/storefront/)
– Disable all plugins except for WooCommerce.
– Clear your browser cache, and the cache on your site if you have one there.
– Test to see if the issue has been resolved.If that resolves the issue, then one-by-one you can switch back your theme and re-enable your plugins, testing in between, until the problem appears again. This will then give you an idea about which plugin is the one causing the conflict.
Tested it, did not make any difference
Hi there,
In your permalink settings, it appears you have a
.
entered in the Product Category Base field — please try changing that to something else (i.e.product-category
, ortest
) and see if that makes a difference with your subcategory pages.Hey there, since we haven’t heard back from you in awhile I’ll mark this thread as resolved now. If you have any further questions, I recommend creating a new thread.
- The topic ‘Page 2 of subcategory gives 404’ is closed to new replies.