Warning: Undefined array key “publisher”

#718253
  • Resolved Anonymous
    Rank Math free

    I separated website from multisite, after this i had a issue with rank math.

    Warning: Undefined array key “publisher” in /wp-content/plugins/seo-by-rank-math-pro/includes/modules/schema/class-display-conditions.php on line 119

    Fatal error: Uncaught Error: Call to undefined method RankMathPro\Schema\Display_Conditions::can_add_publisher() in /wp-content/plugins/seo-by-rank-math-pro/includes/modules/schema/class-display-conditions.php:126 Stack trace: #0 /wp-content/plugins/seo-by-rank-math-pro/includes/modules/schema/class-display-conditions.php(68): RankMathPro\Schema\Display_Conditions::can_add()

    Please, How can i fix it?

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

    I’m sorry to hear that you’re experiencing this issue with Rank Math. The warning and fatal error you’re seeing are related to the schema module of Rank Math Pro.

    To fix this issue, you can follow these steps:

    1. Update Rank Math and Other Plugins: Ensure that you are using the latest version of Rank Math and all other plugins on your website. Outdated plugins can sometimes cause conflicts that lead to such errors.

    2. Check for Theme or Plugin Conflicts: Deactivate all your plugins except for Rank Math and switch to a default WordPress theme like Twenty Twenty-One. Then reactivate your plugins one by one to identify if any specific plugin or theme is causing the issue.

    3. Contact Rank Math Support: If the issue persists, you can reach out to our dedicated support team by clicking here. They are available 24/7 and will be able to assist you further in resolving this issue.

    If you have any other questions or need further assistance, feel free to ask. Thank you for bringing this to our attention!

    Sources:
    How to Fix Undefined Offset: 0 Warning » Rank Math
    Fatal Error Happening on Some Installations After 1.0.49 Update » Rank Math
    How to Fix “Invalid object type for field ‘item'” » Rank Math
    Sorry, You Are Not Allowed to Access This Page » Rank Math

    Anonymous
    Rank Math free

    Thanks, but i need something more specific, per while don´t works well.

    Hello,

    Thank you for your patience.

    From the error, it seems that you’re using Rank Math PRO but the account you have used to open this ticket is the Rank Math free version.

    Can you please search and forward a receipt from FastSpring.com or the email address you used to purchase so we can locate your account and verify it?

    Meanwhile, there seems to be a corrupted schema template/s applied to your pages.

    For troubleshooting, please temporarily disable Schema Templates on your website and check if you can edit the page again. You can disable a schema template by sending it to the trash.

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

    Alternatively, you may try setting the schema of the affected page/s to default in the post list view via the bulk editor:
    https://rankmath.com/kb/bulk-editing-in-rank-math/#remove-schema-markup

    Let us know how this goes.

    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 ‘Warning: Undefined array key “publisher”’ is closed to new replies.