-
Hello, I use the SEO plugin Rank Math (so far without problems and everything is great). Now I have installed Woocommerce. When I wanted to deactivate Woocommerce again, but now always comes to my page “a critical error” and nothing works more. If I deactivate Rank Math, I can deactivate Woocommerce without problems. Where is the error here?
Thanks a lot!!
-
Hello,
Thank you for contacting Rank Math, and sorry for any inconvenience caused.
Can you please share the error log with us?
Having an error log will help us determine what is causing the critical error 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.
Hi Anas,
thank you for your answer. Attached the error log:
Fatal error: Uncaught Error: Call to undefined function is_product() in /var/www/vhosts/deutschland-feiert.de/httpdocs/dtfeiert/wp-content/themes/hello-elementor/functions.php:221 Stack trace: #0 /var/www/vhosts/deutschland-feiert.de/httpdocs/dtfeiert/wp-includes/class-wp-hook.php(292): {closure}() #1 /var/www/vhosts/deutschland-feiert.de/httpdocs/dtfeiert/wp-includes/plugin.php(255): WP_Hook->apply_filters() #2 /var/www/vhosts/deutschland-feiert.de/httpdocs/dtfeiert/wp-content/plugins/seo-by-rank-math/includes/traits/class-hooker.php(102): apply_filters_ref_array() #3 /var/www/vhosts/deutschland-feiert.de/httpdocs/dtfeiert/wp-content/plugins/seo-by-rank-math/includes/frontend/paper/class-paper.php(228): RankMath\Paper\Paper->do_filter() #4 /var/www/vhosts/deutschland-feiert.de/httpdocs/dtfeiert/wp-content/plugins/seo-by-rank-math/includes/frontend/class-head.php(196): RankMath\Paper\Paper->get_robots() #5 /var/www/vhosts/deutschland-feiert.de/httpdocs/dtfeiert/wp-includes/class-wp-hook.php(292): RankMath\Frontend\Head->r in /var/www/vhosts/deutschland-feiert.de/httpdocs/dtfeiert/wp-content/themes/hello-elementor/functions.php on line 221
Hello,
Thanks for your sharing the error logs.
Assuming you are using the latest version of all the plugins and the themes (please update if not yet), it would seem like a conflict with one of the plugins or the theme you are using.
To determine that, please follow this troubleshooting guide:
https://rankmath.com/kb/check-plugin-conflicts/Only the site admin would know and your users won’t be affected by this troubleshooting.
Please let us know how that goes.
Thanks.
Hello, I have tried this. No problems were encountered. As I said, the problem occurs when I have Rank Math enabled AND Woocommerce. Then when I deactivate Woocommerce as a plugin again, the critical error occurs. If both plugins are activated, there are no problems.
Hello,
Thank you for the update.
Unfortunately, we’re unable to replicate this issue on our end.
In this case, we might need to take a closer look at your website. Please edit the first post on this ticket and include your WordPress & FTP logins in the designated 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/
Thank you, and we really look forward to helping you.
Hello,
I have updated the sensitive data as requested. Can you please check further?
Thank you.
Hello,
Thank you for that information, and apologies for the delay.
Please also provide your FTP logins in the sensitive data section as this is a fatal error issue on your site.
This will also help us revert changes quickly to avoid downtime on your website.
Thank you, and looking forward to your update.
Hello,
I have updated the sensitive data as requested. Can you please check further?
Thank you.
Hello,
That is happening because you have a custom filter code inside your functions.php file that has to do with WooCommerce. When Woo-Commerce is disabled, it still searches for your products, and that’s where the problem occurs. Remove the code from your file and see how it goes?I hope that helps. Thank you.
Works!!! Many thank you!
Hello,
We are super happy that your issue is resolved. If you have any other questions in the future, know that we are here to help you.
If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post about your overall experience with Rank Math? We appreciate your time and patience.
If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.
Thank you.
The ticket ‘a critical error / Woocommerce’ is closed to new replies.