Support » Plugin: Rank Math SEO - Best SEO Plugin for WordPress » Uncaught Error: Call to undefined function RankMath\Admin\wc_get_product()

  • Resolved CrestaProject

    (@crestaproject)


    Hi, I have Rank Math version 1.0.54.1 installed and I get this email error (Your Site is Experiencing a Technical Issue) when I try to edit a page created with Easy Digital Downloads plugin.

    
    Error Details
    =============
    An error of type E_ERROR was caused in line 432 of the file /home/cpcyvhzb/domains/website.xyz/public_html/wp-content/plugins/seo-by-rank-math/includes/admin/class-serp-preview.php. Error message: Uncaught Error: Call to undefined function RankMath\Admin\wc_get_product() in /home/cpcyvhzb/domains/website.xyz/public_html/wp-content/plugins/seo-by-rank-math/includes/admin/class-serp-preview.php:432
    Stack trace:
    #0 /home/cpcyvhzb/domains/website.xyz/public_html/wp-content/plugins/seo-by-rank-math/includes/admin/class-serp-preview.php(420): RankMath\Admin\Serp_Preview->get_woocommerceproduct_data(Array)
    #1 /home/cpcyvhzb/domains/website.xyz/public_html/wp-content/plugins/seo-by-rank-math/includes/admin/class-serp-preview.php(236): RankMath\Admin\Serp_Preview->get_snippet_data()
    #2 /home/cpcyvhzb/domains/website.xyz/public_html/wp-content/plugins/seo-by-rank-math/includes/admin/class-serp-preview.php(36): RankMath\Admin\Serp_Preview->get_snippet_html()
    #3 /home/cpcyvhzb/domains/website.xyz/public_html/wp-content/plugins/seo-by-rank-math/includes/metaboxes/serp-preview.php(12): RankMath\Admin\Serp_Preview->display()
    #4 /home/cpcyvhzb/domains/website.xyz/public_html/wp-cont
    

    It looks like it has to do with WooCommerce, the weird thing is that I don’t have WooCommerce installed on the site.

Viewing 8 replies - 1 through 8 (of 8 total)
  • I got the same error in Easy Digital Downloads page. Downgrading to v1.0.53 fixed the issue temporarily

    • This reply was modified 2 months, 2 weeks ago by Gijo Varghese.
    Thread Starter CrestaProject

    (@crestaproject)

    @gijo
    you can use the 1.0.54.1 version but you have to go in “Rank Math-> Titles and Meta-> Post Type: Downloads” find the option “Add SEO Meta Box” and deactivate it.
    The cause of the error appears to be the SEO metabox.

    Plugin Author Rank Math

    (@rankmath)

    Hello @crestaproject & @gijo

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

    Please update to the latest version of Rank Math to fix the issue.

    Hope that helps.

    Thread Starter CrestaProject

    (@crestaproject)

    Hi @rankmath
    Unfortunately the problem is not solved. Same problem with 1.0.54.2 version.
    If I go to “Rank Math-> Titles and Meta-> Post Type: Downloads” and deactivate the “Add SEO Meta Box” option, the error does not appear and the “Easy Digital Downloads” custom post opens correctly.

    Yes, tried upgrading. Issue still persists

    Plugin Author Rank Math

    (@rankmath)

    Hello @gijo & @crestaproject

    Thank you for contacting the support and sorry for not following up quickly and any inconvenience that might have been caused due to that.

    Is the latest version still creating an issue on your end?

    Looking forward to helping you. Thank you.

    Thread Starter CrestaProject

    (@crestaproject)

    Hi @rankmath
    yes, with the latest version (1.0.54.3) the problem has been solved on me.
    Thank you

    Plugin Author Rank Math

    (@rankmath)

    Hello @crestaproject

    Glad to hear that!

    If it isn’t too much to ask for – would you mind leaving us a review here?
    https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post

    It only takes a couple of minutes but helps us tremendously.

    It would mean so much to us and would go a really long way.

    Thank you.​​

Viewing 8 replies - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.