Title: PHP Notice: Undefined offset
Last modified: August 30, 2021

---

# PHP Notice: Undefined offset

 *  [qbo321](https://wordpress.org/support/users/qbo321/)
 * (@qbo321)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/php-notice-undefined-offset-15/)
 * Hello,
 * The plugin is flooding the debug.log file with the following code.
 * – PHP Notice: Undefined offset: 0 in …/wp-content/plugins/schema-and-structured-
   data-for-wp/admin_section/structure_admin.php on line 1312
    – PHP Notice: Trying
   to get property ‘term_id’ of non-object in …/wp-content/plugins/schema-and-structured-
   data-for-wp/admin_section/structure_admin.php on line 1312 – PHP Notice: Undefined
   offset: 0 in …/wp-content/plugins/schema-and-structured-data-for-wp/admin_section/
   structure_admin.php on line 1313 – PHP Notice: Trying to get property ‘term_id’
   of non-object in …/wp-content/plugins/schema-and-structured-data-for-wp/admin_section/
   structure_admin.php on line 1313 – PHP Notice: Undefined offset: 0 in …/wp-content/
   plugins/schema-and-structured-data-for-wp/admin_section/structure_admin.php on
   line 1314 – PHP Notice: Trying to get property ‘name’ of non-object in …/wp-content/
   plugins/schema-and-structured-data-for-wp/admin_section/structure_admin.php on
   line 1314`
 * Whats the problem in this case and how can it be resolved?
    Kind regards, Qbo321

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

 *  Plugin Author [Magazine3](https://wordpress.org/support/users/magazine3/)
 * (@magazine3)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/php-notice-undefined-offset-15/#post-14822454)
 * We recently pushed the latest update. Can you please check it once by updating
   the schema plugin and let us know back if it fixes the issue?
 *  Thread Starter [qbo321](https://wordpress.org/support/users/qbo321/)
 * (@qbo321)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/php-notice-undefined-offset-15/#post-14833149)
 * It appears to be similar with the update, but on other lines.
 * – PHP Notice: Undefined offset: 0 in …wp-content/plugins/schema-and-structured-
   data-for-wp/admin_section/structure_admin.php on line 1322
    – PHP Notice: Trying
   to get property ‘term_id’ of non-object in …wp-content/plugins/schema-and-structured-
   data-for-wp/admin_section/structure_admin.php on line 1322 – PHP Notice: Undefined
   offset: 0 in …/wp-content/plugins/schema-and-structured-data-for-wp/admin_section/
   structure_admin.php on line 1323 – PHP Notice: Trying to get property ‘term_id’
   of non-object in …wp-content/plugins/schema-and-structured-data-for-wp/admin_section/
   structure_admin.php on line 1323 – PHP Notice: Undefined offset: 0 in …wp-content/
   plugins/schema-and-structured-data-for-wp/admin_section/structure_admin.php on
   line 1324 – PHP Notice: Trying to get property ‘name’ of non-object in …wp-content/
   plugins/schema-and-structured-data-for-wp/admin_section/structure_admin.php on
   line 1324`
 *  Plugin Support [Sanjeev Kumar](https://wordpress.org/support/users/sanjeevsetu/)
 * (@sanjeevsetu)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/php-notice-undefined-offset-15/#post-14849406)
 * Hi there!
 * We will look at it again. just created a ticket
 * Ref: [https://github.com/ahmedkaludi/schema-and-structured-data-for-wp/issues/1519](https://github.com/ahmedkaludi/schema-and-structured-data-for-wp/issues/1519)
 *  Plugin Author [Magazine3](https://wordpress.org/support/users/magazine3/)
 * (@magazine3)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/php-notice-undefined-offset-15/#post-14884553)
 * We fixed it in our latest update 1.9.84. Can you please check it once by updating
   the schema plugin to the latest and let us know back if it fixes the issue?

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

The topic ‘PHP Notice: Undefined offset’ is closed to new replies.

 * ![](https://ps.w.org/schema-and-structured-data-for-wp/assets/icon-256x256.png?
   rev=1922284)
 * [Schema & Structured Data for WP & AMP](https://wordpress.org/plugins/schema-and-structured-data-for-wp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/schema-and-structured-data-for-wp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/schema-and-structured-data-for-wp/)
 * [Active Topics](https://wordpress.org/support/plugin/schema-and-structured-data-for-wp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/schema-and-structured-data-for-wp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/schema-and-structured-data-for-wp/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [Magazine3](https://wordpress.org/support/users/magazine3/)
 * Last activity: [4 years, 8 months ago](https://wordpress.org/support/topic/php-notice-undefined-offset-15/#post-14884553)
 * Status: not resolved