Welcome Guest, Not a member yet? Register   Sign In
php parse error
#1

Hi !
I have this error
Parse error: syntax error, unexpected token ")" in /home/mywork/vendor/codeigniter4/framework/system/Autoloader/Autoloader.php on line 165
because of the line
spl_autoload_register($this->loadClassmap(...), true);
I am running codeigniter 4.6.0 on php8.0.
I spent hours on this error and now I ask some help because I really have no idea how to fix it !!!
Someone a solution ?
Thanks in advance.
Reply
#2

(This post was last modified: 03-26-2025, 02:12 AM by InsiteFX.)

PHP is 8.0 is out of service Nov 2023, update your PHP Version to 8.1 or higher.

But you may have a misplaced ) somewhere in your code.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#3

v4.6 requires PHP 8.1 or higher. Update your PHP version. The error is about first class callables which are available in PHP 8.1
Reply
#4

Thanks guys it works !
Reply




Theme © iAndrew 2016 - Forum software by © MyBB