Title: Undefined array keys with Cloudflare extension
Last modified: March 29, 2023

---

# Undefined array keys with Cloudflare extension

 *  [Zade](https://wordpress.org/support/users/nothin7/)
 * (@nothin7)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/undefined-array-keys-with-cloudflare-extension/)
 * Hi,
 * With PHP 8.2 and your Cloudflare extension enabled, 13 warnings are logged every
   time a W3TC admin page is viewed:
 *     ```wp-block-code
       PHP Warning: Undefined array key "interval" in /wp-content/plugins/w3-total-cache/Extension_CloudFlare_Widget_View.php on line 15
       PHP Warning: Undefined array key "since" in /wp-content/plugins/w3-total-cache/Extension_CloudFlare_Widget_View.php on line 18
       PHP Warning: Undefined array key "interval" in /wp-content/plugins/w3-total-cache/Extension_CloudFlare_Widget_View.php on line 23
       PHP Warning: Undefined array key "until" in /wp-content/plugins/w3-total-cache/Extension_CloudFlare_Widget_View.php on line 26
       PHP Warning: Undefined array key "bandwidth_all" in /wp-content/plugins/w3-total-cache/Extension_CloudFlare_Widget_View.php on line 38
       PHP Warning: Undefined array key "bandwidth_cached" in /wp-content/plugins/w3-total-cache/Extension_CloudFlare_Widget_View.php on line 39
       PHP Warning: Undefined array key "requests_all" in /wp-content/plugins/w3-total-cache/Extension_CloudFlare_Widget_View.php on line 43
       PHP Warning: Undefined array key "requests_cached" in /wp-content/plugins/w3-total-cache/Extension_CloudFlare_Widget_View.php on line 44
       PHP Warning: Undefined array key "pageviews_all" in /wp-content/plugins/w3-total-cache/Extension_CloudFlare_Widget_View.php on line 48
       PHP Warning: Undefined array key "uniques_all" in /wp-content/plugins/w3-total-cache/Extension_CloudFlare_Widget_View.php on line 52
       PHP Warning: Undefined array key "threats_all" in /wp-content/plugins/w3-total-cache/Extension_CloudFlare_Widget_View.php on line 56
       PHP Warning: Undefined array key "cached_tf" in /wp-content/plugins/w3-total-cache/Extension_CloudFlare_Widget_View.php on line 59
       PHP Warning: Undefined array key "cached_ts" in /wp-content/plugins/w3-total-cache/Extension_CloudFlare_Widget_View.php on line 59
       ```
   
 * Can you fix this for the next release? An easy solution is to test for isset().
   Thanks!

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

 *  Plugin Contributor [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/undefined-array-keys-with-cloudflare-extension/#post-16610603)
 * Hello [@nothin7](https://wordpress.org/support/users/nothin7/)
 * Thank you for reaching out and I am happy to assist you with this.
 * Just to confirm, you have started seeing these warnings after upgrading to php
   8.2?
 * Thanks!
 *  Thread Starter [Zade](https://wordpress.org/support/users/nothin7/)
 * (@nothin7)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/undefined-array-keys-with-cloudflare-extension/#post-16612226)
 * That is correct. I have confirmed on two sites that the warnings appear when 
   loading the WP admin > Performance > Dashboard screen using PHP 8.0, 8.1, or 
   8.2, but not 7.4.
 *  Plugin Contributor [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/undefined-array-keys-with-cloudflare-extension/#post-16614339)
 * Hello [@nothin7](https://wordpress.org/support/users/nothin7/)
 * Thank you for your feedback.
   Let me check and test this and I’ll get back to 
   you.
 * Thanks!
 *  Thread Starter [Zade](https://wordpress.org/support/users/nothin7/)
 * (@nothin7)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/undefined-array-keys-with-cloudflare-extension/#post-16615366)
 * Much appreciated. There’s also a warning every time a front-end page is viewed:
 *     ```wp-block-code
       PHP Warning: Undefined array key 1 in /wp-content/plugins/w3-total-cache/Extension_CloudFlare_Plugin.php on line 390
       ```
   
 *  Plugin Contributor [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/undefined-array-keys-with-cloudflare-extension/#post-16649115)
 * Hey [@nothin7](https://wordpress.org/support/users/nothin7/) 
   Thank you for you
   patience.Just to let you know this will be addressed in the upcoming release.
   Thank you again for your patience!
 *  Thread Starter [Zade](https://wordpress.org/support/users/nothin7/)
 * (@nothin7)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/undefined-array-keys-with-cloudflare-extension/#post-16731287)
 * Thanks Marko! I updated to version 2.3.2 released 2 days ago, and I still see
   this issue on all of my sites. Do you have a rough ETA?

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

The topic ‘Undefined array keys with Cloudflare extension’ is closed to new replies.

 * ![](https://ps.w.org/w3-total-cache/assets/icon-256x256.png?rev=1041806)
 * [W3 Total Cache](https://wordpress.org/plugins/w3-total-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/w3-total-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/w3-total-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/w3-total-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/w3-total-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/w3-total-cache/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [Zade](https://wordpress.org/support/users/nothin7/)
 * Last activity: [3 years, 1 month ago](https://wordpress.org/support/topic/undefined-array-keys-with-cloudflare-extension/#post-16731287)
 * Status: not resolved