• After the update from 5.0.4 to 5.0.5, the debug log is now getting this entry for what seems every page load in the frontend:

    PHP Warning: Cannot modify header information - headers already sent in /wp-content/plugins/wp-cloudflare-page-cache/src/Utils/Helpers.php on line 21

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi, do you still face the issue or was you able to resolve?
    The plugin has been updated in that days.

    I hope your issue is resolved.
    I’m not part of the plugin team, I’m just a WordPress user.

    Thread Starter alx359

    (@alx359)

    Hi @peopleinside thanks for your concern.

    No, the issue isn’t resolved, I just workarounded it as it’s usually done. I’m aware it’s a too generic issue not necessarily related to SPC, but the message is still annoying nonetheless.

    In /wp-content/plugins/wp-cloudflare-page-cache/src/Utils/Helpers.php line 17 added an extra headers check to skip said message.

    public static function bypass_reason_header( $reason = '' ) {
    if ( ! is_string( $reason ) || empty( $reason ) || headers_sent() ) { #alx359: added headers_sent()
    return;
    }

    header( sprintf( '%s: %s', self::BYPASS_CACHE_REASON_HEADER, $reason ) );
    }

    Thank you for your kind reply!
    I hope the plugin team can help you answering also to you ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.