Open Graph error

#28789
  • Resolved Jez
    Rank Math business

    Hello,

    I’ve been trying to configure Rank Math SEO plugin in our client’s site and it is showing fatal errors in the rest of the pages except the homepage. Below is the error line:

    Fatal error: Uncaught Error: Call to undefined function RankMath\OpenGraph\is_product() in /home/elitemusclehealt/public_html/wp-content/plugins/seo-by-rank-math/includes/opengraph/class-facebook.php:413

    So I looked for that file in the plugin directory and edited the line 413 – removed “is_product()”. The pages of the site are now working fine. Take note that this site is not running Woocommerce.

    PS. You can email me at c******@j*********(I’m one of Jezweb’s web developer and doing this in behalf of Jeremy Dawes)

    • This topic was modified 4 years, 2 months ago by Jez.
Viewing 7 replies - 1 through 7 (of 7 total)
  • Jez
    Rank Math business

    Hello,

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

    Thank you.

    Hello,

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.

    I cannot seem to reproduce this error on my end when WooCommerce is disabled. I have reported this problem to our developers and we will be getting back to you in a short while.

    Looking forward to helping you. Thank you.

    ​​​​​​​

    Jez
    Rank Math business

    Ok sure, thanks for doing that.

    Hello,

    The is_product() condition runs only when WooCommerce is active i.e when is_woocommerce() returns true. The condition should not throw any error unless in your theme you’ve defined the is_woocommerce function. Please check if that function is defined in your theme and rename it to something else. You can also try troubleshooting the issue using the Health Check plugin by following the steps mentioned in the following link: https://rankmath.com/kb/check-plugin-conflicts/

    I hope that helps. Thank you.

    Jez
    Rank Math business

    Ok, thank you so much for that. I’ll check the theme and the plugin conflicts link. I’ll get back to you as soon as possible.

    Jez
    Rank Math business

    I think it’s a theme issue. The site is using Avada theme version 3.9.3. However, it is not that easy switching themes since it may involve sensitive configurations which could be overlooked. Also, there are only a few plugins installed that can be considered non-conflict generating plugins. I will make a copy of the site in my local development installation and do some testing. Anyway, thanks for the help guys.

    Hello,

    Thank you for contacting Rank Math today.

    I am glad that this information was helpful 🙂

    Feel free to contact us should any other issues come up.

    Looking forward to helping you. Thank you.

    ​​​​​​

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

The ticket ‘Open Graph error’ is closed to new replies.