Title: PHP Warning thrown
Last modified: November 3, 2022

---

# PHP Warning thrown

 *  Resolved [fippy](https://wordpress.org/support/users/dgilfillan/)
 * (@dgilfillan)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/php-warning-thrown/)
 * Since upgrading to PHP 8.0 we are seeing a lot warning messages thrown by a file
   in the Snippet plugin…
 * 2022/11/03 10:10:52 [error] 114706#114706: *147816 FastCGI sent in stderr: “PHP
   message: PHP Warning: Trying to access array offset on value of type bool in /
   xxx/xxx/xxx/wp-content/plugins/code-snippets/php/snippet-ops.php(505) : eval()’
   d code on line 10” while reading response header from upstream, client: xx.xxx.
   xx.xx, server: xxx.xxxxxxx.xxx, request: “POST /wp-admin/admin-ajax.php HTTP/
   1.1”, upstream: “fastcgi://unix:/var/run/php8.0-fpm-partnerize.sock:”, host: “
   xxx.xxxxxx.xxx:19303”, referrer: “[https://xxx.xxxxxx.xxx/wp-admin/edit.php?post_type=page&#8221](https://xxx.xxxxxx.xxx/wp-admin/edit.php?post_type=page&#8221);
 * Any advice/fix?

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

 *  Plugin Author [Shea Bunge](https://wordpress.org/support/users/bungeshea/)
 * (@bungeshea)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/php-warning-thrown/#post-16208440)
 * Hi [@dgilfillan](https://wordpress.org/support/users/dgilfillan/),
 * This error is coming from one of your snippets. You have a `boolean` variable
   you are trying to access as an array on line 10 of one of your snippets.
 *  Thread Starter [fippy](https://wordpress.org/support/users/dgilfillan/)
 * (@dgilfillan)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/php-warning-thrown/#post-16224095)
 * Thanks Shea, problem found and solved.
 *  Plugin Author [Shea Bunge](https://wordpress.org/support/users/bungeshea/)
 * (@bungeshea)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/php-warning-thrown/#post-16236597)
 * Glad to hear it!

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

The topic ‘PHP Warning thrown’ is closed to new replies.

 * ![](https://ps.w.org/code-snippets/assets/icon.svg?rev=2148878)
 * [Code Snippets](https://wordpress.org/plugins/code-snippets/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/code-snippets/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/code-snippets/)
 * [Active Topics](https://wordpress.org/support/plugin/code-snippets/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/code-snippets/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/code-snippets/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Shea Bunge](https://wordpress.org/support/users/bungeshea/)
 * Last activity: [3 years, 6 months ago](https://wordpress.org/support/topic/php-warning-thrown/#post-16236597)
 * Status: resolved