Home › Forums › BulletProof Security Pro › PHP Warning: Cannot modify header information – headers already sent
- This topic has 1 reply, 1 voice, and was last updated 3 months, 2 weeks ago by
AITpro Admin.
Viewing 2 posts - 1 through 2 (of 2 total)
-
AuthorPosts
-
AITpro Admin
KeymasterEmail Question:
i’m getting these constant php errors. how do i fix them.
[02-Feb-2022 02:09:55 UTC] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/xxxxx/public_html/thelair/wp-includes/functions.php:5212) in /home/xxxxx/public_html/thelair/wp-admin/admin-header.php on line 9 [02-Feb-2022 02:57:22 UTC] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/xxxxx/public_html/thelair/wp-includes/functions.php:5212) in /home/xxxxx/public_html/thelair/wp-includes/pluggable.php on line 1355 [02-Feb-2022 02:57:22 UTC] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/xxxxx/public_html/thelair/wp-includes/functions.php:5212) in /home/xxxxx/public_html/thelair/wp-includes/pluggable.php on line 1358 [02-Feb-2022 04:02:40 UTC] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/xxxxx/public_html/thelair/wp-includes/functions.php:5212) in /home/xxxxx/public_html/thelair/wp-includes/pluggable.php on line 1355 [02-Feb-2022 04:02:40 UTC] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/xxxxx/public_html/thelair/wp-includes/functions.php:5212) in /home/xxxxx/public_html/thelair/wp-includes/pluggable.php on line 1358 [02-Feb-2022 04:03:09 UTC] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/xxxxx/public_html/thelair/wp-includes/functions.php:5212) in /home/xxxxx/public_html/thelair/wp-login.php on line 462 [02-Feb-2022 04:03:09 UTC] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/xxxxx/public_html/thelair/wp-includes/functions.php:5212) in /home/xxxxx/public_html/thelair/wp-login.php on line 478 [02-Feb-2022 04:03:09 UTC] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/xxxxx/public_html/thelair/wp-includes/functions.php:5212) in /home/xxxxx/public_html/thelair/wp-includes/functions.php on line 6821 [02-Feb-2022 04:03:09 UTC] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/xxxxx/public_html/thelair/wp-includes/functions.php:5212) in /home/xxxxx/public_html/thelair/wp-includes/pluggable.php on line 1046
AITpro Admin
KeymasterAnswer:
These PHP errors were being caused by this code in the wp-config.php file:
define( 'ALTERNATE_WP_CRON', true );
This code is known to be problematic. If you are running into problems with standard WP Crons then setup a Direct Cron job in your web host control panel. The correct cron interval is 1 minute. Any other cron interval time interval is incorrect and will cause problems for Plugins and Themes that run Cron jobs. After setting up a Direct Cron job add this code in your wp-config.php file:
define( 'DISABLE_WP_CRON', true );
-
AuthorPosts
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.