unserialize() notice

#978264
  • Resolved Koorosh
    Rank Math free

    Hi there, thank you for your great plugin.
    This is not a support request, but more of a bug report.

    After enabling WP_DEBUG in WordPress config (for development purposes), I noticed an E_NOTICE spamming my debug.log file:
    E_NOTICE: unserialize(): Error at offset 6169 of 44148 bytes in wp-includes/functions.php on line 650

    After debugging for a couple hours, I’ve find out that the issue is caused by this option in the database: rank_math_seo_analysis_results
    (Although I’m using the free version and never activated the SEO analyzer, and the option had a default value.)

    As a workaround, removing this option from the database stopped the notices from appearing in the debug file.

Viewing 1 replies (of 1 total)
  • Hello,

    We apologize for the issue you are facing with the unserialize() notice. Thank you for taking the time to report this bug and for providing detailed information about the problem.

    The notice you are seeing is likely related to how the rank_math_seo_analysis_results option is being handled in the database. Since you mentioned that you are using the free version and have not activated the SEO analyzer, it’s possible that this option is not being utilized correctly, leading to the error.

    As a workaround, removing the option from the database seems to have resolved the issue for you, which is a valid temporary solution. We appreciate your feedback, and it will help us improve the plugin further. If you encounter any other issues or have additional insights, please feel free to share them with us.

    Thank you again for your report!

    Sources:
    How to Fix Undefined Offset: 0 Warning » Rank Math

Viewing 1 replies (of 1 total)

You must be logged in to reply to this ticket.