• Resolved zethodderskov

    (@zethodderskov)


    I’m having a Cron-job run, and every time it does, I’m getting this in the debug-log:

    
    
    [01-Jun-2021 17:47:02 UTC] PHP Deprecated:  Required parameter $function follows optional parameter $pattern in /path/in/my/site/wp-content/plugins/wp-cerber/cerber-scanner.php on line 3421
    [01-Jun-2021 17:47:02 UTC] PHP Warning:  Cannot modify header information - headers already sent by (output started at /path/in/my/site/wp-content/plugins/wp-cerber/cerber-scanner.php:3421) in /path/in/my/site/wp-content/plugins/wp-cerber/cerber-common.php on line 2679
    [01-Jun-2021 17:47:02 UTC] PHP Warning:  Cannot modify header information - headers already sent by (output started at /path/in/my/site/wp-content/plugins/wp-cerber/cerber-scanner.php:3421) in /path/in/my/site/wp-content/plugins/wp-cerber/cerber-common.php on line 2679

    I’ve updated Cerber to the latest version ( 8.8.5 ).
    We’re running PHP 8.0.6

    And here’s the content of the cronjob-script:

    
    <?php
    ( PHP_SAPI !== 'cli' || isset( $_SERVER['HTTP_USER_AGENT'])) && die('cli only');
    require_once( $_SERVER["PWD"] . '/wp-load.php' );
    DevHelpers::log( 'Teeeesting cronjob' ); // A test-log
    ?>
    

    Can you please fix it, so the debug-log doesn’t get filled with garbage? 🙂

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Garbage printing in the debug-log’ is closed to new replies.