• Resolved WebCodePoet

    (@senjoralfonso)


    Please check this out.

    [04-Mar-2024 08:55:34 UTC] PHP Warning: Undefined array key "width" in wp-content/plugins/seo-by-rank-math/includes/modules/schema/class-jsonld.php on line 475
    [04-Mar-2024 08:55:34 UTC] PHP Warning: Undefined array key "height" in wp-content/plugins/seo-by-rank-math/includes/modules/schema/class-jsonld.php on line 476
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Rank Math Support

    (@rankmathsupport)

    Hello @senjoralfonso,

    Thank you for contacting Rank Math and bringing your concern to our attention.

    Please navigate to WP dashboard > Rank Math > Titles & Meta > Local SEO and make sure that you have set an image for the logo.

    And if the image is already set, please make sure that it isn’t an SVG image as SVG images don’t have a width and height set in WordPress and that’s why it returns a warning.

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

    Thread Starter WebCodePoet

    (@senjoralfonso)

    I have verified this, we have a logo (1080×1080) and it is in webp format, so this seems not to be the reason for the problem.

    Plugin Support Rank Math Support

    (@rankmathsupport)

    Hello @senjoralfonso,

    Please share the URL of the image you are using as logo.

    Looking forward to helping you.

    Thread Starter WebCodePoet

    (@senjoralfonso)

    Sorry, but I never share any direct traceable information about me or my customers.

    Plugin Support Rank Math Support

    (@rankmathsupport)

    Hello @senjoralfonso,

    If the image was converted from an SVG that would have the same exact effect as this because the metadata was already missing from the initial file.

    Please note that what is failing is the WordPress function wp_get_attachment_metadata() which is not able to extract the width and height of your attachment.

    Without that information, the same cannot be added to the Schema markup from our plugin so it’s going to be skipped.

    Given that those properties are not required it will not cause any issue with the Schema but the information will be missing.

    Don’t hesitate to get in touch if you have any other questions.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Undefined array key’ is closed to new replies.