Skip to content

Bug: Missing function locale_set_default(...) #3171

Closed
@John-Betong

Description

@John-Betong

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');

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugVerified issues on the current code behavior or pull requests that will fix them

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions