Zum Inhalt springen

Fehler: Warning: setlocale(): Passing locale category ...

Erstellt am 25. Mai 2004 · 3 Antworten · letzte Antwort am 4. Juni 2004

Tags: PHP, Frage

MrGunn ·

Hilfe 🙁 Seit einigen Stunden erscheint folgende Fehlermeldung auf meiner Site:

Warning: setlocale(): Passing locale category name as string is deprecated. Use the LC_* -constants instead. in /homepages/19/d89873936/htdocs/typo3_src-3.5.0/tslib/class.tslib_fe.php on line 1346

Warning: setlocale(): Passing locale category name as string is deprecated. Use the LC_* -constants instead. in /homepages/19/d123/htdocs/typo3_src-3.5.0/tslib/class.tslib_fe.php on line 1347

Warning: setlocale(): Passing locale category name as string is deprecated. Use the LC_* -constants instead. in /homepages/19/d123/htdocs/typo3_src-3.5.0/tslib/class.tslib_fe.php on line 1348

Warning: setlocale(): Passing locale category name as string is deprecated. Use the LC_* -constants instead. in /homepages/19/d123/htdocs/typo3_src-3.5.0/tslib/class.tslib_fe.php on line 1349

In der entsprechenden Datei sind das folgende Zeilen:

setlocale("LC_COLLATE",$this->config["config"]["locale_all"]);
setlocale("LC_CTYPE",$this->config["config"]["locale_all"]);
setlocale("LC_MONETARY",$this->config["config"]["locale_all"]);
setlocale("LC_TIME",$this->config["config"]["locale_all"]);

Ich kann damit leider nichts anfangen 🙁

Warum tritt dieser Fehler auf? Ich benutze Typo3 in der Version 3.5.0 - dieser Fehler kam plötzlich, ohne Änderungen die Schuld sein könnten.

Danke für Hilfe 🙂

Fabian

ChrF ·

Warscheinlich hat Dein Provider die PhP-Version geupdatet!! Bis du bei 1und1?

Du musst in den 4 Zeilen (ab 1346) der class.tslib_fe.php die Anführungszeichen um LC_XXX löschen, dann beschwert sich auch Typo3 nicht mehr!

Ändere die folgenden Zeilen von

setlocale("LC_COLLATE",$this->config["config"]["locale_all"]); 
setlocale("LC_CTYPE",$this->config["config"]["locale_all"]); 
setlocale("LC_MONETARY",$this->config["config"]["locale_all"]); 
setlocale("LC_TIME",$this->config["config"]["locale_all"]);

in

setlocale(LC_COLLATE,$this->config["config"]["locale_all"]); 
setlocale(LC_CTYPE,$this->config["config"]["locale_all"]); 
setlocale(LC_MONETARY,$this->config["config"]["locale_all"]); 
setlocale(LC_TIME,$this->config["config"]["locale_all"]);

So geht's bestimmt!

ChrF

MrGunn ·

Ja, bin bei 1und1. Der Tipp hat´s gebracht - vielen vielen Dank - war sehr wichtig für mich 🙂

Gruß, Fabian