Title: PHP Notice: Undefined offset: -1 when creating cache
Last modified: September 28, 2022

---

# PHP Notice: Undefined offset: -1 when creating cache

 *  Resolved [ov3rfly](https://wordpress.org/support/users/ov3rfly/)
 * (@ov3rfly)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/php-notice-undefined-offset-1-when-creating-cache/)
 * Getting this in error log when a page is first time cached after cache clear:
 *     ```
       [28-Sep-2022 09:14:36 UTC] PHP Notice:  Undefined offset: -1 in .../wp-content/plugins/wp-fastest-cache/inc/js-utilities.php on line 48
       ```
   
 * How can we debug further? What info do you need?
 * WP Fastest Cache 1.0.5, WordPress 6.0.2

Viewing 1 replies (of 1 total)

 *  Plugin Author [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * (@emrevona)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/php-notice-undefined-offset-1-when-creating-cache/#post-16052640)
 * I fixed the problem. the changes will be available in the next version.
 * [https://plugins.trac.wordpress.org/changeset/2791480/wp-fastest-cache/trunk/inc/js-utilities.php](https://plugins.trac.wordpress.org/changeset/2791480/wp-fastest-cache/trunk/inc/js-utilities.php)

Viewing 1 replies (of 1 total)

The topic ‘PHP Notice: Undefined offset: -1 when creating cache’ is closed to new
replies.

 * ![](https://ps.w.org/wp-fastest-cache/assets/icon-256x256.png?rev=2064586)
 * [WP Fastest Cache - WordPress Cache Plugin](https://wordpress.org/plugins/wp-fastest-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-fastest-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-fastest-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-fastest-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-fastest-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-fastest-cache/reviews/)

## Tags

 * [notice](https://wordpress.org/support/topic-tag/notice/)
 * [undefined](https://wordpress.org/support/topic-tag/undefined/)

 * 1 reply
 * 2 participants
 * Last reply from: [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * Last activity: [3 years, 8 months ago](https://wordpress.org/support/topic/php-notice-undefined-offset-1-when-creating-cache/#post-16052640)
 * Status: resolved