Support » Plugin: WooCommerce » 404 Error when saving new product

  • Resolved yatgirl

    (@yatgirl)


    I need help and to be pointed in the right direction.

    Starting last night, when I try to save a product – I get thrown to the shops 404 page.
    Adding / saving a product worked fine a few days ago and has been working fine since I set up my store in 2018.

    I have not updated my plugins or anything lately – I was planning on doing that this week. So this issue isnt due to a plugin, or wordpress, or woocommerce update as the problem didnt exist a couple of days ago, with this configuration.

    I do not have a caching plugin

    My woocommerce status page is pasted below at the bottom

    Steps to reproduce issue:
    ————————
    1. duplicate or add new product and then try to save draft, or publish it.
    2. If the product has html in the description – I get thrown to the shops 404 error instead of the product saving. No changes I made are saved on the product page.

    Steps I have taken to solve this:
    ——————————–
    1. I have tried this on firefox, chrome, on my tablet and also a computer that I never use.
    2. I have cleared my browser cache in firefox and chrome.
    3. I have re-saved the permalinks
    4. I have contacted my webhost and they advise to contact you.
    5. When I look at my Redirection plugin 404 logs – the redirects to 404 are for /wp-admin/post.php and also /wp-admin/admin-ajax.php
    6. I set up a staging site up with my blogvault plugin and this does not happen on the blogvault server – when I save the product – it saves no problem.

    ————————————
    `
    ### WordPress Environment ###

    WordPress address (URL): https://dogshoppe.net
    Site address (URL): https://dogshoppe.net
    WC Version: 4.4.1
    REST API Version: ✔ 1.0.15
    WC Blocks Version: ✔ 3.1.0
    Action Scheduler Version: ✔ 3.1.6
    WC Admin Version: ❌ Inactive 1.4.0
    Log Directory Writable: ✔
    WP Version: ❌ 5.5 – There is a newer version of WordPress available (5.5.1)
    WP Multisite: –
    WP Memory Limit: 1,000 MB
    WP Debug Mode: ✔
    WP Cron: ✔
    Language: en_US
    External object cache: –

    ### Server Environment ###

    Server Info: Apache
    PHP Version: 7.0.33 – We recommend using PHP version 7.2 or above for greater performance and security. How to update your PHP version
    PHP Post Max Size: 38 MB
    PHP Time Limit: 30
    PHP Max Input Vars: 1000
    cURL Version: 7.72.0
    OpenSSL/1.1.1h

    SUHOSIN Installed: –
    MySQL Version: 5.5.5-10.2.34-MariaDB-log
    Max Upload Size: 38 MB
    Default Timezone is UTC: ✔
    fsockopen/cURL: ✔
    SoapClient: ✔
    DOMDocument: ✔
    GZip: ✔
    Multibyte String: ✔
    Remote Post: ✔
    Remote Get: ✔

    ### Database ###

    WC Database Version: 4.4.1
    WC Database Prefix: wp_
    Total Database Size: 452.43MB
    Database Data Size: 277.69MB
    Database Index Size: 174.74MB
    wp_woocommerce_sessions: Data: 1.93MB + Index: 0.01MB + Engine MyISAM
    wp_woocommerce_api_keys: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_attribute_taxonomies: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_downloadable_product_permissions: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wp_woocommerce_order_items: Data: 0.33MB + Index: 0.21MB + Engine MyISAM
    wp_woocommerce_order_itemmeta: Data: 4.61MB + Index: 1.73MB + Engine MyISAM
    wp_woocommerce_tax_rates: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_tax_rate_locations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_shipping_zones: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_shipping_zone_locations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_shipping_zone_methods: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_payment_tokens: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_payment_tokenmeta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_actionscheduler_actions: Data: 0.06MB + Index: 0.04MB + Engine MyISAM
    wp_actionscheduler_claims: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_actionscheduler_groups: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wp_actionscheduler_logs: Data: 0.03MB + Index: 0.03MB + Engine MyISAM
    wp_akeeba_common: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wp_ak_params: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wp_ak_profiles: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_ak_stats: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_ak_storage: Data: 0.01MB + Index: 0.01MB + Engine MyISAM
    wp_ak_users: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_bv_ip_store: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_commentmeta: Data: 0.18MB + Index: 0.15MB + Engine MyISAM
    wp_comments: Data: 3.47MB + Index: 1.51MB + Engine MyISAM
    wp_eum_logs: Data: 0.03MB + Index: 0.01MB + Engine MyISAM
    wp_gglcptch_whitelist: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_links: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_ms_snippets: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_options: Data: 20.12MB + Index: 2.30MB + Engine MyISAM
    wp_postmeta: Data: 138.09MB + Index: 75.99MB + Engine MyISAM
    wp_posts: Data: 35.09MB + Index: 11.79MB + Engine MyISAM
    wp_redirection_404: Data: 5.23MB + Index: 1.94MB + Engine MyISAM
    wp_redirection_groups: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_redirection_items: Data: 2.65MB + Index: 1.18MB + Engine MyISAM
    wp_redirection_logs: Data: 4.11MB + Index: 1.35MB + Engine MyISAM
    wp_relevanssi: Data: 39.51MB + Index: 57.59MB + Engine MyISAM
    wp_relevanssi_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_relevanssi_stopwords: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_responsive_menu: Data: 0.01MB + Index: 0.02MB + Engine MyISAM
    wp_sfa_abandoned_carts: Data: 0.02MB + Index: 0.00MB + Engine MyISAM
    wp_snippets: Data: 0.04MB + Index: 0.00MB + Engine MyISAM
    wp_termmeta: Data: 0.11MB + Index: 0.06MB + Engine MyISAM
    wp_terms: Data: 0.02MB + Index: 0.04MB + Engine MyISAM
    wp_term_relationships: Data: 3.80MB + Index: 8.67MB + Engine MyISAM
    wp_term_taxonomy: Data: 0.19MB + Index: 0.03MB + Engine MyISAM
    wp_usermeta: Data: 4.69MB + Index: 3.39MB + Engine MyISAM
    wp_users: Data: 0.24MB + Index: 0.23MB + Engine MyISAM
    wp_visitor_maps_ge: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_visitor_maps_st: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_visitor_maps_wo: Data: 1.31MB + Index: 0.19MB + Engine MyISAM
    wp_wc_admin_notes: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wc_admin_note_actions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wc_category_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wc_customer_lookup: Data: 0.16MB + Index: 0.12MB + Engine MyISAM
    wp_wc_download_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wc_order_coupon_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wc_order_product_lookup: Data: 0.24MB + Index: 0.20MB + Engine MyISAM
    wp_wc_order_stats: Data: 0.12MB + Index: 0.08MB + Engine MyISAM
    wp_wc_order_tax_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wc_product_meta_lookup: Data: 3.60MB + Index: 4.12MB + Engine MyISAM
    wp_wc_reserved_stock: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wc_tax_rate_classes: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wp_wc_webhooks: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wfblockediplog: Data: 0.83MB + Index: 0.68MB + Engine MyISAM
    wp_wfblocks7: Data: 0.04MB + Index: 0.03MB + Engine MyISAM
    wp_wfconfig: Data: 1.72MB + Index: 0.02MB + Engine MyISAM
    wp_wfcrawlers: Data: 0.01MB + Index: 0.01MB + Engine MyISAM
    wp_wffilechanges: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wffilemods: Data: 1.72MB + Index: 0.35MB + Engine MyISAM
    wp_wfhits: Data: 1.47MB + Index: 0.17MB + Engine MyISAM
    wp_wfhoover: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wfissues: Data: 0.02MB + Index: 0.01MB + Engine MyISAM
    wp_wfknownfilelist: Data: 0.91MB + Index: 0.11MB + Engine MyISAM
    wp_wflivetraffichuman: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wflocs: Data: 0.02MB + Index: 0.01MB + Engine MyISAM
    wp_wflogins: Data: 0.28MB + Index: 0.06MB + Engine MyISAM
    wp_wfls_2fa_secrets: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wfls_settings: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wfnotifications: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wfpendingissues: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wfreversecache: Data: 0.10MB + Index: 0.03MB + Engine MyISAM
    wp_wfsnipcache: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wfstatus: Data: 0.51MB + Index: 0.20MB + Engine MyISAM
    wp_wftrafficrates: Data: 0.00MB + Index: 0.00MB + Engine MyISAM

    ### Post Type Counts ###

    attachment: 30104
    customize_changeset: 7
    custom_css: 1
    mc4wp-form: 1
    nav_menu_item: 15
    page: 12
    post: 1
    product: 23597
    product_variation: 30731
    shop_coupon: 1
    shop_order: 2133
    shop_order_refund: 42
    wont_gyrix_templates: 8

    ### Security ###

    Secure connection (HTTPS): ✔
    Hide errors from visitors: ✔

    ### Active Plugins (32) ###

    AddToAny Share Buttons: by AddToAny – 1.7.42
    Admin Menu Editor: by Janis Elsts – 1.9.7
    All In One SEO Pack Pro: by All in One SEO Team – 3.7.0
    WordPress Backup & Security Plugin – BlogVault: by Backup by BlogVault – 4.36
    Classic Editor: by WordPress Contributors – 1.6
    Code Snippets: by Code Snippets Pro – 2.14.0
    Custom Order Numbers for WooCommerce: by Tyche Softwares – 1.2.10 – Installed version not tested with active version of WooCommerce 4.4.1
    Disable WooCommerce Bloat: by ospiotr – 2.0
    Easy WP SMTP: by wpecommerce
    alexanderfoxc – 1.4.1

    Enhanced Media Library PRO: by wpUXsolutions – 2.7.2
    Flexible Shipping PRO: by WP Desk – 1.11.2
    Flexible Shipping: by WP Desk – 3.11.4
    reCaptcha by BestWebSoft: by BestWebSoft – 1.57
    MC4WP: Mailchimp for WordPress: by ibericode – 4.8.1
    Official StatCounter Plugin: by Aodhan Cullen – 2.0.6
    PayPal for WooCommerce: by Angell EYE – 1.5.7 – Installed version not tested with active version of WooCommerce 4.4.1
    Product Sales Report for WooCommerce: by Potent Plugins – 1.4.10 – Installed version not tested with active version of WooCommerce 4.4.1
    Redirection: by John Godley – 4.8
    Relevanssi: by Mikko Saari – 4.8.1
    Responsive Menu: by ExpressTech – 3.1.30
    Page Builder by SiteOrigin: by SiteOrigin – 2.11.2
    SiteOrigin Widgets Bundle: by SiteOrigin – 1.17.6
    Easy Updates Manager: by Easy Updates Manager Team – 9.0.6
    Visitor Maps Geolocation Addon: by Mike Challis – 1.0.1
    Visitor Maps and Who’s Online: by Mike Challis – 1.5.8.12
    Abandoned Cart Reports Premium For WooCommerce: by Small Fish Analytics – 2.0.0 – Installed version not tested with active version of WooCommerce 4.4.1
    Advanced Order Export For WooCommerce: by AlgolPlus – 3.1.5
    Woo Order Note Templates: by Priyanka Bhave – Gyrix TechnoLabs – 1.3.1 – Installed version not tested with active version of WooCommerce 4.4.1
    Preview E-mails for WooCommerce: by Digamber Pradhan – 1.6.4 – Installed version not tested with active version of WooCommerce 4.4.1
    Print Invoice & Delivery Notes for WooCommerce: by Tyche Softwares – 4.5.5 – Installed version not tested with active version of WooCommerce 4.4.1
    WooCommerce: by Automattic – 4.4.1 (update to version 4.5.2 is available)
    Wordfence Security: by Wordfence – 7.4.11

    ### Inactive Plugins (1) ###

    Disable Real MIME Check: by Sergey Biryukov – 1.0

    ### Settings ###

    API Enabled: ✔
    Force SSL: ✔
    Currency: USD ($)
    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: –

    ### WC Pages ###

    Shop base: #678 – /
    Cart: #67 – /cart/
    Checkout: #68 – /checkout/
    My account: #69 – /my-account/
    Terms and conditions: ❌ Page not set

    ### Theme ###

    Name: Boutique
    Version: 2.0.17
    Author URL: http://woocommerce.com
    Child Theme: ✔
    Parent Theme Name: Storefront
    Parent Theme Version: 2.6.0 – 2.7.0 is available
    Parent Theme Author URL: https://woocommerce.com/
    WooCommerce Support: ✔

    ### Templates ###

    Overrides: boutique/woocommerce/emails/customer-note.php version 3.6.0 is out of date. The core version is 3.7.0
    boutique/woocommerce/emails/customer-processing-order.php version 3.5.4 is out of date. The core version is 3.7.0
    boutique/woocommerce/emails/email-order-details.php version 3.3.1 is out of date. The core version is 3.7.0
    boutique/woocommerce/emails/email-order-items.php version 3.5.0 is out of date. The core version is 3.7.0
    boutique/woocommerce/emails/plain/customer-note.php version 3.5.0 is out of date. The core version is 3.7.0
    boutique/woocommerce/global/breadcrumb.php

    Outdated Templates: ❌

    Learn how to update

    ### Action Scheduler ###

    Complete: 4
    Oldest: 2020-10-07 22:34:10 -0500
    Newest: 2020-10-12 03:59:16 -0500

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support RK a11n

    (@riaanknoetze)

    Hi there,

    Is your staging site and live site hosted on the same server? If not, and that’s the only difference between the two sites, then something likely changed on the server-side and you’d need to get in touch with your hosting provider to take a closer look.

    Sidenote: Are post saving working as expected when disabling your redirection plugin?

    Thread Starter yatgirl

    (@yatgirl)

    The live site and staging site are not hosted on the same server. Disabling the redirection plugin doesnt help.
    Thanks- I will go back to my webhost – which is where I started and suspected, but they said no, and sent me here.

    Thanks again for your speedy reply – this has really helped narrowing it down for me to find the root of the problem.

    Thread Starter yatgirl

    (@yatgirl)

    Went back to my Webhost again and they looked into it a bit further. Apparently it was a mod security module on the server – a rule there was causing the issue. They have turned this off and everything now works fine. I wanted to post an update here, in case anyone else may experience this issue.

    This is what my webhost said:
    Sometimes, due to poor website coding, mod_security may incorrectly determine that a certain request is malicious, while it is actually legitimate. This caused the issue.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘404 Error when saving new product’ is closed to new replies.