-
Hello,
We are encountering a fatal PHP error when editing a specific WooCommerce product (post ID: 5338) with Rank Math enabled. The error does not occur on other products.
Here is the error from our logs:
PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /wp-content/plugins/seo-by-rank-math/includes/modules/schema/class-frontend.php on line 73
Additionally, the Rank Math metabox fails to load on that product edit page, and the browser console logs this error:
Uncaught TypeError: Cannot read properties of undefined (reading ‘isPrimary’)
at rank-math-app.jsWe suspect that the schema metadata for that specific post has become corrupted. It seems Rank Math expects a JSON schema array, but is receiving a plain or malformed string instead.
We already tried:
– Deleting schema data via the Rank Math Tools
– Flushing transients and caches
– Rebuilding analytics indexThe issue persists.
Can you please advise:
1. How to safely clean/reset schema metadata for a specific post?
2. How to prevent this type of corruption?
3. Whether this is a known issue in the current version?Thank you in advance!
You must be logged in to reply to this ticket.