Undefined array key “width”

#671760
  • Resolved Anonymous
    Rank Math free

    Hi, I am getting these messages on a free version of plugin

    Warning: Undefined array key “width” in /data/web/virtuals/325241/virtual/www/domains/waytotheedge.com/wp-content/plugins/seo-by-rank-math/includes/modules/schema/class-jsonld.php on line 476

    Warning: Undefined array key “height” in /data/web/virtuals/325241/virtual/www/domains/waytotheedge.com/wp-content/plugins/seo-by-rank-math/includes/modules/schema/class-jsonld.php on line 477

Viewing 11 replies - 1 through 11 (of 11 total)
  • Hello, I’m sorry to hear that you’re experiencing this issue with the Rank Math plugin. The warning messages you’re seeing are related to undefined array keys “width” and “height” in the JSON-LD schema class file.

    This issue is likely caused by a conflict with another plugin or your theme. To resolve this, I recommend following our troubleshooting guide to check for plugin conflicts. You can find the guide here.

    If the issue persists after checking for conflicts, please ensure that you are using the latest version of Rank Math. Updating to the latest version can often resolve such issues.

    If you continue to experience the problem after following these steps, please feel free to assign this ticket to our dedicated support team by clicking the “Contact Support” button. Our team is available 24/7 and will be more than happy to assist you further.

    Sources:
    How to Fix Undefined Offset: 0 Warning » Rank Math
    Google Search Console Missing Field Warning » Rank Math
    The #1 WordPress SEO Plugin in 2023 – Rank Math

    Anonymous
    Rank Math free

    I’ve tried all what is inside of that article.

    Troubleshoot plugins and theme.

    My page is new, except akismet and rank math, there are no other necessary plugins. Also I use twentytwentythree child theme but on both child and parent the issue is visible.

    Don’t know where to move on. I installed Rank Math yesterday and from beginning I am getting these messages. Wanted to go pro version as Rank Math seems good, but first need to get rid of these messages. Now killed 2 hours with them without success.

    Can you help me ?

    Hello,

    Thank you for your query, and we are so sorry about the trouble this must have caused.

    The specific beta update we mentioned, PRO v3.0.49-beta-2 and Free v1.0.206-beta-2, was developed particularly to address the issue you’re experiencing on November 11th , 2023.

    As noted in our changelog https://rankmath.com/changelog/beta/, this update addresses the Undefined array key error on the WordPress site.

    We suggest you to update the plugins to the said latest beta versions.

    Enable Beta-Updates for Rank Math
    https://rankmath.com/kb/version-control/#beta-updates

    We hope that helps, and please don’t hesitate to get in touch if you have any other questions.

    Thank you.

    Anonymous
    Rank Math free

    Thank you. Only don’t know how to enable automatic updates for a plugin to be able to install beta updates. seems that its not possible.

    Anonymous
    Rank Math free

    the updates we’re dissabled on server side – sorry.

    Updated to 1.0.206-beta-2, but the issue is still there :/

    i’m not using any catche plugin and no other plugins are currently activated

    Hello,

    In this case it would seem like a conflict with one of the plugins or the theme you are using.

    To determine that, please follow this troubleshooting guide:
    https://rankmath.com/kb/check-plugin-conflicts/

    Here is a video you can follow as well:

    https://www.youtube.com/embed/FcIWRhcUP2c

    Only the site admin would know and your users won’t be affected by this troubleshooting.

    If the issue persists, please edit the first post on this ticket and include your WordPress & FTP logins in the designated Sensitive Data section.

    Please do take a complete backup of your website before sharing the information with us.

    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    https://wordpress.org/plugins/temporary-login-without-password/

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    https://wordpress.org/plugins/wp-security-audit-log/

    Please do take a complete backup of your website before sharing the information with us.

    We really look forward to helping you.

    Thank you.

    Anonymous
    Rank Math free

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Anonymous
    Rank Math free

    Hello Alhan, as the troubleshooting part I’ve already did, I’ve edited the post with login informations for FTP and WordPress. Please have a look. Thank you

    Hello,

    The issue is occurring because you are using an SVG image for the logo of the website under WordPress Dashboard > Rank Math > Titles & Meta > Local SEO.

    Since those images don’t have metadata that allows the plugin to read its width and height you are seeing these warnings on your website.

    To resolve the issue, please add an image in JPEG or PNG format that has the metadata for those properties, and our plugin can read it and update the markup correctly.

    Hope that helps and please don’t hesitate to let us know if you have any other questions.
     
    Thank you.

    Anonymous
    Rank Math free

    Amazing! Thank you very much!

    Hello,

    We are glad to hear that this issue has been resolved. Thank you for letting us know. This ticket will be closed now, but you can always open a new one if you have any other questions or concerns. We are here to help you with anything related to Rank Math.

    We appreciate your patience and cooperation throughout this process.

    Thank you for choosing Rank Math.

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

The ticket ‘Undefined array key “width”’ is closed to new replies.