• Hi,

    I see the below error and my site cannot work unless the WordFence gets deactivated.

    “Warning: Cannot modify header information – headers already sent by (output started at /home/mysite/public_html/wp-cron.php:28) in /home/mysite/public_html/wp-content/plugins/wordfence/lib/wfUtils.php on line 1674”

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter ITCS

    (@dimath99)

    Hi,

    I have not received any response back from you so far. Please respond ASAP, I have 5 sites with the same problem.

    Thanks.

    Thread Starter ITCS

    (@dimath99)

    I am not sure if this is related, but I see this error on Diagnostics>Connectivity

    wp_remote_post() test back to this server failed! Response was: 503 Service Unavailable
    This additional info may help you diagnose the issue. The response headers we received were:

    Thread Starter ITCS

    (@dimath99)

    Hi,

    After some research, we saw that the error appears only when the Cloudflare is active on the sites. It seems that your servers are conflicting with Cloudflare.

    Any solution?

    Hi @dimath99,

    You mentioned two different issues, and I believe only the first one is breaking your site.

    Can you edit /wp-cron.php and comment out the line fastcgi_finish_request();?

    So replace line 28 with:

    //fastcgi_finish_request();

    What happened is that this line is outputting some error messages on the page, and when Wordfence runs, it is unable to change headers (because something else was outputted on the page).

    Dave

    Thread Starter ITCS

    (@dimath99)

    It seems to work fine now, but what will happen on the next WordPress update? This cannot be considered as a permanent solution.

    Also, I activated the Cloudflare and the connectivity issue came up again.

    “wp_remote_post() test back to this server failed! Response was: 503 Service Unavailable
    This additional info may help you diagnose the issue. The response headers we received were:”

    Thread Starter ITCS

    (@dimath99)

    Any update regarding this bug?

    Thanks.

    Can you send a diagnostics report to us at wftest [at] wordfence [dot] com? The link to do so will be on that same page you saw the “wp_remote_post() test back to this server failed!” error on. Make sure and include your forum username and respond here once you do.

    Tim

    Thread Starter ITCS

    (@dimath99)

    Hi,

    I have sent a report today and mentioned my username dimath99.

    Thanks.

    WFSupport

    (@wfsupport)

    @dimath99 I think I see what is happening but I’m not getting notifications that you respond here. Can you send an email to that same address the diagnostics report went to with a screenshot of your rate limiting rules?

    Tim

    Thread Starter ITCS

    (@dimath99)

    Hi,

    I just send you the email.

    Thanks.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘PHP warning’ is closed to new replies.