Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » Error with Codeigniter 4.1.4(I cant execute php project with Codeigniter)
Error with Codeigniter 4.1.4 [message #1844791] Sat, 25 September 2021 09:21 Go to next message
Eduardo Gutierrez is currently offline Eduardo GutierrezFriend
Messages: 34
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.

index.php/fa/41020/0/

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 Go to previous message
Alex McKee is currently offline Alex McKeeFriend
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.

index.php/fa/41038/0/

Hope this helps.
Previous Topic:How to prevent token matching inside strings
Next Topic:How to serve PHP pages on jetty server with Apache Karaf?
Goto Forum:
  


Current Time: Sun Dec 04 23:04:40 GMT 2022

Powered by FUDForum. Page generated in 0.02429 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top