Title: Trying to access array offset Warning
Last modified: November 29, 2022

---

# Trying to access array offset Warning

 *  Resolved [Ehsan Fotoohabadi](https://wordpress.org/support/users/ehsanfotoo/)
 * (@ehsanfotoo)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/trying-to-access-array-offset-warning/)
 * Hi
    I am using PHP 8.1 Every day I see these warning in error_log file:
 * [29-Nov-2022 13:14:18 UTC] PHP Warning: Trying to access array offset on value
   of type bool in /public_html/wp-content/plugins/yet-another-stars-rating/public/
   classes/YasrRichSnippets.php on line 324
 * [29-Nov-2022 13:14:18 UTC] PHP Warning: Trying to access array offset on value
   of type bool in /public_html/wp-content/plugins/yet-another-stars-rating/public/
   classes/YasrRichSnippets.php on line 325

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

 *  Plugin Contributor [dudo](https://wordpress.org/support/users/dudo/)
 * (@dudo)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/trying-to-access-array-offset-warning/#post-16245226)
 * Hello!
 * I’ve been able to reproduce the issue.
 * Please be sure that in the YASR setting the field “Stuctured data options” is
   an existing image, or leave it empty.
 * This should fix the error right away.
 * Further, this will be fixed in the next version.
 * Best,
    Dario
 *  Thread Starter [Ehsan Fotoohabadi](https://wordpress.org/support/users/ehsanfotoo/)
 * (@ehsanfotoo)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/trying-to-access-array-offset-warning/#post-16245820)
 * “Stuctured data options” is empty.
 *  Plugin Contributor [dudo](https://wordpress.org/support/users/dudo/)
 * (@dudo)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/trying-to-access-array-offset-warning/#post-16247891)
 * This is weird, but no problem, just wait for next version 🙂
 * Best,
    Dario
 *  Plugin Contributor [dudo](https://wordpress.org/support/users/dudo/)
 * (@dudo)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/trying-to-access-array-offset-warning/#post-16254319)
 * New version is out, this is fixed now 🙂
 * Best,
    Dario

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

The topic ‘Trying to access array offset Warning’ is closed to new replies.

 * ![](https://ps.w.org/yet-another-stars-rating/assets/icon-256x256.png?rev=1525329)
 * [YASR - Yet Another Star Rating Plugin for WordPress](https://wordpress.org/plugins/yet-another-stars-rating/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/yet-another-stars-rating/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/yet-another-stars-rating/)
 * [Active Topics](https://wordpress.org/support/plugin/yet-another-stars-rating/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/yet-another-stars-rating/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/yet-another-stars-rating/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [dudo](https://wordpress.org/support/users/dudo/)
 * Last activity: [3 years, 6 months ago](https://wordpress.org/support/topic/trying-to-access-array-offset-warning/#post-16254319)
 * Status: resolved