Skip to content
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

Missing function locale_set_default(...) in Codeigniter 4 #3953

Closed
Ansulsingkang opened this issue Dec 2, 2020 · 3 comments
Closed

Missing function locale_set_default(...) in Codeigniter 4 #3953

Ansulsingkang opened this issue Dec 2, 2020 · 3 comments

Comments

@Ansulsingkang
Copy link

try to change in /system/Codeignater.php line 184
locale_set_default($this->config->defaultLocale ?? 'en');

become:

if( function_exists('locale_set_default' ) ) :
    locale_set_default($this->config->defaultLocale ?? 'en');
    endif;

Originally posted by @Ansulsingkang in #3171 (comment)

@Ansulsingkang Ansulsingkang changed the title try to change in /system/Codeignater.php line 184 Missing function locale_set_default(...) in Codeigniter 4 Dec 2, 2020
@paulbalandan
Copy link
Member

That is a hack and won't be accepted. Please install intl and its dependencies for the function to work.

@Ansulsingkang
Copy link
Author

Can you show us how to install it in cpanel?

@paulbalandan
Copy link
Member

paulbalandan commented Dec 2, 2020

You should ask your cpanel provider if intl is installed. Then in your custom php.ini add the line extension=intl.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants