Title: PHP Errors
Last modified: May 3, 2021

---

# PHP Errors

 *  Resolved [raffi_s](https://wordpress.org/support/users/raffi_s/)
 * (@raffi_s)
 * [5 years ago](https://wordpress.org/support/topic/php-errors-234/)
 * 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 SEO](https://wordpress.org/support/users/rankmath/)
 * (@rankmath)
 * [5 years ago](https://wordpress.org/support/topic/php-errors-234/#post-14396882)
 * Hello [@raffi_s](https://wordpress.org/support/users/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](https://wordpress.org/support/users/raffi_s/)
 * (@raffi_s)
 * [5 years ago](https://wordpress.org/support/topic/php-errors-234/#post-14410931)
 * 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 SEO](https://wordpress.org/support/users/rankmath/)
 * (@rankmath)
 * [5 years ago](https://wordpress.org/support/topic/php-errors-234/#post-14418805)
 * Hello [@raffi_s](https://wordpress.org/support/users/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.
 *  [Christian Behrends](https://wordpress.org/support/users/cubehrends/)
 * (@cubehrends)
 * [5 years ago](https://wordpress.org/support/topic/php-errors-234/#post-14437707)
 * 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](https://wordpress.org/support/users/raffi_s/)
 * (@raffi_s)
 * [5 years ago](https://wordpress.org/support/topic/php-errors-234/#post-14438197)
 * [@rankmath](https://wordpress.org/support/users/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](https://wordpress.org/support/users/cubehrends/) True. Quite some
   more entries found in Google facing the same problem 🙂
 *  [Christian Behrends](https://wordpress.org/support/users/cubehrends/)
 * (@cubehrends)
 * [5 years ago](https://wordpress.org/support/topic/php-errors-234/#post-14439588)
 * [@raffi_s](https://wordpress.org/support/users/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 SEO](https://wordpress.org/support/users/rankmath/)
 * (@rankmath)
 * [5 years ago](https://wordpress.org/support/topic/php-errors-234/#post-14453425)
 * Hello [@raffi_s](https://wordpress.org/support/users/raffi_s/) & [@cubehrends](https://wordpress.org/support/users/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 SEO](https://wordpress.org/support/users/rankmath/)
 * (@rankmath)
 * [5 years ago](https://wordpress.org/support/topic/php-errors-234/#post-14484195)
 * 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.

 * ![](https://ps.w.org/seo-by-rank-math/assets/icon.svg?rev=3438330)
 * [Rank Math SEO – AI SEO Tools to Dominate SEO Rankings](https://wordpress.org/plugins/seo-by-rank-math/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/seo-by-rank-math/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/seo-by-rank-math/)
 * [Active Topics](https://wordpress.org/support/plugin/seo-by-rank-math/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/seo-by-rank-math/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/seo-by-rank-math/reviews/)

 * 8 replies
 * 3 participants
 * Last reply from: [Rank Math SEO](https://wordpress.org/support/users/rankmath/)
 * Last activity: [5 years ago](https://wordpress.org/support/topic/php-errors-234/#post-14484195)
 * Status: resolved