404 error when leaving a product review
-
Hello,
as title says: when someone try to leave a review of this specific product on my website, a 404 page shows up.
The URL of the 404 is https://www.mywebsite.com/wp-comments-post.php
Thanks in advance to anyone who may help.
-
There seems to a problem with the page – it is opening blank for me no matter whichever browser I try.
I guess
mywebsite.com
is not your domain. Can you please share your site URL so we can check at our end?Are you using a plugin for the reviews? Even if not, this tutorial may be helpful towards checking if everything is configured correctly: https://themeisle.com/blog/customer-reviews-for-woocommerce/
In order to check your configuration and assist you further, 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.
Yes, as you correctly says mywebsite.com is not my real domain, but the second part of the URI (wp-comments-post.php) is what actually shows up when someone try to leave a review.
I didn’t want to share the domain name, that’s why I’ve used mywebsite.com…
Anyway, I have 5 products on my site, and only for this last one the buyers cannot leave a review. The review feature is enabled in all products.
Here is the system status from WooCommerce:
### WordPress Environment ### WordPress address (URL): https://www.***.com Site address (URL): https://www.***.com WC Version: 6.9.4 REST API Version: ? 6.9.4 WC Blocks Version: ? 8.3.3 Action Scheduler Version: ? 3.4.0 Log Directory Writable: ? WP Version: 6.0.2 WP Multisite: – WP Memory Limit: 512 MB WP Debug Mode: – WP Cron: ? Language: es_ES External object cache: – ### Server Environment ### Server Info: Apache PHP Version: 8.0.17 PHP Post Max Size: 516 MB PHP Time Limit: 60 PHP Max Input Vars: 1000 cURL Version: 7.81.0 OpenSSL/1.1.1n SUHOSIN Installed: – MySQL Version: 5.7.23-23 Max Upload Size: 512 MB Default Timezone is UTC: ? fsockopen/cURL: ? SoapClient: ? DOMDocument: ? GZip: ? Multibyte String: ? Remote Post: ? Remote Get: ? ### Database ### WC Database Version: 3.6.4 WC Database Prefix: wp_rseo_ Tama?o total de la base de datos: 23.06MB Tama?o de los datos de la base de datos: 20.62MB Tama?o del índice de la base de datos: 2.44MB wp_rseo_woocommerce_sessions: Datos: 0.38MB + índice: 0.00MB + Motor MyISAM wp_rseo_woocommerce_api_keys: Datos: 0.00MB + índice: 0.00MB + Motor MyISAM wp_rseo_woocommerce_attribute_taxonomies: Datos: 0.00MB + índice: 0.00MB + Motor MyISAM wp_rseo_woocommerce_downloadable_product_permissions: Datos: 0.00MB + índice: 0.00MB + Motor MyISAM wp_rseo_woocommerce_order_items: Datos: 0.01MB + índice: 0.01MB + Motor MyISAM wp_rseo_woocommerce_order_itemmeta: Datos: 0.03MB + índice: 0.03MB + Motor MyISAM wp_rseo_woocommerce_tax_rates: Datos: 0.00MB + índice: 0.00MB + Motor MyISAM wp_rseo_woocommerce_tax_rate_locations: Datos: 0.00MB + índice: 0.00MB + Motor MyISAM wp_rseo_woocommerce_shipping_zones: Datos: 0.00MB + índice: 0.00MB + Motor MyISAM wp_rseo_woocommerce_shipping_zone_locations: Datos: 0.00MB + índice: 0.00MB + Motor MyISAM wp_rseo_woocommerce_shipping_zone_methods: Datos: 0.00MB + índice: 0.00MB + Motor MyISAM wp_rseo_woocommerce_payment_tokens: Datos: 0.00MB + índice: 0.00MB + Motor MyISAM wp_rseo_woocommerce_payment_tokenmeta: Datos: 0.00MB + índice: 0.00MB + Motor MyISAM wp_rseo_woocommerce_log: Datos: 0.00MB + índice: 0.00MB + Motor MyISAM wp_rseo_actionscheduler_actions: Datos: 0.06MB + índice: 0.13MB + Motor InnoDB wp_rseo_actionscheduler_claims: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB wp_rseo_actionscheduler_groups: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB wp_rseo_actionscheduler_logs: Datos: 0.06MB + índice: 0.03MB + Motor InnoDB wp_rseo_aioseo_cache: Datos: 0.14MB + índice: 0.03MB + Motor InnoDB wp_rseo_aioseo_notifications: Datos: 0.13MB + índice: 0.06MB + Motor InnoDB wp_rseo_aioseo_posts: Datos: 1.52MB + índice: 0.02MB + Motor InnoDB wp_rseo_commentmeta: Datos: 0.01MB + índice: 0.01MB + Motor MyISAM wp_rseo_comments: Datos: 0.04MB + índice: 0.02MB + Motor MyISAM wp_rseo_links: Datos: 0.00MB + índice: 0.00MB + Motor MyISAM wp_rseo_newsletter: Datos: 0.01MB + índice: 0.01MB + Motor MyISAM wp_rseo_newsletter_emails: Datos: 0.40MB + índice: 0.00MB + Motor MyISAM wp_rseo_newsletter_sent: Datos: 0.01MB + índice: 0.03MB + Motor MyISAM wp_rseo_newsletter_stats: Datos: 0.01MB + índice: 0.01MB + Motor MyISAM wp_rseo_newsletter_user_logs: Datos: 0.00MB + índice: 0.00MB + Motor MyISAM wp_rseo_ninja_table_items: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB wp_rseo_options: Datos: 1.91MB + índice: 0.17MB + Motor MyISAM wp_rseo_postmeta: Datos: 1.36MB + índice: 0.25MB + Motor MyISAM wp_rseo_posts: Datos: 4.33MB + índice: 0.15MB + Motor MyISAM wp_rseo_redirection_404: Datos: 0.02MB + índice: 0.05MB + Motor InnoDB wp_rseo_redirection_groups: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB wp_rseo_redirection_items: Datos: 0.02MB + índice: 0.09MB + Motor InnoDB wp_rseo_redirection_logs: Datos: 0.02MB + índice: 0.05MB + Motor InnoDB wp_rseo_termmeta: Datos: 0.00MB + índice: 0.01MB + Motor MyISAM wp_rseo_terms: Datos: 0.00MB + índice: 0.01MB + Motor MyISAM wp_rseo_term_relationships: Datos: 0.00MB + índice: 0.01MB + Motor MyISAM wp_rseo_term_taxonomy: Datos: 0.00MB + índice: 0.00MB + Motor MyISAM wp_rseo_usermeta: Datos: 0.01MB + índice: 0.01MB + Motor MyISAM wp_rseo_users: Datos: 0.00MB + índice: 0.01MB + Motor MyISAM wp_rseo_wc_admin_notes: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB wp_rseo_wc_admin_note_actions: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB wp_rseo_wc_category_lookup: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB wp_rseo_wc_customer_lookup: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB wp_rseo_wc_download_log: Datos: 0.00MB + índice: 0.00MB + Motor MyISAM wp_rseo_wc_order_coupon_lookup: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB wp_rseo_wc_order_product_lookup: Datos: 0.02MB + índice: 0.06MB + Motor InnoDB wp_rseo_wc_order_stats: Datos: 0.02MB + índice: 0.05MB + Motor InnoDB wp_rseo_wc_order_tax_lookup: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB wp_rseo_wc_product_attributes_lookup: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB wp_rseo_wc_product_download_directories: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB wp_rseo_wc_product_meta_lookup: Datos: 0.00MB + índice: 0.01MB + Motor MyISAM wp_rseo_wc_rate_limits: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB wp_rseo_wc_reserved_stock: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB wp_rseo_wc_tax_rate_classes: Datos: 0.00MB + índice: 0.01MB + Motor MyISAM wp_rseo_wc_webhooks: Datos: 0.00MB + índice: 0.00MB + Motor MyISAM wp_rseo_wfblockediplog: Datos: 0.00MB + índice: 0.00MB + Motor MyISAM wp_rseo_wfblocks7: Datos: 0.00MB + índice: 0.00MB + Motor MyISAM wp_rseo_wfconfig: Datos: 1.81MB + índice: 0.02MB + Motor MyISAM wp_rseo_wfcrawlers: Datos: 0.00MB + índice: 0.00MB + Motor MyISAM wp_rseo_wffilechanges: Datos: 0.00MB + índice: 0.00MB + Motor MyISAM wp_rseo_wffilemods: Datos: 4.06MB + índice: 0.50MB + Motor MyISAM wp_rseo_wfhits: Datos: 0.75MB + índice: 0.10MB + Motor MyISAM wp_rseo_wfhoover: Datos: 0.00MB + índice: 0.00MB + Motor MyISAM wp_rseo_wfissues: Datos: 0.03MB + índice: 0.01MB + Motor MyISAM wp_rseo_wfknownfilelist: Datos: 2.92MB + índice: 0.15MB + Motor MyISAM wp_rseo_wflivetraffichuman: Datos: 0.00MB + índice: 0.00MB + Motor MyISAM wp_rseo_wflocs: Datos: 0.00MB + índice: 0.00MB + Motor MyISAM wp_rseo_wflogins: Datos: 0.04MB + índice: 0.01MB + Motor MyISAM wp_rseo_wfls_2fa_secrets: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB wp_rseo_wfls_settings: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB wp_rseo_wfnotifications: Datos: 0.00MB + índice: 0.00MB + Motor MyISAM wp_rseo_wfpendingissues: Datos: 0.00MB + índice: 0.01MB + Motor MyISAM wp_rseo_wfreversecache: Datos: 0.00MB + índice: 0.00MB + Motor MyISAM wp_rseo_wfsnipcache: Datos: 0.00MB + índice: 0.00MB + Motor MyISAM wp_rseo_wfstatus: Datos: 0.15MB + índice: 0.05MB + Motor MyISAM wp_rseo_wftrafficrates: Datos: 0.00MB + índice: 0.00MB + Motor MyISAM wp_rseo_wpsm_tables: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB ### Post Type Counts ### attachment: 502 custom_css: 1 nav_menu_item: 7 page: 20 post: 85 product: 5 revision: 494 shop_order: 52 ### Security ### Secure connection (HTTPS): ? Hide errors from visitors: ? ### Active Plugins (18) ### Akismet Anti-Spam: por Automattic – 5.0 All in One SEO: por All in One SEO Team – 4.2.5.1 Editor clásico: por Colaboradores de WordPress – 1.6.2 Newsletter: por Stefano Lissa el equipo de Newsletter – 7.5.3 No Category Base (WPML): por Marios Alexandrou – 1.3 PO/MO Editor: por Doug Wollison – 1.4.2 Redirection: por John Godley – 5.3.4 WooCommerce Shipping By Rules: por Open Tools Reinhold Kainhofer – 2.0.6 Simple Custom CSS: por John Regan – 4.0.5 Table Maker: por Wpsoul – 1.9.1 Advanced Editor Tools (previously TinyMCE Advanced): por Automattic – 5.6.0 Checkout Fields Manager for WooCommerce: por QuadLayers – 6.2.6 WooCommerce Stripe Gateway: por WooCommerce – 6.7.0 WooCommerce Max Quantity: por Isabel Castillo – 1.5.2 WooCommerce: por Automattic – 6.9.4 Wordfence Security: por Wordfence – 7.6.2 WP Super Cache: por Automattic – 1.9 WPS Hide Login: por WPServeur NicolasKulka wpformation – 1.9.6 ### Inactive Plugins (0) ### ### Dropin Plugins (1) ### advanced-cache.php: advanced-cache.php ### Must Use Plugins (1) ### SSO: por Garth Mortensen Mike Hansen – 0.4 ### Settings ### API Enabled: ? Force SSL: – Currency: EUR (€) Currency Position: left 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: – Enforce Approved Product Download Directories: – ### WC Pages ### Base de la tienda: #11 - /el-libro/ Carrito: #42 - /carrito/ Finalizar compra: #44 - /check-out/ Mi cuenta: ? Página sin definir Términos y condiciones: #46 - /terminos-y-condiciones/ ### Theme ### Name: Twenty Sixteen Version: 2.6 (la actualización a la versión 2.7 está disponible) Author URL: https://es.www.ads-software.com/ Child Theme: ? – Si estás modificando WooCommerce en un tema padre que no has creado personalmente te recomendamos utilizar un tema hijo. Ver: Cómo crear un tema hijo WooCommerce Support: ? ### Templates ### Overrides: – ### Admin ### Enabled Features: activity-panels analytics coupons customer-effort-score-tracks experimental-products-task experimental-import-products-task experimental-fashion-sample-products experimental-product-tour shipping-smart-defaults shipping-setting-tour homescreen marketing mobile-app-banner navigation onboarding onboarding-tasks remote-inbox-notifications remote-free-extensions payment-gateway-suggestions shipping-label-banner subscriptions store-alerts transient-notices wc-pay-promotion wc-pay-welcome-page Disabled Features: minified-js new-product-management-experience settings Daily Cron: ? Next scheduled: 2022-09-27 14:37:57 +00:00 Options: ? Notes: 70 Onboarding: completed ### Action Scheduler ### Complete: 165 Oldest: 2022-09-06 08:24:16 +0000 Newest: 2022-09-27 12:18:15 +0000 Pending: 3 Oldest: 2022-09-27 12:20:26 +0000 Newest: 2022-09-28 09:03:40 +0000 ### Status report information ### Generated at: 2022-09-27 12:20:06 +00:00
Update: I’ve noticed that the same error happens also if someone try to leave a comment on the blog. So it may not be WooCommerce related.
I did a further investigation after discovering that the error wasn’t related to WooCommerce, and after checking the .htaccess file, I’ve found the source of the problem.
This rule was causing the error:
<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_METHOD} POST RewriteCond %{HTTP_USER_AGENT} ^$ [OR] RewriteCond %{HTTP_REFERER} !^http(s)?://([^.]+\.)?brand-risk\.com [NC] RewriteCond %{REQUEST_URI} /wp-comments-post\.php [NC] RewriteRule .* - [F,L] </IfModule>
After removing it, now comments and reviews are accepted.
- The topic ‘404 error when leaving a product review’ is closed to new replies.