benbyf Posted November 21, 2018 Share Posted November 21, 2018 I always seem to get this warning on every new install of PW on my Ubuntu 14 box with Digital Ocean. The servers are usually based in the UK and I was wondering if I should be adding something other than the below in the config? Is there a UK based locale code? Quick Google didnt come up with much. Warning: your server locale is undefined and may cause issues. Please add this to /site/config.php file (adjust “en_US.UTF-8” as needed): setlocale(LC_ALL,'en_US.UTF-8'); Added to the config file: setlocale(LC_ALL,'en_US.UTF-8'); Link to comment Share on other sites More sharing options...
netcarver Posted November 21, 2018 Share Posted November 21, 2018 @benbyf I use this in my config.php file... setlocale(LC_ALL,'en_GB.UTF-8'); Link to comment Share on other sites More sharing options...
Ivan Gretsky Posted November 21, 2018 Share Posted November 21, 2018 Never done it, but think it should be done like this or something... If there will be a number sites on one server which would require different locales it might be a better solution to set it in config.php for each one though. Link to comment Share on other sites More sharing options...
benbyf Posted November 21, 2018 Author Share Posted November 21, 2018 Thanks both, think that'll do it! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now