PHP Warning: Cannot modify header information – headers already sent

Home Forums BulletProof Security Pro PHP Warning: Cannot modify header information – headers already sent

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #41431
    AITpro Admin
    Keymaster

    Email 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
    #41432
    AITpro Admin
    Keymaster

    Answer:

    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 );

    #43483
    AITpro Admin
    Keymaster

    Jenni101 > your forum reply was split from this forum topic and created here > https://forum.ait-pro.com/forums/topic/split-wp-photo-seller-plugin-headers-already-sent/.  There is a bug in BuddyPress/bbPress that does not change the Activity stream link to the new split forum topic url.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.