• Hello,

    It’s been 2.5 years since the issue at https://wordpress.org/support/topic/undefined-array-keys-with-cloudflare-extension/ was first reported.

    it’s been over 1.5 years since this my followup at https://wordpress.org/support/topic/undefined-array-keys-with-cloudflare-extension-2/. You said “I’ll get back to you” and didn’t.

    It’s been over a year since my followup at https://wordpress.org/support/topic/undefined-array-keys-with-cloudflare-extension-3/. You said “I’ll get back to you” and didn’t.

    Here’s the latest line number:

    [17-Oct-2025 16:56:03 UTC] PHP Warning:  Undefined array key 1 in /wp-content/plugins/w3-total-cache/Extension_CloudFlare_Plugin.php on line 484
    [17-Oct-2025 16:56:25 UTC] PHP Warning: Undefined array key 1 in /wp-content/plugins/w3-total-cache/Extension_CloudFlare_Plugin.php on line 484
    [17-Oct-2025 16:56:41 UTC] PHP Warning: Undefined array key 1 in /wp-content/plugins/w3-total-cache/Extension_CloudFlare_Plugin.php on line 484
    [17-Oct-2025 16:56:47 UTC] PHP Warning: Undefined array key 1 in /wp-content/plugins/w3-total-cache/Extension_CloudFlare_Plugin.php on line 484
    [17-Oct-2025 16:57:09 UTC] PHP Warning: Undefined array key 1 in /wp-content/plugins/w3-total-cache/Extension_CloudFlare_Plugin.php on line 484
    [17-Oct-2025 16:57:30 UTC] PHP Warning: Undefined array key 1 in /wp-content/plugins/w3-total-cache/Extension_CloudFlare_Plugin.php on line 484
    [17-Oct-2025 16:57:53 UTC] PHP Warning: Undefined array key 1 in /wp-content/plugins/w3-total-cache/Extension_CloudFlare_Plugin.php on line 484

    Please don’t ask for confirmation that this is still happening—you can see in the code above that the date is current. The server is now running PHP Version 8.2.29.

    I suppose it’s time to migrate my 100+ sites to FlyingPress, but I figured I’d give you one last chance.

    Any ETA on the fix? It’s very annoying to debug errors using tailf with my PHP error log when your plugin is constantly writing new lines.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor ImageMarko Vasiljevic

    (@vmarko)

    Hello @nothin7

    Thank you for reaching out, and I am happy to help!
    Can you please replace the section in /Extension_CloudFlare_Plugin.php

    // Extract out the main IP pieces.
    $ip_pieces = explode( '::', $left_piece, 2 );
    $main_ip_piece = $ip_pieces[0];
    $last_ip_piece = $ip_pieces[1];

    to

    // Extract out the main IP pieces.
    $ip_pieces = explode('::', $left_piece, 2);
    $main_ip_piece = $ip_pieces[0];
    $last_ip_piece = isset($ip_pieces[1]) ? $ip_pieces[1] : '';

    Let me know if this helps and if the issue persists

    Thanks!

    Thread Starter ImageZade

    (@nothin7)

    Yes, this fixes the line 484 warning. Thanks! Will this change be incorporated into the next update of your plugin?

    The 13 warnings that appear only when viewing the Performance Dashboard can be resolved by reauthorizing Cloudflare. This will be annoying to do for 100+ sites but at least it’s possible. Any chance of somehow automating this or updating the code so reauthorizing isn’t needed?

    Plugin Contributor ImageMarko Vasiljevic

    (@vmarko)

    Hello @nothin7

    Thank you for your feedback.
    We’ll make sure to include this to the next release.
    As for the other warnings, we’ll have to check that more as we are not able to replicate this at the moment

    Thank you for your patience with this


    Thread Starter ImageZade

    (@nothin7)

    Much appreciated.

    Triggering those other warnings would probably involve reverting to the oldest version of W3TC that integrated Cloudflare, then authorizing. In other words, it’s something that’s fixed for new installations and is a remnant that only affects early adopters. I can understand if that’s not worth fixing.

    No need to reply, but feel free to let me know when the next update has been released, and I’ll mark this ticket as resolved.

    Plugin Contributor ImageMarko Vasiljevic

    (@vmarko)

    Hello @nothin7

    Thank you for your feedback.
    I’ll let you know when the next update will be reased with this fix

    Thanks!

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

You must be logged in to reply to this topic.