Welcome Guest, Not a member yet? Register   Sign In
Codeigniter 4 and PHP 8
#11

(01-05-2021, 04:32 AM)ViLar Wrote:
(01-04-2021, 11:33 PM)John_Betong Wrote: I have just git cloned the latest CI4 Version and it works OK with PHP phpversion: 8.0.0.


Main problem I face when upgrading my CI4 apps to PHP8.0 is this : 

[Image: 103UQIe.png]

Aren't you facing it?

Im getting a similar Error when using php spark :

Type:        ErrorException
Message:    Required parameter $from follows optional parameter $verbs
Filename:    C:\xampp\htdocs\ardritkWebsite\vendor\codeigniter4\framework\system\Router\RouteCollection.php
Line Number: 1017
Reply
#12

Anyone wanting to use CI4 in PHP 8 should be using the 4.1 branch. Latest develop should technically work but it is not advised.
Release date will have to be determined by the Foundation but in my opinion we are ready for 4.0.5 and 4.1, both with PHP 8 support.
Reply
#13

(This post was last modified: 04-09-2022, 07:31 AM by zoom360.)

In php8, I can't use Modeling in config. With php7, I can call in config file:
PHP Code:
public static $registrars = [
        '\App\Models\AppConfig'
    ]; 
And call model or Entity in AppConfig.php file. However, It's return "HTTP ERROR 500" in php8.
Reply
#14

Error 500 is usually a Server Error but could also be a programing Error.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply




Theme © iAndrew 2016 - Forum software by © MyBB