Fatal error after latest uodate
-
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:175Stack 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.
You must be logged in to reply to this topic.