Title: Undefined array key and null offet Errors
Last modified: March 9, 2023

---

# Undefined array key and null offet Errors

 *  Resolved [alonycohen](https://wordpress.org/support/users/alonycohen/)
 * (@alonycohen)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/undefined-array-key-and-null-offet-errors/)
 * Getting Undefined array key “status” and Trying to access array offset on value
   of type null errors.
 * We recently updated our PHP version to 8.0 and WordPress to 6.1.1. Seeing the
   following errors in our logs, not sure which page is generating them:
 * PHP Warning: Undefined array key “status” in …/wp-content/plugins/autoptimize/
   classes/autoptimizeCriticalCSSCron.php on line 220
 * PHP Warning: Trying to access array offset on value of type null in …/wp-content/
   plugins/autoptimize/classes/autoptimizeCriticalCSSCron.php on line 280

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

 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/undefined-array-key-and-null-offet-errors/#post-16545131)
 * Those warnings should be gone in the next version of AO alonycohen, if you want
   you can [download the beta here](https://github.com/futtta/autoptimize/archive/refs/heads/beta.zip);
   deactivate the current version, install the beta (plugins -> new -> upload) and
   activate it. I’m always interested in feedback! 🙂
 * best,
    frank
 *  Thread Starter [alonycohen](https://wordpress.org/support/users/alonycohen/)
 * (@alonycohen)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/undefined-array-key-and-null-offet-errors/#post-16545561)
 * Thanks Frank. Will keep an eye out for the new version

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

The topic ‘Undefined array key and null offet Errors’ is closed to new replies.

 * ![](https://ps.w.org/autoptimize/assets/icon-256X256.png?rev=2211608)
 * [Autoptimize](https://wordpress.org/plugins/autoptimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/autoptimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/autoptimize/)
 * [Active Topics](https://wordpress.org/support/plugin/autoptimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/autoptimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/autoptimize/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [alonycohen](https://wordpress.org/support/users/alonycohen/)
 * Last activity: [3 years, 3 months ago](https://wordpress.org/support/topic/undefined-array-key-and-null-offet-errors/#post-16545561)
 * Status: resolved