---
title: "Fehler: Warning: setlocale(): Passing locale category ..."
url: "https://www.typo3.net/d/11819-fehler-warning-setlocale-passing-locale-category"
source: "typo3.net"
tags: ["Hosting","Installation & Update","Frage","PHP"]
created: "2004-05-25"
last_reply: "2004-06-04"
replies: 3
solved: false
page: 1
pages: 1
lang: "de"
---

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

Hosting › Installation & Update · 3 Antworten · gestartet 2004-05-25

## Eröffnungsbeitrag

**MrGunn** · 2004-05-25 · [Beitrag #1](https://www.typo3.net/d/11819-fehler-warning-setlocale-passing-locale-category/1)

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

## Antworten

### [#2](https://www.typo3.net/d/11819-fehler-warning-setlocale-passing-locale-category/2) · ChrF · 2004-05-25

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

```php
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

```php
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

### [#3](https://www.typo3.net/d/11819-fehler-warning-setlocale-passing-locale-category/3) · MrGunn · 2004-05-25

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

Gruß, Fabian

### [#4](https://www.typo3.net/d/11819-fehler-warning-setlocale-passing-locale-category/4) · Marc82 · 2004-06-04

IHR SEID MEINE RETTUNG =) DANKE !!!  :D

Marc

---

Quelle: „Fehler: Warning: setlocale(): Passing locale category ...“, typo3.net, https://www.typo3.net/d/11819-fehler-warning-setlocale-passing-locale-category
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
