user7875 LiteCart Fan Şundan United States May 2020 tarihinden beri üye user7875 17 May 2020 20:32 This is a fresh install (ver 2.2.2) on a windows pc, being used to test the software. No matter what charset I set the database to, I [u]ALWAYS[/u] get the following when accessing the admin panel [i]Notice: Unknown charset for system locale (en_US.utf8) in ~/includes/library/lib_language.inc.php (Line 297)[/i] I did not select that char set "en_US.utf8" during installation and .... regardless of what I set it to (either in phpadmin, or Languages/Storage Encloding), the admin panel always gives the exact same error of: [i]Notice: Unknown charset for system locale (en_US.utf8) in ~/includes/library/lib_language.inc.php (Line 297)[/i] I guess I could disable the NOTICES in php.ini but I would rather fix the issue. Any help would be appreciated. -pat-
tim Founder Şundan Sweden May 2013 tarihinden beri üye tim 17 May 2020 22:21 Hmm.. you say you are on windows but your error message refers to a Linux locale. Before I start debugging. Make sure you have a good understanding of locales here: https://wiki.litecart.net/system_locale
user7875 LiteCart Fan Şundan United States May 2020 tarihinden beri üye user7875 17 May 2020 22:56 Thank you for replying: I am definitely on a windows 10 server - It's my local development pc - Once developed or tested, I move it to a remote host (either A2Hosting or InMotion) - I setup a apache webserver using AMPPS, php 7.18, Server version: 5.6.37 - MySQL Community Server (GPL) Like I mentioned earlier.... I can go in to phpmyadmin, change the Collation to anything, and the error message remains the same. Ditto with changing via admin Language/Storage Encoding - changing it to anything always produces the exact same message. It's a localhost so unless we use something like TeamViewer (which I have no problem doing), you won't be able to view the issue. fyi: I installed Litecart by downloading from here, then unzipping, then using phpadmin to create the db, then running the install. Question: What part of the message makes you say that it is a Linux locale? -pat-
user7875 LiteCart Fan Şundan United States May 2020 tarihinden beri üye user7875 17 May 2020 23:59 I will try and attached three screenshots. Lite1.png - shows the error messages: [i]Notice: Unknown charset for system locale (en_US.utf8) in ~/includes/library/lib_language.inc.php (Line 297)[/i] Lite2.png shows where I changed the charset to latin1_general_ci Lite3.png shows the reload after making the change to lati11_general_ci - you'll notice, it still has the exact same error message: [i]Notice: Unknown charset for system locale (en_US.utf8) in ~/includes/library/lib_language.inc.php (Line 297)[/i]
user7875 LiteCart Fan Şundan United States May 2020 tarihinden beri üye user7875 18 May 2020 00:01 btw: I deleted everything and reinstalled the 2.2.3 version - the screen shots are from that version - the only dif in 2.2.2 is the line number of the issue
tim Founder Şundan Sweden May 2013 tarihinden beri üye tim 18 May 2020 00:57 Set the right locale in Admin -> Languages -> Edit Language. Try en-US or english on Windows. Again, read the article. https://wiki.litecart.net/system_locale
user7875 LiteCart Fan Şundan United States May 2020 tarihinden beri üye user7875 18 May 2020 01:23 I was trying to change it in the wrong place. I was not editing the Language, I was editing the Storage Encoding. I have it working now with english_United States en-US and en_us both produced the same error Looks like we are all good now. Thank you for the support
tim Founder Şundan Sweden May 2013 tarihinden beri üye tim 19 May 2020 04:10 Oh super great! You are making progress now :)
mustalainen Developer Şundan Sweden Eyl 2017 tarihinden beri üye mustalainen 4 Oca 2022 17:28 Hi I have a similar error on 2.3.1, but I get this error code: No predefined charset mapped for Windows locale sv_SE.utf8. Attempting automatic detection instead. in ~/includes/library/lib_language.inc.php (Line 313) Running an Windows machine.
tim Founder Şundan Sweden May 2013 tarihinden beri üye tim 4 Oca 2022 18:07 @mustalainen Did you not see the wiki link in this thread? https://wiki.litecart.net/system_locale
mustalainen Developer Şundan Sweden Eyl 2017 tarihinden beri üye mustalainen 4 Oca 2022 19:03 Yes I did, but either I'm too stupid or it does not work ;)
tim Founder Şundan Sweden May 2013 tarihinden beri üye tim 4 Oca 2022 19:27 You said Windows. Did you try sv-SE, sve_swe, or swedish_Sweden?
mustalainen Developer Şundan Sweden Eyl 2017 tarihinden beri üye mustalainen 4 Oca 2022 20:16 I was an idiot, and didnt understand I should try each of them in the system box. thanks Tim!