Error with Codeigniter 4.1.4 [message #1844791] |
Sat, 25 September 2021 09:21 |
Eduardo Gutierrez Messages: 48 Registered: December 2017 |
Member |
|
|
I have Eclipse PDT ( latest version)
Eclipse IDE for PHP Developers (includes Incubating components)
Version: 2021-09 (4.21.0)
Build id: 20210910-1417
OS: Linux, v.5.4.0-86-generic, x86_64 / gtk 3.24.20
Java vendor: Ubuntu
Java runtime version: 11.0.11+9-Ubuntu-0ubuntu2.20.04
Java version: 11.0.11
The steps i followed;
1 - i downloaded Codeigniter 4.1.4
2 - unzipped in a folder
3 - then create php project from an existing source...selected the folder with all the Codeigniter content.
4 - Execute inside the folder compser install and update.
5 - Try to execute
Then i face this errors in the system folder.
Dont know how i can fix this.
The same process i did with PhpStorm, and all went fine.
I used php 7.4.
Any ideas help would be apreciated.
[Updated on: Sat, 25 September 2021 09:26] Report message to a moderator
|
|
|
Re: Error with Codeigniter 4.1.4 [message #1844859 is a reply to message #1844791] |
Tue, 28 September 2021 08:43 |
Alex McKee Messages: 5 Registered: September 2021 |
Junior Member |
|
|
Hi Eduardo,
I have set up a virtual machine matching your described environment, and duplicated what you are describing with the system folder. You don't need to worry about those autoload errors in the system folder. Eclipse PDT is detecting that the "Config\Services" class is not autoloadable, but CodeIgniter has its own autoloader (see system/bootstrap.php which requires the autoloader and requires and instantiates app/Config/Autoload.php to configure it). Eclipse can't know about this custom autoloader (or at least, without static analysis) so it is trying to warn you that some namespaces aren't autoloadable with e.g. composer.
When you say that you tried to execute, in what way did you try to execute - outside, using e.g. apache, or using Eclipse's "Run as ..."? For myself, I started a PHP development web server (using php -S localhost:8000), configured the default web server in Eclipse accordingly and then used Eclipse's "Run as PHP Web Application" to execute the index file and the framework ran normally.
Hope this helps.
|
|
|
Powered by
FUDForum. Page generated in 0.01984 seconds