page 2 of products is not found (404) when not using plain permalinks
-
Hello, I have been having issues with my website, pages 2 or more of products return 404 link not found, meaning the first page of product exists but once a user tries to go to the second or third page they get an error, I’ve found that the only solution to this is switching permalinks in the settings to plain (the first option) however this seems to create an issue for me with translatepress which I use to have two languages in my website, if it weren’t for this I’d settle with the plain url solution. I would love some help to understand why page 2 is unfound when I use any url that isn’t the plain simple option of the permalinks, Thank you in advance.
-
Hello tachshitbemilel,
Thank you for contacting Woo support.
The problem you’re describing, where pages beyond the first return a 404 error, is likely related to how your server handles permalinks. This issue is typically tied to server misconfiguration, specifically software like Apache or Nginx that manages your permalinks.
To better understand the situation, could you share your site’s System Status Report?
This will help me review the server configuration details and pinpoint the exact cause.Looking forward to your response. ??
Best regards.
Hello tachshitbemilel,
You can go through permalink settings page,
Flush Permalinks:
. Go to Settings > Permalinks.
. Simply click Save Changes without modifying anything. This will force
WordPress to regenerate the rewrite rules.Thank you.
<br>### WordPress Environment ###<br><br>WordPress address (URL): https://tachshitbmilel.com<br>Site address (URL): https://tachshitbmilel.com<br>WC Version: 9.2.3<br>Legacy REST API Package Version: ????? ?? ???? REST API ???? ???? ?? ????? ???? ???.<br>Action Scheduler Version: ? 3.8.1<br>Log Directory Writable: ?<br>WP Version: 6.6.1<br>WP Multisite: –<br>WP Memory Limit: 512 MB<br>WP Debug Mode: –<br>WP Cron: ?<br>Language: he_IL<br>External object cache: –<br><br>### Server Environment ###<br><br>Server Info: Apache<br>PHP Version: 8.0.30<br>PHP Post Max Size: 516 MB<br>PHP Time Limit: 60<br>PHP Max Input Vars: 1000<br>cURL Version: 8.7.1<br>OpenSSL/1.1.1w<br><br>SUHOSIN Installed: –<br>MySQL Version: 5.7.23-23<br>Max Upload Size: 512 MB<br>Default Timezone is UTC: ?<br>fsockopen/cURL: ?<br>SoapClient: ?<br>DOMDocument: ?<br>GZip: ?<br>Multibyte String: ?<br>Remote Post: ?<br>Remote Get: ?<br><br>### Database ###<br><br>WC Database Version: 8.0.3<br>WC Database Prefix: JRb_<br>????? ????? ?? ???? ???????: 37.35MB<br>???? ??????? ?? ???? ???????: 32.44MB<br>???? ??????? ?? ???? ???????: 4.91MB<br>JRb_woocommerce_sessions: ??????: 0.02MB + ??????: 0.02MB + ???? InnoDB<br>JRb_woocommerce_api_keys: ??????: 0.02MB + ??????: 0.03MB + ???? InnoDB<br>JRb_woocommerce_attribute_taxonomies: ??????: 0.02MB + ??????: 0.02MB + ???? InnoDB<br>JRb_woocommerce_downloadable_product_permissions: ??????: 0.02MB + ??????: 0.06MB + ???? InnoDB<br>JRb_woocommerce_order_items: ??????: 0.02MB + ??????: 0.02MB + ???? InnoDB<br>JRb_woocommerce_order_itemmeta: ??????: 0.05MB + ??????: 0.03MB + ???? InnoDB<br>JRb_woocommerce_tax_rates: ??????: 0.02MB + ??????: 0.06MB + ???? InnoDB<br>JRb_woocommerce_tax_rate_locations: ??????: 0.02MB + ??????: 0.03MB + ???? InnoDB<br>JRb_woocommerce_shipping_zones: ??????: 0.02MB + ??????: 0.00MB + ???? InnoDB<br>JRb_woocommerce_shipping_zone_locations: ??????: 0.02MB + ??????: 0.03MB + ???? InnoDB<br>JRb_woocommerce_shipping_zone_methods: ??????: 0.02MB + ??????: 0.00MB + ???? InnoDB<br>JRb_woocommerce_payment_tokens: ??????: 0.02MB + ??????: 0.02MB + ???? InnoDB<br>JRb_woocommerce_payment_tokenmeta: ??????: 0.02MB + ??????: 0.03MB + ???? InnoDB<br>JRb_woocommerce_log: ??????: 0.02MB + ??????: 0.02MB + ???? InnoDB<br>JRb_actionscheduler_actions: ??????: 0.20MB + ??????: 0.19MB + ???? InnoDB<br>JRb_actionscheduler_claims: ??????: 0.02MB + ??????: 0.02MB + ???? InnoDB<br>JRb_actionscheduler_groups: ??????: 0.02MB + ??????: 0.02MB + ???? InnoDB<br>JRb_actionscheduler_logs: ??????: 2.48MB + ??????: 0.14MB + ???? InnoDB<br>JRb_cartflows_ca_cart_abandonment: ??????: 0.02MB + ??????: 0.02MB + ???? InnoDB<br>JRb_cartflows_ca_email_history: ??????: 0.02MB + ??????: 0.03MB + ???? InnoDB<br>JRb_cartflows_ca_email_templates: ??????: 0.02MB + ??????: 0.00MB + ???? InnoDB<br>JRb_cartflows_ca_email_templates_meta: ??????: 0.02MB + ??????: 0.02MB + ???? InnoDB<br>JRb_commentmeta: ??????: 0.02MB + ??????: 0.03MB + ???? InnoDB<br>JRb_comments: ??????: 0.02MB + ??????: 0.09MB + ???? InnoDB<br>JRb_e_events: ??????: 0.02MB + ??????: 0.02MB + ???? InnoDB<br>JRb_links: ??????: 0.02MB + ??????: 0.02MB + ???? InnoDB<br>JRb_nfd_data_event_queue: ??????: 0.02MB + ??????: 0.00MB + ???? InnoDB<br>JRb_options: ??????: 19.03MB + ??????: 0.20MB + ???? InnoDB<br>JRb_postmeta: ??????: 4.41MB + ??????: 0.22MB + ???? InnoDB<br>JRb_posts: ??????: 1.28MB + ??????: 0.13MB + ???? InnoDB<br>JRb_termmeta: ??????: 0.02MB + ??????: 0.03MB + ???? InnoDB<br>JRb_terms: ??????: 0.02MB + ??????: 0.03MB + ???? InnoDB<br>JRb_term_relationships: ??????: 0.08MB + ??????: 0.05MB + ???? InnoDB<br>JRb_term_taxonomy: ??????: 0.02MB + ??????: 0.03MB + ???? InnoDB<br>JRb_trp_dictionary_he_il_en_us: ??????: 0.36MB + ??????: 0.44MB + ???? InnoDB<br>JRb_trp_gettext_en_us: ??????: 0.42MB + ??????: 0.47MB + ???? InnoDB<br>JRb_trp_gettext_he_il: ??????: 1.52MB + ??????: 0.47MB + ???? InnoDB<br>JRb_trp_gettext_original_meta: ??????: 0.02MB + ??????: 0.02MB + ???? InnoDB<br>JRb_trp_gettext_original_strings: ??????: 0.38MB + ??????: 0.25MB + ???? InnoDB<br>JRb_trp_original_meta: ??????: 0.05MB + ??????: 0.05MB + ???? InnoDB<br>JRb_trp_original_strings: ??????: 0.25MB + ??????: 0.28MB + ???? InnoDB<br>JRb_usermeta: ??????: 0.02MB + ??????: 0.03MB + ???? InnoDB<br>JRb_users: ??????: 0.02MB + ??????: 0.05MB + ???? InnoDB<br>JRb_wc_admin_notes: ??????: 0.08MB + ??????: 0.00MB + ???? InnoDB<br>JRb_wc_admin_note_actions: ??????: 0.06MB + ??????: 0.02MB + ???? InnoDB<br>JRb_wc_category_lookup: ??????: 0.02MB + ??????: 0.00MB + ???? InnoDB<br>JRb_wc_customer_lookup: ??????: 0.02MB + ??????: 0.03MB + ???? InnoDB<br>JRb_wc_download_log: ??????: 0.02MB + ??????: 0.03MB + ???? InnoDB<br>JRb_wc_orders: ??????: 0.02MB + ??????: 0.11MB + ???? InnoDB<br>JRb_wc_orders_meta: ??????: 0.02MB + ??????: 0.03MB + ???? InnoDB<br>JRb_wc_order_addresses: ??????: 0.02MB + ??????: 0.06MB + ???? InnoDB<br>JRb_wc_order_coupon_lookup: ??????: 0.02MB + ??????: 0.03MB + ???? InnoDB<br>JRb_wc_order_operational_data: ??????: 0.02MB + ??????: 0.03MB + ???? InnoDB<br>JRb_wc_order_product_lookup: ??????: 0.02MB + ??????: 0.06MB + ???? InnoDB<br>JRb_wc_order_stats: ??????: 0.02MB + ??????: 0.05MB + ???? InnoDB<br>JRb_wc_order_tax_lookup: ??????: 0.02MB + ??????: 0.03MB + ???? InnoDB<br>JRb_wc_product_attributes_lookup: ??????: 0.11MB + ??????: 0.11MB + ???? InnoDB<br>JRb_wc_product_download_directories: ??????: 0.02MB + ??????: 0.02MB + ???? InnoDB<br>JRb_wc_product_meta_lookup: ??????: 0.05MB + ??????: 0.11MB + ???? InnoDB<br>JRb_wc_rate_limits: ??????: 0.02MB + ??????: 0.02MB + ???? InnoDB<br>JRb_wc_reserved_stock: ??????: 0.02MB + ??????: 0.00MB + ???? InnoDB<br>JRb_wc_tax_rate_classes: ??????: 0.02MB + ??????: 0.02MB + ???? InnoDB<br>JRb_wc_webhooks: ??????: 0.02MB + ??????: 0.02MB + ???? InnoDB<br>JRb_wpforms_logs: ??????: 0.02MB + ??????: 0.00MB + ???? InnoDB<br>JRb_wpforms_payments: ??????: 0.02MB + ??????: 0.14MB + ???? InnoDB<br>JRb_wpforms_payment_meta: ??????: 0.02MB + ??????: 0.05MB + ???? InnoDB<br>JRb_wpforms_tasks_meta: ??????: 0.02MB + ??????: 0.00MB + ???? InnoDB<br>JRb_wpml_mails: ??????: 0.41MB + ??????: 0.00MB + ???? InnoDB<br>JRb_yoast_indexable: ??????: 0.14MB + ??????: 0.09MB + ???? InnoDB<br>JRb_yoast_indexable_hierarchy: ??????: 0.02MB + ??????: 0.05MB + ???? InnoDB<br>JRb_yoast_migrations: ??????: 0.02MB + ??????: 0.02MB + ???? InnoDB<br>JRb_yoast_primary_term: ??????: 0.02MB + ??????: 0.03MB + ???? InnoDB<br>JRb_yoast_seo_links: ??????: 0.02MB + ??????: 0.03MB + ???? InnoDB<br><br>### Post Type Counts ###<br><br>attachment: 784<br>custom_css: 1<br>customize_changeset: 6<br>elementor_library: 17<br>language_switcher: 4<br>nav_menu_item: 26<br>page: 25<br>post: 1<br>product: 125<br>product_variation: 94<br>revision: 144<br>shop_order: 31<br>shop_order_refund: 1<br>shopengine-template: 3<br>wp_global_styles: 1<br>wpforms: 1<br><br>### Security ###<br><br>Secure connection (HTTPS): ?<br>Hide errors from visitors: ?<br><br>### Active Plugins (28) ###<br><br>Akismet Anti-spam: Spam Protection: ??? Automattic - Anti-spam Team – 5.3.3<br>All-in-One WP Migration: ??? ServMask – 7.86<br>Starter Templates: ??? Brainstorm Force – 4.4.2<br>The Bluehost Plugin: ??? Bluehost – 3.14.7<br>????? ??????: ??? ????? ??????? ?????? ???????? – 1.6.4<br>Classic Widgets: ??? WordPress Contributors – 0.3<br>???????: ??? Elementor.com – 3.23.4<br>ElementsKit Lite: ??? Wpmet – 3.2.7<br>Envato Elements: ??? Envato – 2.0.14<br>Essential Addons for Elementor: ??? WPDeveloper – 6.0.2<br>Facebook for WooCommerce: ??? Facebook – 3.2.8<br>Jetpack: ??? ???????? – 13.7<br>MetForm: ??? Wpmet – 3.9.0<br>ShopEngine: ??? Wpmet – 4.6.9<br>TranslatePress - Multilingual: ??? Cozmoslabs<br>Razvan Mocanu<br>Madalin Ungureanu<br>Cristophor Hurduban – 2.8.4<br><br>UpdraftPlus - Backup/Restore: ??? UpdraftPlus.Com<br>DavidAnderson – 1.24.4<br><br>Payment Gateway for EasyCard on WooCommerce: ??? B.A Edan Technologies Ltd. – 1.0.1<br>CURCY - Multi Currency for WooCommerce: ??? VillaTheme – 2.2.3<br>FOX - Currency Switcher Professional for WooCommerce: ??? realmag777 – 1.4.2.1<br>WooCommerce Quaderno: ??? Quaderno – 2.2.7<br>WooCommerce Shipping & Tax: ??? WooCommerce – 2.8.0<br>???????: ??? ???? ???????? – 9.2.3<br>CoDesigner: ??? Codexpert<br>Inc – 4.6<br><br>???? SEO: ??? ???? Yoast – 23.4<br>WP .htaccess Editor: ??? WebFactory Ltd – 1.72<br>WP Mail Logging: ??? WP Mail Logging Team – 1.12.0<br>WP Reset: ??? WebFactory Ltd – 2.03<br>WPForms Lite: ??? WPForms – 1.9.0.4<br><br>### Inactive Plugins (2) ###<br><br>Hello Dolly: ??? Matt Mullenweg – 1.7.2<br>WooCommerce Blocks: ??? Automattic – 11.7.0<br><br>### Must Use Plugins (2) ###<br><br>Endurance Page Cache: ??? Mike Hansen – 2.2.1<br>SSO: ??? Garth Mortensen<br>Mike Hansen – 0.4<br><br><br>### Settings ###<br><br>Legacy API Enabled: –<br>Force SSL: –<br>Currency: ILS (?)<br>Currency Position: left_space<br>Thousand Separator: ,<br>Decimal Separator: .<br>Number of Decimals: 0<br>Taxonomies: Product Types: external (external)<br>grouped (grouped)<br>simple (simple)<br>variable (variable)<br><br>Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)<br>exclude-from-search (exclude-from-search)<br>featured (featured)<br>outofstock (outofstock)<br>rated-1 (rated-1)<br>rated-2 (rated-2)<br>rated-3 (rated-3)<br>rated-4 (rated-4)<br>rated-5 (rated-5)<br><br>Connected to WooCommerce.com: ?<br>Enforce Approved Product Download Directories: ?<br>HPOS feature enabled: –<br>Order datastore: WC_Order_Data_Store_CPT<br>HPOS data sync enabled: –<br><br>### Logging ###<br><br>Enabled: ?<br>Handler: Automattic\WooCommerce\Internal\Admin\Logging\LogHandlerFileV2<br>Retention period: 30 ????<br>Level threshold: –<br>Log directory size: 131 KB<br><br>### WC Pages ###<br><br>???? ????: #1613 - /?page_id=1613<br>?? ?????: ? ????? ?? ???? ?? ???????? ?[woocommerce_cart]? ?? ?? ????? ?woocommerce/cart?.<br>?????: #1303 - /?page_id=1303 - ???? ?? ???????? [woocommerce_checkout]<br>?????? ???: ? ?? ?? ?????<br>???? ?????: #219 - /?page_id=219<br><br>### Theme ###<br><br>Name: Astra<br>Version: 4.8.0<br>Author URL: https://wpastra.com/about/?utm_source=theme_preview&utm_medium=author_link&utm_campaign=astra_theme<br>Child Theme: ? – ?? ????? ?? ??????? ????? ???? ?? ??? ????? ????? ????<br>????? ?????? ????? ????? ??. ???? ?????: ???? ????? ???? ????? ??<br><br>WooCommerce Support: ?<br><br>### Templates ###<br><br>Overrides: –<br><br>### Admin ###<br><br>Enabled Features: activity-panels<br>analytics<br>product-block-editor<br>coupons<br>core-profiler<br>customize-store<br>customer-effort-score-tracks<br>import-products-task<br>experimental-fashion-sample-products<br>shipping-smart-defaults<br>shipping-setting-tour<br>homescreen<br>marketing<br>mobile-app-banner<br>navigation<br>onboarding<br>onboarding-tasks<br>pattern-toolkit-full-composability<br>product-custom-fields<br>remote-inbox-notifications<br>remote-free-extensions<br>payment-gateway-suggestions<br>printful<br>shipping-label-banner<br>subscriptions<br>store-alerts<br>transient-notices<br>woo-mobile-welcome<br>wc-pay-promotion<br>wc-pay-welcome-page<br>launch-your-store<br><br>Disabled Features: experimental-blocks<br>minified-js<br>product-pre-publish-modal<br>settings<br>async-product-editor-category-field<br>product-editor-template-system<br><br>Daily Cron: ? Next scheduled: 2024-09-04 20:03:45 +03:00<br>Options: ?<br>Notes: 179<br>Onboarding: completed<br><br>### Action Scheduler ###<br><br>?????: 176<br>Oldest: 2024-08-29 23:19:31 +0300<br>Newest: 2024-09-03 23:14:38 +0300<br><br>????: 335<br>Oldest: 2022-10-15 13:30:19 +0300<br>Newest: 2024-01-16 09:22:12 +0200<br><br>????? ??????: 4<br>Oldest: 2024-09-04 13:13:39 +0300<br>Newest: 2024-09-04 23:19:06 +0300<br><br><br>### Status report information ###<br><br>Generated at: 2024-09-03 23:16:12 +03:00<br>
- This reply was modified 2 months, 3 weeks ago by Steven Stern (sterndata).
- This reply was modified 2 months, 3 weeks ago by tachshitbemilel.
Saving the permalinks without changing anything doesn’t work unfortunatly
Hello tachshitbemilel,
Thank you for your reply.
After reviewing the SSR of your site I noticed that you are using Apache Server.
I would have suggested the same step as Syed Tarikul Islam has, resaving the permalinks.But since it is not working either, then means something is wrong with the “.htaccess” file stored on the root directory of your WordPress installation.
Could you access the file via your Webhost portal or FTP?
Then copy the contents of the .htaccess file and share it with me.Then follow these steps:
1- Open the permalinks settings page.
2- Delete the .htaccess file.
3- Click save on the permalinks settings page.Please follow the steps in the same order.
Then check for the newly created .htaccess file.
Share the contents of that file with me too.Let me know how it goes. ??
Best regards.
Old .htaccess file:
BEGIN WordPress ??????? (?????) ??? “BEGIN WordPress” ???? “END WordPress” ?? ???? ????? ?????, ??? ????? ???? ?? ??????? ??????? ?? ???????. ?? ????? ??????? ??? ?????? ??? ????.
ExpiresActive On ExpiresByType image/jpg “access plus 24 hours” ExpiresByType image/jpeg “access plus 24 hours” ExpiresByType image/gif “access plus 24 hours” ExpiresByType image/png “access plus 24 hours” ExpiresByType text/css “access plus 24 hours” ExpiresByType application/pdf “access plus 1 week” ExpiresByType text/javascript “access plus 24 hours” ExpiresByType text/html “access plus 2 hours” ExpiresByType image/x-icon “access plus 1 year” ExpiresDefault “access plus 24 hours”
Options -Indexes
Header set X-Endurance-Cache-Level “2” Header set X-nginx-cache “WordPress”
RewriteEngine On RewriteRule .* – [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteBase / RewriteRule ^index.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] END WordPressnew .htaccess file:
BEGIN WordPress ??????? (?????) ??? “BEGIN WordPress” ???? “END WordPress” ?? ???? ????? ?????, ??? ????? ???? ?? ??????? ??????? ?? ???????. ?? ????? ??????? ??? ?????? ??? ????.
ExpiresActive On ExpiresByType image/jpg “access plus 24 hours” ExpiresByType image/jpeg “access plus 24 hours” ExpiresByType image/gif “access plus 24 hours” ExpiresByType image/png “access plus 24 hours” ExpiresByType text/css “access plus 24 hours” ExpiresByType application/pdf “access plus 1 week” ExpiresByType text/javascript “access plus 24 hours” ExpiresByType text/html “access plus 2 hours” ExpiresByType image/x-icon “access plus 1 year” ExpiresDefault “access plus 24 hours”
Options -Indexes
Header set X-Endurance-Cache-Level “2” Header set X-nginx-cache “WordPress”
RewriteEngine On RewriteRule .* – [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteBase / RewriteRule ^index.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] END WordPressI also tried to turn off translatePress plugin which is what I use to allow two languages in my website, this weirdly solved the problem for a couple of minutes but after a few refreshes I am now getting the same 404 page unfound error again.
Hi @tachshitbemilel,
Thank you for sharing further details on this.
I was able to notice that your link was using a translated version. Are you able to rename your permalinks to English and save the changes, then try again to see if the issue permits?
Let us know how it goes.
I’m a bit confused about what you mean, I changed everything to english, but as it was before, the first page works
https://tachshitbmilel.com/product-category/rings/
but the second page doesn’t
The issue you’re experiencing seems to be caused by a conflict with the TranslatePress plugin. Since turning it off momentarily fixed the problem, it’s likely that this plugin is interfering with your site’s permalinks.
It’s possible that the plugin is not properly translating the URLs for the second and subsequent pages of your product listings. This could be why you see a 404 error when accessing these pages.
This is a third-party plugin, and we don’t provide help & support for 3rd-party plugins or themes as they’re outside our support scope. I recommend contacting the TranslatePress support team for assistance. They may have a solution or workaround for this issue.
In the meantime, try deleting your .htaccess file, then navigate to Settings > Permalink and click on “Save changes” to flush your permalink. This should flush your permalink settings. Once done, head over to WooCommerce → Status → Tools, and do the following:
- WooCommerce transients – Clear
- Expired transients – Clear
- Clear template cache – Clear
- Capabilities – Reset Capabilities
- Clear customer sessions -Clear
- Product lookup tables – Regenerate
- Regenerate the product attributes lookup table – Regenerate
Next, please clear your browser and server cache and check again.
Thank you for your patience and understanding. Please let us know if you have any other questions or if there’s anything else we can assist you with.
- You must be logged in to reply to this topic.