-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: Missing function locale_set_default(...) #3171
Comments
Please install |
Hi there, I installed intl extension but still receiving this error. |
intl extension required for php cli also. |
can you verify it? |
It show this when i check intl extension |
I am using ubuntu 20.04 you shall install php7.4-intl by running the following command: |
I had this issue using XAMPP on Windows 10. |
Issue resolved in Ubuntu edit php.ini file located at remove ; before "extension=intl" means should become extension=intl |
That worked fine but another thing that worked too was setting up a virtual host configuration for my local domain and adding it into the |
try to change in /system/Codeignater.php line 184 become:
|
thanks... solved my issue |
You're welcome, i'm happy hear it |
Funcionó! Thanx man! |
Permisi mau tanya dong, kalau mengalami eror seperti ini bagaimana solusinya ya? Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0 Mohon bantuanya semua, terima kasih |
Hi Thanks alot. It solved my issued, when I deploy on my hosting. |
Lihat deh jawaban #3171 (comment) |
tapi di aku kok ga ada folder system? dimana ya itu file codeiniter 4? |
Thank u so much, it works on my project!
…On Mon, Aug 1, 2022, 3:05 PM kenjis ***@***.***> wrote:
Check phpinfo() if you have intlextension installed. If not install it.
[image: Screenshot 2022-08-01 16 57 41]
<https://user-images.githubusercontent.com/87955/182101184-97d6cadb-b787-453c-b812-931fc6c0c69e.png>
On CLI you can check with php -m:
$ php -m | grep intl
intl
All you need to do is to install intlextension. Because it is a necessary
extension.
To skip locale_set_default() code create another problem.
—
Reply to this email directly, view it on GitHub
<#3171 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ARJZYV35C5JBH6ZRVMFVPCLVW6AOHANCNFSM4OJAI2CA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Download:
git clone https://github.com/codeigniter4/CodeIgniter4.git
File:
./system/CodeIgniter/CodeIgniter.php
Output:
Fatal error: Uncaught Error: Call to undefined function CodeIgniter\locale_set_default() in /var/www/CodeIgniter4/system/CodeIgniter.php:184
Stack trace:
#0 /var/www/CodeIgniter4/system/bootstrap.php(181): CodeIgniter\CodeIgniter->initialize()
#1 /var/www/CodeIgniter4/public/index.php(36): require('/var/www/CodeIg...')
#2 {main}
thrown in /var/www/CodeIgniter4/system/CodeIgniter.php on line 184
Fix:
/**
* Handles some basic app and environment setup.
*/
public function initialize()
{
// Set default locale on the server
// John REMOVED MISSING FUNCTION locale_set_default
// locale_set_default($this->config->defaultLocale ?? 'en');
The text was updated successfully, but these errors were encountered: