Test php file does not output to stdout from CLI on server (works locally) -
the question not "how fix error" "how output shown on server, on local install?"
i run php file this
php test.php
locally error , warning outputs. on server operated devops, no output of same file. guess php.ini value set different? knows how undo that?
in both cases file execution fails. file
<?php ini_set('display_startup_errors',1); ini_set('display_errors',1); error_reporting(-1); require(__dir__ ."/../../../bootstrap.php"); ?> teststring <?php die("bye"); ?>
now running on server no output. nothing.
running on local computer get:
notice: undefined index: http_host in /var/www/html/myapp/wp-includes/ms-settings.php on line 38 call stack: 0.0009 392912 1. {main}() /var/www/html/myapp/wp-content/themes/fundingpress-child/test.php:0 0.0010 395888 2. require('/var/www/html/myapp/wp-content/themes/fundingpress-child/bootstrap.php') /var/www/html/myapp/wp-content/themes/fundingpress-child/test.php:6 0.0065 687056 3. require_once('/var/www/html/myapp/wp-load.php') /var/www/html/myapp/wp-content/themes/fundingpress-child/bootstrap.php:7 0.0066 699048 4. require_once('/var/www/html/myapp/wp-config.php') /var/www/html/myapp/wp-load.php:37 0.0074 800592 5. require_once('/var/www/html/myapp/wp-settings.php') /var/www/html/myapp/wp-config.php:89 0.0329 3665088 6. require('/var/www/html/myapp/wp-includes/ms-settings.php') /var/www/html/myapp/wp-settings.php:103 warning: cannot modify header information - headers sent (output started @ /var/www/html/myapp/wp-includes/ms-settings.php:38) in /var/www/html/myapp/wp-includes/ms-settings.php on line 187 call stack: 0.0009 392912 1. {main}() /var/www/html/myapp/wp-content/themes/fundingpress-child/test.php:0 0.0010 395888 2. require('/var/www/html/myapp/wp-content/themes/fundingpress-child/bootstrap.php') /var/www/html/myapp/wp-content/themes/fundingpress-child/test.php:6 0.0065 687056 3. require_once('/var/www/html/myapp/wp-load.php') /var/www/html/myapp/wp-content/themes/fundingpress-child/bootstrap.php:7 0.0066 699048 4. require_once('/var/www/html/myapp/wp-config.php') /var/www/html/myapp/wp-load.php:37 0.0074 800592 5. require_once('/var/www/html/myapp/wp-settings.php') /var/www/html/myapp/wp-config.php:89 0.0329 3665088 6. require('/var/www/html/myapp/wp-includes/ms-settings.php') /var/www/html/myapp/wp-settings.php:103 0.0346 3804784 7. header() /var/www/html/myapp/wp-includes/ms-settings.php:187
Comments
Post a Comment