Postingan lainnya
Tidak Bisa Menjalankan PHP Spark Serve Ci 4 di Linux
PHP Fatal error: Uncaught Error: Call to undefined function CodeIgniter\locale_set_default() in /opt/lampp/htdocs/latihan_CI4/system/CodeIgniter.php:184
Stack trace:
#0 /opt/lampp/htdocs/latihan_CI4/system/bootstrap.php(181): CodeIgniter\CodeIgniter->initialize()
#1 /opt/lampp/htdocs/latihan_CI4/spark(44): require('/opt/lampp/htdo...')
#2 {main}
thrown in /opt/lampp/htdocs/latihan_CI4/system/CodeIgniter.php on line 184
Tolong, Saya Mengalami Error seperti yang diatas...
1 Jawaban:
Jawaban Terpilih
<div>Berdasarkan link ini <a href="https://github.com/codeigniter4/CodeIgniter4/issues/3171">https://github.com/codeigniter4/CodeIgniter4/issues/3171</a> , error yg agan alami itu merupakan bug, tapi masih bisa diatasi kok, CI 4 membutuhkan extensi php intl, untuk cara installnya sendiri kalo agan pake Linux, stepnya berikut :<br><br></div><pre>1. Buka terminal
2. Login sebagai super user
3. Jalankan perintah sudo apt-get install -y php-intl
4. Restart</pre><div><br>referensi nya <a href="https://zoomadmin.com/HowToInstall/UbuntuPackage/php-intl">https://zoomadmin.com/HowToInstall/UbuntuPackage/php-intl</a> <br><a href="https://stackoverflow.com/questions/42243461/how-to-install-php-intl-extension-in-ubuntu-14-04">https://stackoverflow.com/questions/42243461/how-to-install-php-intl-extension-in-ubuntu-14-04</a><br><br>Semoga membantu!</div>