• Resolved deltafactory

    (@deltafactory)


    We are using a command-line (not WP-CLI based) task which causes output of Notices when certain logging options are enabled. Since it’s not a web request, the server vars are not populated.

    
    Notice: Undefined index: SERVER_PROTOCOL in .../wordpress/wp-content/plugins/awesome-support/includes/functions-general.php on line 202
    
    Notice: Undefined index: SERVER_NAME in .../wordpress/wp-content/plugins/awesome-support/includes/functions-general.php on line 203
    
    Notice: Undefined index: SERVER_PORT in .../wordpress/wp-content/plugins/awesome-support/includes/functions-general.php on line 203
    

    Please check php_sapi_name() === 'cli' or check that value is set before reading. Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Command-line usage outputs errors’ is closed to new replies.