Avatar Image
Foro por via intravenosa
Foro por via intravenosa
A partir de hoy me ha aparecido este error:

Warning: setlocale(): Passing locale category name as string is deprecated. Use the LC_* -constants instead. in /home/webcindario/olimpiacf/mainfile.php on line 593

Antes no había aparecido ¿cómo soluciono esto? ¿qué es lo que pasa?
Avatar Image
Foro por via intravenosa
Foro por via intravenosa
Uuuuffff es peor de lo que pensaba también he visto este mar de errores:

Warning: setlocale(): Passing locale category name as string is deprecated. Use the LC_* -constants instead. in /home/webcindario/olimpiacf/blocks/block-Old_Articles.php on line 58

Warning: setlocale(): Passing locale category name as string is deprecated. Use the LC_* -constants instead. in /home/webcindario/olimpiacf/blocks/block-Old_Articles.php on line 58

Warning: setlocale(): Passing locale category name as string is deprecated. Use the LC_* -constants instead. in /home/webcindario/olimpiacf/blocks/block-Old_Articles.php on line 58

Warning: setlocale(): Passing locale category name as string is deprecated. Use the LC_* -constants instead. in /home/webcindario/olimpiacf/blocks/block-Old_Articles.php on line 58

Warning: setlocale(): Passing locale category name as string is deprecated. Use the LC_* -constants instead. in /home/webcindario/olimpiacf/blocks/block-Old_Articles.php on line 58

Warning: setlocale(): Passing locale category name as string is deprecated. Use the LC_* -constants instead. in /home/webcindario/olimpiacf/blocks/block-Old_Articles.php on line 58

Warning: setlocale(): Passing locale category name as string is deprecated. Use the LC_* -constants instead. in /home/webcindario/olimpiacf/blocks/block-Old_Articles.php on line 58

Warning: setlocale(): Passing locale category name as string is deprecated. Use the LC_* -constants instead. in /home/webcindario/olimpiacf/blocks/block-Old_Articles.php on line 58

Warning: setlocale(): Passing locale category name as string is deprecated. Use the LC_* -constants instead. in /home/webcindario/olimpiacf/blocks/block-Old_Articles.php on line 58

Warning: setlocale(): Passing locale category name as string is deprecated. Use the LC_* -constants instead. in /home/webcindario/olimpiacf/blocks/block-Old_Articles.php on line 58

Warning: setlocale(): Passing locale category name as string is deprecated. Use the LC_* -constants instead. in /home/webcindario/olimpiacf/blocks/block-Old_Articles.php on line 58

Warning: setlocale(): Passing locale category name as string is deprecated. Use the LC_* -constants instead. in /home/webcindario/olimpiacf/blocks/block-Old_Articles.php on line 58

Warning: setlocale(): Passing locale category name as string is deprecated. Use the LC_* -constants instead. in /home/webcindario/olimpiacf/blocks/block-Old_Articles.php on line 58

Warning: setlocale(): Passing locale category name as string is deprecated. Use the LC_* -constants instead. in /home/webcindario/olimpiacf/blocks/block-Old_Articles.php on line 58

Warning: setlocale(): Passing locale category name as string is deprecated. Use the LC_* -constants instead. in /home/webcindario/olimpiacf/blocks/block-Old_Articles.php on line 58

Warning: setlocale(): Passing locale category name as string is deprecated. Use the LC_* -constants instead. in /home/webcindario/olimpiacf/blocks/block-Old_Articles.php on line 58

Warning: setlocale(): Passing locale category name as string is deprecated. Use the LC_* -constants instead. in /home/webcindario/olimpiacf/blocks/block-Old_Articles.php on line 58

Warning: setlocale(): Passing locale category name as string is deprecated. Use the LC_* -constants instead. in /home/webcindario/olimpiacf/blocks/block-Old_Articles.php on line 58

Warning: setlocale(): Passing locale category name as string is deprecated. Use the LC_* -constants instead. in /home/webcindario/olimpiacf/blocks/block-Old_Articles.php on line 58

Warning: setlocale(): Passing locale category name as string is deprecated. Use the LC_* -constants instead. in /home/webcindario/olimpiacf/blocks/block-Old_Articles.php on line 58

Warning: setlocale(): Passing locale category name as string is deprecated. Use the LC_* -constants instead. in /home/webcindario/olimpiacf/blocks/block-Old_Articles.php on line 58

Warning: setlocale(): Passing locale category name as string is deprecated. Use the LC_* -constants instead. in /home/webcindario/olimpiacf/blocks/block-Old_Articles.php on line 58

Warning: setlocale(): Passing locale category name as string is deprecated. Use the LC_* -constants instead. in /home/webcindario/olimpiacf/blocks/block-Old_Articles.php on line 58

Warning: setlocale(): Passing locale category name as string is deprecated. Use the LC_* -constants instead. in /home/webcindario/olimpiacf/blocks/block-Old_Articles.php on line 58

Warning: setlocale(): Passing locale category name as string is deprecated. Use the LC_* -constants instead. in /home/webcindario/olimpiacf/blocks/block-Old_Articles.php on line 58

Warning: setlocale(): Passing locale category name as string is deprecated. Use the LC_* -constants instead. in /home/webcindario/olimpiacf/blocks/block-Old_Articles.php on line 58

Warning: setlocale(): Passing locale category name as string is deprecated. Use the LC_* -constants instead. in /home/webcindario/olimpiacf/blocks/block-Old_Articles.php on line 58

Warning: setlocale(): Passing locale category name as string is deprecated. Use the LC_* -constants instead. in /home/webcindario/olimpiacf/blocks/block-Old_Articles.php on line 58

Warning: setlocale(): Passing locale category name as string is deprecated. Use the LC_* -constants instead. in /home/webcindario/olimpiacf/blocks/block-Old_Articles.php on line 58

Warning: setlocale(): Passing locale category name as string is deprecated. Use the LC_* -constants instead. in /home/webcindario/olimpiacf/blocks/block-Old_Articles.php on line 58
jarvis79
Usuario Novato
Usuario Novato

Han subido de versión de PHP supongo, en versiones anteriores set_locale se utilizaba asi:

setlocale("LC_CTYPE",'es_ES');

Lo que dice ese error es que ya no hay que pasar el primer parámetro como string.

Entonces búsquen en su php adonde se usa setlocale ( ahí en el error les dice en qué archivo y en qué línea) y simplemente quitenle las comillas a la primer variable, debe quedar así:

setlocale(LC_CTYPE,'es_ES');

saludos

Avatar Image
Moderador del foro
Moderador del foro
Escrito originalmente por jarvis79

Han subido de versión de PHP supongo, en versiones anteriores set_locale se utilizaba asi:

setlocale("LC_CTYPE",'es_ES');

Lo que dice ese error es que ya no hay que pasar el primer parámetro como string.

Entonces búsquen en su php adonde se usa setlocale ( ahí en el error les dice en qué archivo y en qué línea) y simplemente quitenle las comillas a la primer variable, debe quedar así:

setlocale(LC_CTYPE,'es_ES');

saludos

El tema es de 2003, no revivas temas tan viejos.

Este tema fue cerrado y no se pueden escribir nuevas respuestas
Opciones:
Ir al subforo:
Permisos:
TU NO PUEDES Escribir nuevos temas
TU NO PUEDES Responder a los temas
TU NO PUEDES Editar tus propios mensajes
TU NO PUEDES Borrar tus propios mensajes
Temas similares
No se han encontrado temas similares