CodeIgniter Forums
New CI4 App generating errors - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: Installation & Setup (https://forum.codeigniter.com/forumdisplay.php?fid=9)
+--- Thread: New CI4 App generating errors (/showthread.php?tid=75587)



New CI4 App generating errors - cerad - 02-24-2020

Thought I would give the newly release version a try with php 7.4.3.
Code:
composer create-project codeigniter4/appstarter c400
cd c400
# Not sure if this is needed
php builds development
composer update
#
php spark serve
Results in:
Code:
CodeIgniter CLI Tool - Version 4.0.1 - Server-Time: 2020-02-24 10:41:36am

PHP Fatal error:  Cannot declare class CodeIgniter\Commands\CommandsTestStreamFilter, because the name is already in use in /home/ahundiak/zayso2020/c400/tests/_support/Commands/CommandsTestStreamFilter.php on line 3
PHP Stack trace:
PHP   1. {main}() /home/ahundiak/zayso2020/c400/spark:0
PHP   2. CodeIgniter\CLI\Console->run() /home/ahundiak/zayso2020/c400/spark:57
blah blah blah
Stepping my way through the spark code now but I'm wonder if anyone else has ran into this out of the box?


RE: New C4 App generating errors - pintofrancisco - 02-24-2020

I have the same problem


RE: New C4 App generating errors - dave friend - 02-24-2020

I believe this issue has been identified and the fix is in. I suspect a patch release will be available pretty quickly.


RE: New C4 App generating errors - kilishan - 02-24-2020

It has been identified. Waiting for tests to complete but it looks like that file is no longer used anywhere in the tests and can be safely deleted. Official patch coming tonight assuming it passes tests on Travis.


RE: New CI4 App generating errors - cerad - 02-27-2020

In case anyone is following this, I just tried a composer update but got the same error.

So I started over and now spark serve works as expected. So that is progress.