Title: PHP Warning: Undefined array key
Last modified: September 23, 2023

---

# PHP Warning: Undefined array key

 *  Resolved [bjf2000](https://wordpress.org/support/users/bjf2000/)
 * (@bjf2000)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-14/)
 * Perhaps a 4.7.4 problem, since I didn’t notice it before that, but we see recurring
   warnings:
 *     ```wp-block-code
       [22-Sep-2023 14:58:21 UTC] PHP Warning:  Undefined array key 11 in /home/oursite/public_html/wp-content/plugins/wp-cloudflare-page-cache/libs/cache_controller.class.php on line 2734
       [22-Sep-2023 14:58:21 UTC] PHP Warning:  Undefined array key 11 in /home/oursite/public_html/wp-content/plugins/wp-cloudflare-page-cache/libs/cache_controller.class.php on line 2735
       ```
   
 * The key number varies.
 * We have the latest WP and the latest in the PHP 8.1.x series.
 * Similar but different thread:
 * [https://wordpress.org/support/topic/http_host-in-local-environment-wp-cli/](https://wordpress.org/support/topic/http_host-in-local-environment-wp-cli/)

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

 *  Plugin Contributor [iSaumya](https://wordpress.org/support/users/isaumya/)
 * (@isaumya)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-14/#post-17076552)
 * Hi [@bjf2000](https://wordpress.org/support/users/bjf2000/),
   Have you tried the
   build mentioned here: [https://wordpress.org/support/topic/http_host-in-local-environment-wp-cli/#post-17060687](https://wordpress.org/support/topic/http_host-in-local-environment-wp-cli/#post-17060687)
 * Did it fix the issue?
 *  Thread Starter [bjf2000](https://wordpress.org/support/users/bjf2000/)
 * (@bjf2000)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-14/#post-17077523)
 * No, because I wasn’t sure that it was actually the same issue given that one 
   says “HTTP_HOST” and the warning points to a different .php file. But I can try
   it if you think that it’s really the same issue. Thanks.
 *  Plugin Contributor [iSaumya](https://wordpress.org/support/users/isaumya/)
 * (@isaumya)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-14/#post-17077646)
 * Hi [@bjf2000](https://wordpress.org/support/users/bjf2000/),
   Try that build and
   see what happens.
 *  Thread Starter [bjf2000](https://wordpress.org/support/users/bjf2000/)
 * (@bjf2000)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-14/#post-17081087)
 * Yes, it looks like it worked. Thanks.
 *  Plugin Contributor [iSaumya](https://wordpress.org/support/users/isaumya/)
 * (@isaumya)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-14/#post-17081119)
 * Hi [@bjf2000](https://wordpress.org/support/users/bjf2000/),
   Happy to hear that
   the issue has been resolved now.

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

The topic ‘PHP Warning: Undefined array key’ is closed to new replies.

 * ![](https://ps.w.org/wp-cloudflare-page-cache/assets/icon-256x256.gif?rev=3234997)
 * [Super Page Cache – Cloudflare Cache, Page Speed & Core Web Vitals](https://wordpress.org/plugins/wp-cloudflare-page-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-cloudflare-page-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-cloudflare-page-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-cloudflare-page-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-cloudflare-page-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-cloudflare-page-cache/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [iSaumya](https://wordpress.org/support/users/isaumya/)
 * Last activity: [2 years, 8 months ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-14/#post-17081119)
 * Status: resolved