Title: PHP Warnings from Plugin in Error Log
Last modified: November 18, 2024

---

# PHP Warnings from Plugin in Error Log

 *  Resolved [SR20DETg20girl](https://wordpress.org/support/users/sr20detg20girl/)
 * (@sr20detg20girl)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/php-warnings-from-plugin-in-error-log/)
 * We’re getting a TON of PHP Warnings in the error log from this plugin. It is 
   mostly:
 * [18-Nov-2024 02:35:40 UTC] PHP Warning: http_response_code(): Cannot set response
   code – headers already sent in /home/REDACTED/public_html/wp-content/plugins/
   stopbadbots/functions/functions.php on line 4593
    -  This topic was modified 1 year, 6 months ago by [SR20DETg20girl](https://wordpress.org/support/users/sr20detg20girl/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-warnings-from-plugin-in-error-log%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [sminozzi](https://wordpress.org/support/users/sminozzi/)
 * (@sminozzi)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/php-warnings-from-plugin-in-error-log/#post-18143729)
 * **Hi,**
 * This is line 4593:
   `http_response_code(403);`
 * This line will deny access to your site. 
   It is likely that your current visitor
   is a hacker or bot and needs to be blocked. However, another plugin or theme 
   has sent the header prematurely.
 * Please take a look at this page for guidance on identifying conflicts or determining
   who is sending headers prematurely.
   [https://siterightaway.net/test-for-conflicts/](https://siterightaway.net/test-for-conflicts/)
 * **Regards,**
   Bill
 *  Plugin Author [sminozzi](https://wordpress.org/support/users/sminozzi/)
 * (@sminozzi)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/php-warnings-from-plugin-in-error-log/#post-18145940)
 * I forgot to mention: Don’t use more than one anti-bot plugin at the same time,
   as they can interfere with each other.

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

The topic ‘PHP Warnings from Plugin in Error Log’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/stopbadbots_f0f0f0.svg)
 * [Block Bad Bots and Stop Bad Bots Crawlers and Spiders and Anti Spam Protection](https://wordpress.org/plugins/stopbadbots/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/stopbadbots/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/stopbadbots/)
 * [Active Topics](https://wordpress.org/support/plugin/stopbadbots/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/stopbadbots/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/stopbadbots/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [sminozzi](https://wordpress.org/support/users/sminozzi/)
 * Last activity: [1 year, 6 months ago](https://wordpress.org/support/topic/php-warnings-from-plugin-in-error-log/#post-18145940)
 * Status: resolved