• Resolved GDU

    (@gettingdownunder)


    After updating Rank Math to the latest version, my WordPress site began throwing intermittent HTTP 500 errors on frontend pages.

    Disabling Rank Math immediately resolves the issue.

    Environment:

    • WordPress latest
    • WooCommerce active and functioning
    • WP Job Manager
    • WooCommerce Memberships/Subs
    • Cloudflare
    • PHP 8.x
    • Issue started immediately after Rank Math update

    Fatal error from logs:

    PHP Fatal error: Uncaught Error: Call to undefined function is_account_page()
    in /wp-content/plugins/seo-by-rank-math/includes/class-post.php:175
    

    Stack trace excerpt:

    RankMath\Post::is_woocommerce_page()
    RankMath\Paper\Paper::should_apply_shortcode()
    RankMath\Replace_Variables\Post_Variables->get_post_content()
    

    Important notes:

    • WooCommerce is active
    • WooCommerce frontend functions work normally
    • The issue disappears entirely when Rank Math is disabled
    • The site was stable prior to the Rank Math update
    • Errors appear mainly on homepage/archive-type requests rather than all product/job pages

    It appears Rank Math may now be calling WooCommerce conditional functions like is_account_page() without first checking whether the function exists.

    Suggested safeguard:

    function_exists( 'is_account_page' ) && is_account_page()
    

    I also run optimisation/plugin-loading tools, so it is possible Rank Math previously handled missing WooCommerce conditionals gracefully, but the latest update no longer does.

    Happy to provide further logs/testing if useful.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Jeremy

    (@jeremrm)

    Hello,

    Thank you for your query and we are so sorry about the trouble this must have caused.

    Before calling the is_account_page() function, Rank Math will check if the helper class containing the function is present (Helper::is_woocommerce_active) to avoid such error. However, it isn’t the case on your end.

    We aren’t able to reproduce this issue from our end so we need to investigate the issue on your side. Please head over to your WP Dashboard > Rank Math > Status & Tools > System Status and click the “Copy System Info to Clipboard” button, and paste it here so we can further analyze the issue.

    Looking forward to helping you.

    Plugin Support Jeremy

    (@jeremrm)

    Hello @gettingdownunder,

    Since we didn’t hear back from you, we are going to close this thread. Feel free to re-open it or create a new one if you still need assistance.

    Thank you.

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

You must be logged in to reply to this topic.