Title: PHP Warning: Trying to access array offset on value of type null
Last modified: October 20, 2023

---

# PHP Warning: Trying to access array offset on value of type null

 *  Resolved [The Wicked Ninja](https://wordpress.org/support/users/wngadmin/)
 * (@wngadmin)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/php-warning-trying-to-access-array-offset-on-value-of-type-null-5/)
 * Hi there we noticed an error being generated by the caching plugin we use:
   PHP
   8.0.28Version 1.9.4 (WP Super Cache)WordPress 6.2WooCommerce 7.7.0
 * I have started seeing this error in the debug.log:
 * PHP Warning: Trying to access array offset on value of type null in /var/www/
   vhosts/****.com/****.****.com/wp-content/plugins/wp-super-cache/wp-cache-phase2.
   php on line 2909
   The plugin author suggested this:`Do any of your other plugins
   use the “get_comment” filter? Maybe they have a bug in them that’s breaking that
   filter.`When we disabled Site Reviews the issue went away.Would appreciate it
   if you could take the time to look into this.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-warning-trying-to-access-array-offset-on-value-of-type-null-5%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Gemini Labs](https://wordpress.org/support/users/geminilabs/)
 * (@geminilabs)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/php-warning-trying-to-access-array-offset-on-value-of-type-null-5/#post-17138658)
 * Thanks for reporting this.
 * I am currently rewriting/optimizing the cache integrations so hopefully this 
   will be solved in the next update.
 *  Thread Starter [The Wicked Ninja](https://wordpress.org/support/users/wngadmin/)
 * (@wngadmin)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/php-warning-trying-to-access-array-offset-on-value-of-type-null-5/#post-17138663)
 * Many thanks for the quick response. I noticed an update for Site Reviews dropped
   today, this error was on the previous version. I will keep an eye on it.
 *  Plugin Author [Gemini Labs](https://wordpress.org/support/users/geminilabs/)
 * (@geminilabs)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/php-warning-trying-to-access-array-offset-on-value-of-type-null-5/#post-17139059)
 * [@wngadmin](https://wordpress.org/support/users/wngadmin/) Is the “Filter Comment
   Queries” setting enabled or disabled?
 * ![](https://i0.wp.com/i.imgur.com/DQenGAR.png?ssl=1)
 *  Thread Starter [The Wicked Ninja](https://wordpress.org/support/users/wngadmin/)
 * (@wngadmin)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/php-warning-trying-to-access-array-offset-on-value-of-type-null-5/#post-17139200)
 * Hi there,
   I do not have the WooCommerce integration enabled. I am only using 
   it for Site/Business reviews at the moment. However I will be looking at that.
 * > [View post on imgur.com](https://imgur.com/a/Ui6BxcW)
 *  Plugin Author [Gemini Labs](https://wordpress.org/support/users/geminilabs/)
 * (@geminilabs)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/php-warning-trying-to-access-array-offset-on-value-of-type-null-5/#post-17139216)
 * In that case, it’s very unlikely that the issue is being caused by Site Reviews
   because Site Reviews doesn’t use/access comments or fire any comment hooks unless
   the WooCommerce integration is enabled and the “Filter Comment Queries” setting
   is on.
 * I suggest you check your debug.log file again for any other clues (i.e. plugin
   file paths, etc.) which might point to the culprit.
    -  This reply was modified 2 years, 6 months ago by [Gemini Labs](https://wordpress.org/support/users/geminilabs/).
 *  Thread Starter [The Wicked Ninja](https://wordpress.org/support/users/wngadmin/)
 * (@wngadmin)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/php-warning-trying-to-access-array-offset-on-value-of-type-null-5/#post-17139350)
 * Thank you for taking the time to look into this. I will keep an eye on our debug.
   log file.

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

The topic ‘PHP Warning: Trying to access array offset on value of type null’ is 
closed to new replies.

 * ![](https://ps.w.org/site-reviews/assets/icon-256x256.gif?rev=3307009)
 * [Site Reviews](https://wordpress.org/plugins/site-reviews/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/site-reviews/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/site-reviews/)
 * [Active Topics](https://wordpress.org/support/plugin/site-reviews/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/site-reviews/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/site-reviews/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [The Wicked Ninja](https://wordpress.org/support/users/wngadmin/)
 * Last activity: [2 years, 6 months ago](https://wordpress.org/support/topic/php-warning-trying-to-access-array-offset-on-value-of-type-null-5/#post-17139350)
 * Status: resolved