Divi Woocommerce issue on Saving the product page

#323660
  • Resolved Nirmal Fernando
    Rank Math free

    Hi,

    I am experiencing a critical issue when saving the woocommerce product build using Divi. From my debugging I found that it occurs when the Rank Math is active.

    I see following record in the error logs:

    2022/01/11 01:46:12 [error] 7151#7151: *2564 FastCGI sent in stderr: “PHP message: PHP Fatal error: Uncaught Error: Call to a member function get_sku() on null in /www/safeguardingchildren_596/public/wp-content/plugins/woocommerce/templates/single-product/meta.php:28
    Stack trace:
    #0 /www/safeguardingchildren_596/public/wp-content/plugins/woocommerce/includes/wc-core-functions.php(345): include()
    #1 /www/safeguardingchildren_596/public/wp-content/plugins/woocommerce/includes/wc-template-functions.php(1638): wc_get_template(‘single-product/…’)
    #2 /www/safeguardingchildren_596/public/wp-content/themes/Divi/includes/builder/feature/woocommerce-modules.php(1104): woocommerce_template_single_meta()
    #3 /www/safeguardingchildren_596/public/wp-content/themes/Divi/includes/builder/module/woocommerce/Meta.php(293): et_builder_wc_render_module_template(‘woocommerce_tem…’, Array)
    #4 /www/safeguardingchildren_596/public/wp-content/themes/Divi/includes/builder/module/woocommerce/Meta.php(391): ET_Builder_Module_Woocommerce_Meta::get_meta(Array)
    #5 /www/safeguardingchildren_59” while reading response header from upstream, client: 47.72.54.179, server: staging-safeguardingchildren.kinsta.cloud, request: “POST /wp-admin/admin-ajax.php HTTP/1.1”, upstream: “fastcgi://unix:/var/run/php7.4-fpm-safeguardingchildren.sock:”, host: “staging-safeguardingchildren.kinsta.cloud:54938”, referrer: “https://staging-safeguardingchildren.kinsta.cloud/product/safeguarding-and-child-protection-for-the-ece-sector/?et_fb=1&et_bfb=1&PageSpeed=off”

Viewing 9 replies - 1 through 9 (of 9 total)
  • Hello,

    Thank you for contacting the support, and sorry for any inconvenience that might have been caused due to that.

    Can you please provide FTP access as well so we can further troubleshoot the issue deeply?

    Looking forward to helping you with this one.

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Just updated the sensitive data.

    Hello,

    I was able to replicate the issue.

    I would like to further debug this issue but the FTP login you provided doesn’t seem to work as you can see in the screenshot in the sensitive data section.

    Can you please check it?

    Looking forward to helping you with this one.

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Hi,

    I see the problem. You need to include the sftp protocol with the host IP. I just updated the sensitive area

    Hello,

    We checked your website and the error log indicates this is an issue with the function get_sku() on the product. The problem is that when the function is called the product is NULL which causes the error.

    This is likely caused by some conflict between Divi and WooCommerce since the single product template from Divi is the one failing to load the product data.

    You can share the error log with the Divi team and ask them if they are already aware of this situation and if they have a fix for this.

    Don’t hesitate to get in touch if you have any other questions.

    Yes, I know that’s the issue. But it occurs when only Rank math is active.

    Hello,

    We were able to reproduce the error and have logged it. It seems to happen when Divi’s Woo Product Add to Cart module is used in the content and Rank Math’s Link Counter module is enabled. Please allow us some time to test and release a fix. It should be added to the plugin in the upcoming update.

    For now, to fix the issue on your site, please disable the Link Counter Module from Dashboard >> Rank Math >> Modules page

    We seek your patience and understanding in this matter.

    In the meantime, if you need any other assistance, please feel free to let us know. We are here to help.

    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 9 replies - 1 through 9 (of 9 total)

The ticket ‘Divi Woocommerce issue on Saving the product page’ is closed to new replies.