Title: PHP warning
Last modified: January 13, 2020

---

# PHP warning

 *  [ITCS](https://wordpress.org/support/users/dimath99/)
 * (@dimath99)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/php-warning-223/)
 * 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](https://wordpress.org/support/users/dimath99/)
 * (@dimath99)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/php-warning-223/#post-12323329)
 * 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](https://wordpress.org/support/users/dimath99/)
 * (@dimath99)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/php-warning-223/#post-12325166)
 * 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](https://wordpress.org/support/users/dimath99/)
 * (@dimath99)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/php-warning-223/#post-12326696)
 * 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?
 *  [wfdave](https://wordpress.org/support/users/wfdave/)
 * (@wfdave)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/php-warning-223/#post-12328454)
 * Hi [@dimath99](https://wordpress.org/support/users/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](https://wordpress.org/support/users/dimath99/)
 * (@dimath99)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/php-warning-223/#post-12329462)
 * 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](https://wordpress.org/support/users/dimath99/)
 * (@dimath99)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/php-warning-223/#post-12344942)
 * Any update regarding this bug?
 * Thanks.
 *  [WFSupport](https://wordpress.org/support/users/wfsupport/)
 * (@wfsupport)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/php-warning-223/#post-12354094)
 * 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](https://wordpress.org/support/users/dimath99/)
 * (@dimath99)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/php-warning-223/#post-12363860)
 * Hi,
 * I have sent a report today and mentioned my username dimath99.
 * Thanks.
 *  [WFSupport](https://wordpress.org/support/users/wfsupport/)
 * (@wfsupport)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/php-warning-223/#post-12431900)
 * [@dimath99](https://wordpress.org/support/users/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](https://wordpress.org/support/users/dimath99/)
 * (@dimath99)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/php-warning-223/#post-12439496)
 * 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.

 * ![](https://ps.w.org/wordfence/assets/icon.svg?rev=2070865)
 * [Wordfence Security - Firewall, Malware Scan, and Login Security](https://wordpress.org/plugins/wordfence/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordfence/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordfence/)
 * [Active Topics](https://wordpress.org/support/plugin/wordfence/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordfence/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordfence/reviews/)

 * 10 replies
 * 3 participants
 * Last reply from: [ITCS](https://wordpress.org/support/users/dimath99/)
 * Last activity: [6 years, 3 months ago](https://wordpress.org/support/topic/php-warning-223/#post-12439496)
 * Status: not resolved