• Hi,

    With PHP 8.2 and your Cloudflare extension enabled, 13 warnings are logged every time a W3TC admin page is viewed:

    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

    (@vmarko)

    Hello @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

    (@nothin7)

    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

    (@vmarko)

    Hello @nothin7

    Thank you for your feedback.
    Let me check and test this and I’ll get back to you.

    Thanks!

    Thread Starter Zade

    (@nothin7)

    Much appreciated. There’s also a warning every time a front-end page is viewed:

    PHP Warning: Undefined array key 1 in /wp-content/plugins/w3-total-cache/Extension_CloudFlare_Plugin.php on line 390
    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hey @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

    (@nothin7)

    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.