It is not easy trying to find errors when nothing is showing so I force errors and ensure something is shown and not a blank page.
Make sure the following points are noted:
1. add this line to ./app/Views/welcome_message.php -> <?php echo $bad_value/$bad; ?>
2. set index.php -> $_SERVER['CI_ENVIRONMENT'] = 'development';
I have set the above and the results can be found here and errors are showing:
https://ci4-strict.tk/admin/index-development.php
Here are the changes made to index.php
Code:
...
...
unset($minPHPVersion);
// START NEW STUFF GOES HERE =========================================================
error_reporting(-1); // regardless
define('LOG_FILE', '../writable/logs/log-' .date('Y-m-d') .'.php');
define('LOCALHOST', 'localhost'===$_SERVER['SERVER_NAME']);
if(LOCALHOST) :
define('CI_DEBUG', FALSE); // bypass (bool) app/Config/oot/development.php
ini_set('display_errors', '1');
$_SERVER['CI_ENVIRONMENT'] = 'production'; // bypass .env & .htaccess
if(01):
$_SERVER['CI_ENVIRONMENT'] = 'development'; // bypass .env & .htaccess
endif;
$useKint = FALSE;
# CLEANER - only shows last error logs and debugbar JSON files
$ok = @unlink(LOG_FILE);
$ok = @array_map('unlink', glob("../writable/debugbar/*.json"));
else:
define('CI_DEBUG', FALSE); // bypass (bool) app/Config/oot/prdouction.php
ini_set('display_errors', '1');
# $_SERVER['CI_ENVIRONMENT'] = 'production'; // bypass .env & .htaccess
$_SERVER['CI_ENVIRONMENT'] = 'development'; // bypass .env & .htaccess
$useKint = FALSE;
endif;
// FINISH NEW STUFF GOES HERE =========================================================