0
votes

I have installed the latest version of xampp with PHP 8.0 and downloaded the latest version of codeigniter 4 and tried to run it. But it is showing controller method not found how to fix this issue. I am helpless

Here is the Error Image

1
Please provide more details on the error stack trace. - Hamza Abdaoui
When you use a third-party framework you need to run it on the PHP versions the framework supports. According to their download page it barely supports PHP 5.6+ (the 7.2 version is under development, or they forgot to update docs). - Álvaro González
Their current master branch claims to support PHP/8.0. What version are you using? Did your code (which you haven't shared) really work in earlier versions? - Álvaro González
@ÁlvaroGonzález even thou it still says in the downloads page that codeigniter 4 is the up and coming version that version is already the current one and by the tags OP posted is the one he's using. So PHP 8 is supported. Now he just needs to give us more information about the errors he's getting. - marcogmonteiro
@marcogmonteiro You're right. "Latest version" must refer to the 4.0.4 release and its composer.json file states "php": ">=7.2", so 8.0 is either unsupported or not tested. But it'd only be a PHP/8 issue if the same code works in 7.2+, which is unclear. - Álvaro González

1 Answers

0
votes

XAMPP 8.0.0 no es compatible con CodeIgniter 3 o 4 use XAMPP 7.4.13