Welcome Guest, Not a member yet? Register   Sign In
Error 500 - CLI.php - Use of undefined constant STDOUT
#1

Hi, 
i have just installed fresh CI4 using composer (composer create-project codeigniter4/appstarter test) and set baseURL i get this error:
Code:
Fatal error: Uncaught ErrorException: Use of undefined constant STDOUT - assumed 'STDOUT' (this will throw an Error in a future version of PHP) in /var/www/html/test/vendor/codeigniter4/framework/system/CLI/CLI.php:162 Stack trace: #0 /var/www/html/test/vendor/codeigniter4/framework/system/CLI/CLI.php(162): CodeIgniter\Debug\Exceptions->errorHandler(2, 'Use of undefine...', '/var/www/html/t...', 162, Array) #1 /var/www/html/test/vendor/codeigniter4/framework/system/CLI/CLI.php(1184): CodeIgniter\CLI\CLI::init() #2 /var/www/html/test/vendor/codeigniter4/framework/system/Autoloader/Autoloader.php(300): include_once('/var/www/html/t...') #3 /var/www/html/test/vendor/codeigniter4/framework/system/Autoloader/Autoloader.php(273): CodeIgniter\Autoloader\Autoloader->includeFile('/var/www/html/t...') #4 /var/www/html/test/vendor/codeigniter4/framework/system/Autoloader/Autoloader.php(247): CodeIgniter\Autoloader\Autoloader->loadInNamespace('CodeIgniter\\CLI...') #5 [internal function]: CodeIgniter\Autoloader\Autoloader->loadClass( in /var/www/html/test/vendor/codeigniter4/framework/system/CLI/CLI.php on line 162

Fatal error: Uncaught ErrorException: Use of undefined constant STDOUT - assumed 'STDOUT' (this will throw an Error in a future version of PHP) in /var/www/html/test/vendor/codeigniter4/framework/system/CLI/CLI.php:365 Stack trace: #0 /var/www/html/test/vendor/codeigniter4/framework/system/CLI/CLI.php(365): CodeIgniter\Debug\Exceptions->errorHandler(2, 'Use of undefine...', '/var/www/html/t...', 365, Array) #1 /var/www/html/test/vendor/codeigniter4/framework/system/CLI/CLI.php(468): CodeIgniter\CLI\CLI::write() #2 /var/www/html/test/app/Views/errors/cli/error_exception.php(6): CodeIgniter\CLI\CLI::newLine() #3 /var/www/html/test/vendor/codeigniter4/framework/system/Debug/Exceptions.php(278): include('/var/www/html/t...') #4 /var/www/html/test/vendor/codeigniter4/framework/system/Debug/Exceptions.php(147): CodeIgniter\Debug\Exceptions->render(Object(ErrorException), 500) #5 /var/www/html/test/vendor/codeigniter4/framework/system/Debug/Exceptions.php(195): CodeIgniter\Debug\Exceptions->exceptionHandler(Object(ErrorException in /var/www/html/test/vendor/codeigniter4/framework/system/CLI/CLI.php on line 365

I'm using DDEV with Docker to host it, webserver image using NGINX and PHP 7.4. 
I haven't expirenced any problems so far using this image in other projects.
I have alredy tried fresh install, different version of PHP and nothing helped.
Reply


Messages In This Thread
Error 500 - CLI.php - Use of undefined constant STDOUT - by Toximik - 07-28-2021, 05:28 AM



Theme © iAndrew 2016 - Forum software by © MyBB