Error Call to undefined function CodeIgniter locale_set_default()

Posted on

Call to undefined function CodeIgniter

This error occurs when I do “php spark serve”. The system I’m currently using is Linux Ubuntu with Xampp.


Call to undefined function CodeIgniter\locale_set_default()

at SYSTEMPATH/CodeIgniter.php:181

  1    SYSTEMPATH/bootstrap.php:146

  2    ROOTPATH/spark:45
       require('/home/neon/Documents/KERJA/PERUSAHAAN/DIGITA SCIENTIA/PROJECT/TANAH BUMBU/dlh-tanah-bumbu-master/vendor/codeigniter4/framework/system/bootstrap.php')

How to fix it?

Open terminaL. Because I’m using PHP version 8.0, I have to install the intl extension. Use the following command:

sudo apt install php8.0-intl


Leave a Reply

Your email address will not be published.