Cannot save updates to a woocommerce product with Rath Math enabled.

#326012
  • Resolved Steven
    Rank Math free
    Content AI Creator

    My web site is at https://www.fusionphotographyworkshops.co.uk/

    Its using the Divi theme and woocommerce plus Rank Math.

    Then editing a woo product that uses the Divi editor, I see error messages when saving like this:

    Your Save Has Failed
    An error has occurred while saving your page. Various problems can cause a save to fail, such as a lack of server resources, firewall blockages, plugin conflicts or server misconfiguration…

    However, the page has actually saved.

    Disable Rank Math and the problem goes away. In not sure if this is a Divi, woo or Rank issue, so have also reported to Divi. I’m using latest version of all plugins, etc.

    Saving a normal (non product page) using Divi and Rank Math works fine. Its just when saving a product.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Prabhat
    Rank Math agency

    Hello,

    Thank you for contacting us and we regret the inconvenience caused.

    Could you please confirm if the following (or higher) PHP values are set?

    PHP Memory Limit: 512M
    Max input time: 150
    PHP time limit: 120
    PHP max input variables: 1000

    If not, please set the above values and see if that fixes the issue. You can also get in touch with your web host regarding this.

    Also, please confirm if you’re using any Divi templates on the product pages.

    Can you please also share the error log with us?

    Having an error log will help us determine what is causing the issue on your website.

    You can follow this guide to enable debugging in WordPress
    https://wordpress.org/support/article/debugging-in-wordpress/ or you can get in touch with your web host, they will help you locate the log file.

    We really look forward to helping you.

    Steven
    Rank Math free
    Content AI Creator

    Hi

    Yes all those php settings exceed those values. The only big difference is the max_input_vars: -1 which I believe means unlimited.

    There is a Divi template built using the native Divi Theme builder.

    Here the debug log:

    [14-Jan-2022 16:45:48 UTC] PHP Fatal error: Uncaught Error: Call to a member function get_type() on null in /home/fusionpw2345/public_html/wp-content/plugins/woocommerce/includes/wc-template-functions.php:1667
    Stack trace:
    #0 /home/fusionpw2345/public_html/wp-content/themes/Divi/includes/builder/feature/woocommerce-modules.php(1114): woocommerce_template_single_add_to_cart()
    #1 /home/fusionpw2345/public_html/wp-content/themes/Divi/includes/builder/module/woocommerce/AddToCart.php(477): et_builder_wc_render_module_template(‘woocommerce_tem…’, Array, Array)
    #2 /home/fusionpw2345/public_html/wp-content/themes/Divi/includes/builder/module/woocommerce/AddToCart.php(649): ET_Builder_Module_Woocommerce_Add_To_Cart::get_add_to_cart(Array)
    #3 /home/fusionpw2345/public_html/wp-content/themes/Divi/includes/builder/class-et-builder-element.php(3272): ET_Builder_Module_Woocommerce_Add_To_Cart->render(Array, ”, ‘et_pb_wc_add_to…’, ”, ”, ”, ”, ”)
    #4 /home/fusionpw2345/public_html/wp-includes/shortcodes.php(356): ET_Builder_Element->_render(Array, ”, ‘et_pb in /home/fusionpw2345/public_html/wp-content/plugins/woocommerce/includes/wc-template-functions.php on line 1667

    Hello,

    In this case, we might need to take a closer look at the settings. Please edit the first post on this ticket and include your WordPress & FTP logins in the designated Sensitive Data section.

    Please do take a complete backup of your website before sharing the information with us.
    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    https://wordpress.org/plugins/temporary-login-without-password/

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    https://wordpress.org/plugins/wp-security-audit-log/

    We really look forward to helping you.

    Thank you.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)

The ticket ‘Cannot save updates to a woocommerce product with Rath Math enabled.’ is closed to new replies.