Critical error on post editor page when schema module is on

#834308
  • Resolved Stefano Lodola
    Rank Math free

    I just installed RM.
    When I open the WP post editor with your schema module on, I get a critical error. No error when your module is off.

    [08-Jul-2024 06:01:30 UTC] PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /home/1243710.cloudwaysapps.com/vspdxjqxzg/public_html/wp-content/plugins/seo-by-rank-math-pro/includes/modules/schema/class-admin.php:350 Stack trace: #0 /home/1243710.cloudwaysapps.com/vspdxjqxzg/public_html/wp-content/plugins/seo-by-rank-math-pro/includes/modules/schema/class-admin.php(422): RankMathPro\Schema\Admin->get_schema_templates() #1 /home/1243710.cloudwaysapps.com/vspdxj

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

    I’m sorry to hear that you are facing a critical error when using the Rank Math schema module in the WordPress post editor. The error message you provided indicates a fatal error related to accessing a string offset in the Rank Math Pro plugin.

    This issue seems to be specific to the Rank Math Pro plugin, and it might be related to a conflict or an error within the plugin itself. To address this problem, I recommend following these steps:

    1. Disable the Schema Module: Since the error occurs when the schema module is enabled, please disable it temporarily to prevent the critical error from happening.

    2. Check for Plugin Conflicts: Deactivate all other plugins except Rank Math Pro and then re-enable them one by one to identify if there is a conflict with another plugin causing this issue.

    3. Update Rank Math Pro: Ensure that you are using the latest version of the Rank Math Pro plugin. If not, update it to the latest version as updates often include bug fixes.

    If after following these steps the issue persists, please reply to this ticket, and a human agent from the Rank Math Support team will assist you further.

    Thank you for bringing this concern to our attention. We are here to help you resolve this issue promptly.

    Looking forward to assisting you further.

    Sources:
    Fatal Error Happening on Some Installations After 1.0.49 Update » Rank Math
    Using Review Schema Type to Earn Star Ratings » Rank Math
    Resolving Rank Math Schema Markup Related Issues

    3 years ago I moved from Rank Math to SEOPress exactly because of conflicts.

    Hello,

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

    From the error log, it seems to be related to a corrupted schema template applied to the page/post.

    For troubleshooting, please temporarily disable schema templates on your website and check if you can edit posts. You can disable the schema template by sending it to the trash.

    If disabling schema templates works, you will have to delete and regenerate the schema templates one by one until the error stops occurring.

    However, it looks like you’re currently using the Rank Math PRO plugin on your website, but the account you have used to open this ticket is the Rank Math free version.

    Please search and forward a receipt from FastSpring.com so we can locate your account and verify it.

    Let us know how it goes. Looking forward to helping you.

    Thank you.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

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

The ticket ‘Critical error on post editor page when schema module is on’ is closed to new replies.