• Resolved ollybach

    (@ollybach)


    Hi

    not that dramatic and quite easy to fix I would think
    I’m getting
    PHP Warning: http_response_code(): Cannot set response code - headers already sent (output started at [path]\plugins\mega-cache\install\advanced-cache-include.php:94) in [path]\plugins\mega-cache\install\advanced-cache-include.php on line 107

    cheers

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author docjojo

    (@docjojo)

    not that easy to fix – should not be any output at this point unless something is causing an error before, but advanced-cache is loaded very early.
    can you enable WP_DEBUG WP_DEBUG_LOG and send the log file?
    you can also send PM via out homepage if you like.

    Thread Starter ollybach

    (@ollybach)

    approx line 94 and 103
    echo $arr[1];

    line 107
    http_response_code(200);

    http_response_code needs to be before echo . that’s all

    Plugin Author docjojo

    (@docjojo)

    this line should be or removed

            // http_response_code(200);
    Thread Starter ollybach

    (@ollybach)

    sure, that’ll also do if it’s not needed . cheers

    • This reply was modified 10 months, 1 week ago by ollybach.
    Plugin Author docjojo

    (@docjojo)

    just remove it.

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

The topic ‘headers already sent’ is closed to new replies.