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.

[Error]

Call to undefined function CodeIgniter\locale_set_default()

at SYSTEMPATH/CodeIgniter.php:181

Backtrace:
  1    SYSTEMPATH/bootstrap.php:146
       CodeIgniter\CodeIgniter()->initialize()

  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

Done.

Leave a Reply

Your email address will not be published.