• Resolved mobizma

    (@mobizma)


    Hi guys,

    I am a Pro user. Love your plugin.
    I use it now without any caching plugins and in conjunction with Super Page Cache for CloudFlare plugin.

    I see that on sites with both your and the CF caching plugin I get lots of debug.log entries every day even on WIP sites, i.e., no traffic ones.
    I tried tweaking settings but to no avail.

    https://www.ads-software.com/support/topic/headers-already-sent-error-log-regardless-what-i-do/#post-16844222

    My theme is Elementor Hello [super basic] and I use Elementor Pro. Server is Lite Speed Enterprise, Ubuntu, PHP8 on UpCloud.
    Not many plugins and none that would fight over headers. No caching plugins aside from the one mentioned above. Which only does HTML page caching and deals with static assets for CF.

    See entry examples below.

    Is this perhaps to do with your .htaccess in /wp-content/ and /uploads/ folders?

    My CF cache is working perfectly fine and on CF free of course only JPG/PNG is cached and not AVIF/WebP unless it’s a Pro account, this I already know. Headers are controlled by the super page cache plugin and need to be.

    Will this issue cause page load speed to slow down once my sites get many visitors, adversely impacting site/server performance in some way?
    Please advise.

    Example entries that keep repeating:

    [14-Jun-2023 22:57:18 UTC] PHP Warning: Undefined array key 6 in /home/….com/public_html/wp-content/plugins/wp-cloudflare-page-cache/libs/cache_controller.class.php on line 2734
    [14-Jun-2023 22:57:18 UTC] PHP Warning: Undefined array key 6 in /home/….com/public_html/wp-content/plugins/wp-cloudflare-page-cache/libs/cache_controller.class.php on line 2735

    [17-Jun-2023 13:28:36 UTC] PHP Warning: Cannot modify header information – headers already sent by (output started at /home/….com/public_html/wp-includes/functions.php:5309) in /home/….com/public_html/wp-admin/includes/misc.php on line 1431
    [17-Jun-2023 13:28:36 UTC] PHP Warning: Cannot modify header information – headers already sent by (output started at /home/….com/public_html/wp-includes/functions.php:5309) in /home/….com/public_html/wp-includes/functions.php on line 6896
    [17-Jun-2023 13:28:36 UTC] PHP Warning: Cannot modify header information – headers already sent by (output started at /home/….com/public_html/wp-includes/functions.php:5309) in /home/….com/public_html/wp-admin/admin-header.php on line 9

    and a ton of:

    [16-Jun-2023 17:32:56 UTC] PHP Warning: Cannot modify header information – headers already sent by (output started at /home/….com/public_html/wp-includes/functions.php:5309) in /home/….com/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1762
    [16-Jun-2023 17:32:56 UTC] PHP Warning: Cannot modify header information – headers already sent by (output started at /home/….com/public_html/wp-includes/functions.php:5309) in /home/….com/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1786

    Thank you!

Viewing 1 replies (of 1 total)
  • Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    Hi @mobizma,

    Thank you for your message.

    I don’t think this error is related to my plugin. The headers error is related to sending headers from the PHP code level. My plugin doesn’t do that – it adds headers using rules in the .htaccess file. This way of adding headers does not generate problems.

    You can check this to make sure – what happens when my plugin is inactive – do you get new errors in debug.log then too?

    Best,
    Mateusz

Viewing 1 replies (of 1 total)
  • The topic ‘headers already sent error log regardless what I do’ is closed to new replies.