Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

codeigniter 4 running error first time with xampp

Tags:

php

Uncaught Error: Call to undefined function CodeIgniter\locale_set_default() 
in C:\xampp\htdocs\sunpay-ci4\system\CodeIgniter.php:184 
Stack trace: 
#0 C:\xampp\htdocs\sunpay-ci4\system\bootstrap.php(181): CodeIgniter\CodeIgniter->initialize() 
#1 C:\xampp\htdocs\sunpay-ci4\public\index.php(36): require('C:\\xampp\\htdocs...') 
#2 {main} thrown in C:\xampp\htdocs\sunpay-ci4\system\CodeIgniter.php on line 184

I don't understand this error, the first page works if I drop this package.

like image 956
Pipo Leong Avatar asked Nov 28 '22 02:11

Pipo Leong


1 Answers

Try opening php.ini from the control panel: Apache row -> Config -> php.ini

Then enable intl extension by removing ; in front of extension=intl

Edit: the reason it fails is because the intl extension is disabled by default in xampp

like image 172
Hajime Saki Avatar answered Dec 09 '22 06:12

Hajime Saki