Skip to content Skip to sidebar Skip to footer

Error Call to undefined function CodeIgniter locale_set_default()

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')
Error Call to undefined function CodeIgniter locale_set_default()


How to fix it?

1. Open terminal
2. 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
3. Done.

Post a Comment for " Error Call to undefined function CodeIgniter locale_set_default()"