• Resolved raffi_s

    (@raffi_s)


    Hi there,

    I simply love this plugin. However, I do receive the following PHP warnings. Is there any way to fix this please?


    Notice: Undefined offset: 1 in /www/public/wp-content/plugins/seo-by-rank-math/includes/modules/schema/snippets/class-primaryimage.php on line 40

    Notice: Undefined offset: 2 in /www/public/wp-content/plugins/seo-by-rank-math/includes/modules/schema/snippets/class-primaryimage.php on line 41

    Many thanks

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Rank Math

    (@rankmath)

    Hello @raffi_s,

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

    Please update to the latest version of all the plugins, themes & WordPress. That should solve the issue.

    Hope that helps.

    Thread Starter raffi_s

    (@raffi_s)

    Hi there,

    Many thanks for your swift reply. I’m already using the latest version of WordPress and Rank Math, themes and plugins in general (no updates shown in WP backoffice).

    Any other reason for this PHP warning maybe?

    Best

    Plugin Author Rank Math

    (@rankmath)

    Hello @raffi_s,

    Can you please confirm the date of the errors?

    They might be from the previous versions and not coming from the latest version of the plugin.

    Looking forward to helping you. Thank you.

    I am receiving these notices as well on SVG images as of today. If you google for ‘Notice: Undefined offset: 1 in /wp-content/plugins/seo-by-rank-math/includes/modules/schema/snippets/class-primaryimage.php on line 40’ you might be surprised how many hits turn up.

    Thread Starter raffi_s

    (@raffi_s)

    @rankmath Many thanks. I haven’t installed previous versions of this plugin. I installed it on a fresh WP instance and received the errors right after.

    @cubehrends True. Quite some more entries found in Google facing the same problem ??

    @raffi_s It’s just a notice though. If you turn off debug mode via wp_config.php it should be gone. That’s what I did.

    Plugin Author Rank Math

    (@rankmath)

    Hello @raffi_s & @cubehrends

    We have identified the issue internally and it’s happening when using an SVG image.

    The issue will be fixed in an upcoming update.

    As soon as the update is released, we will let you know.

    We seek your patience and understanding. Thank you.

    Plugin Author Rank Math

    (@rankmath)

    Hello,

    Thank you for your patience.

    We have released an update that should fix the potential issue(s) you were facing.

    Please update to the latest versions of Rank Math & Rank Math PRO.

    Hope that helps. If there’s anything else we can help you with, please let us know. We are here to assist.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘PHP Errors’ is closed to new replies.