¿Que son estos erro...
 
Avisos
Vaciar todo

¿Que son estos errores?

7 Respuestas
3 Usuarios
0 Reactions
100 Visitas
Respuestas: 59
Trusted Member
Topic starter
 

Buenos días.
He conseguido mejorar la velocidad de mi web bastante, pero he observado que tengo algunos errores (infinitamente menos que antes) en error.log. Queria saber que errores son y si son graves o lo puedo dejar como esta, ya que, creo que la web va bien. Como tengo un cron que elimina l error.log si se genera mucho se van borrando sin problema.

[10-Jul-2019 12:03:21 Europe/Madrid] PHP Warning: math: function call reduction not allowed in /home2/gblaes/public_html/tools/smarty/plugins/function.math.php on line 53
[10-Jul-2019 12:03:21 Europe/Madrid] PHP Notice: Undefined index: show_escalados in /home2/gblaes/public_html/cache/smarty/compile/42/b7/80/42b780c0fcd36cfa17f94cf1844b2d086169dff5.file.product.tpl.php on line 682
[10-Jul-2019 12:03:21 Europe/Madrid] PHP Notice: Trying to get property of non-object in /home2/gblaes/public_html/cache/smarty/compile/42/b7/80/42b780c0fcd36cfa17f94cf1844b2d086169dff5.file.product.tpl.php on line 682
[10-Jul-2019 12:03:32 Europe/Madrid] PHP Warning: math: function call reduction not allowed in /home2/gblaes/public_html/tools/smarty/plugins/function.math.php on line 53
[10-Jul-2019 12:03:32 Europe/Madrid] PHP Notice: Undefined index: show_escalados in /home2/gblaes/public_html/cache/smarty/compile/42/b7/80/42b780c0fcd36cfa17f94cf1844b2d086169dff5.file.product.tpl.php on line 682
[10-Jul-2019 12:03:32 Europe/Madrid] PHP Notice: Trying to get property of non-object in /home2/gblaes/public_html/cache/smarty/compile/42/b7/80/42b780c0fcd36cfa17f94cf1844b2d086169dff5.file.product.tpl.php on line 682
[10-Jul-2019 12:06:45 Europe/Madrid] PHP Warning: math: function call reduction not allowed in /home2/gblaes/public_html/tools/smarty/plugins/function.math.php on line 53
[10-Jul-2019 12:06:45 Europe/Madrid] PHP Notice: Undefined index: show_escalados in /home2/gblaes/public_html/cache/smarty/compile/42/b7/80/42b780c0fcd36cfa17f94cf1844b2d086169dff5.file.product.tpl.php on line 682
[10-Jul-2019 12:06:45 Europe/Madrid] PHP Notice: Trying to get property of non-object in /home2/gblaes/public_html/cache/smarty/compile/42/b7/80/42b780c0fcd36cfa17f94cf1844b2d086169dff5.file.product.tpl.php on line 682
[10-Jul-2019 12:11:01 Europe/Madrid] PHP Warning: math: function call reduction not allowed in /home2/gblaes/public_html/tools/smarty/plugins/function.math.php on line 53
[10-Jul-2019 12:11:01 Europe/Madrid] PHP Notice: Undefined index: show_escalados in /home2/gblaes/public_html/cache/smarty/compile/42/b7/80/42b780c0fcd36cfa17f94cf1844b2d086169dff5.file.product.tpl.php on line 682
[10-Jul-2019 12:11:01 Europe/Madrid] PHP Notice: Trying to get property of non-object in /home2/gblaes/public_html/cache/smarty/compile/42/b7/80/42b780c0fcd36cfa17f94cf1844b2d086169dff5.file.product.tpl.php on line 682
[10-Jul-2019 12:11:44 Europe/Madrid] PHP Notice: Undefined index: show_escalados in /home2/gblaes/public_html/cache/smarty/compile/42/b7/80/42b780c0fcd36cfa17f94cf1844b2d086169dff5.file.product.tpl.php on line 682
[10-Jul-2019 12:11:44 Europe/Madrid] PHP Notice: Trying to get property of non-object in /home2/gblaes/public_html/cache/smarty/compile/42/b7/80/42b780c0fcd36cfa17f94cf1844b2d086169dff5.file.product.tpl.php on line 682
[10-Jul-2019 12:16:15 Europe/Madrid] PHP Warning: math: function call reduction not allowed in /home2/gblaes/public_html/tools/smarty/plugins/function.math.php on line 53
[10-Jul-2019 12:16:15 Europe/Madrid] PHP Notice: Undefined index: show_escalados in /home2/gblaes/public_html/cache/smarty/compile/42/b7/80/42b780c0fcd36cfa17f94cf1844b2d086169dff5.file.product.tpl.php on line 682
[10-Jul-2019 12:16:15 Europe/Madrid] PHP Notice: Trying to get property of non-object in /home2/gblaes/public_html/cache/smarty/compile/42/b7/80/42b780c0fcd36cfa17f94cf1844b2d086169dff5.file.product.tpl.php on line 682
[10-Jul-2019 12:25:43 Europe/Madrid] PHP Warning: math: function call reduction not allowed in /home2/gblaes/public_html/tools/smarty/plugins/function.math.php on line 53
[10-Jul-2019 12:25:43 Europe/Madrid] PHP Notice: Undefined index: show_escalados in /home2/gblaes/public_html/cache/smarty/compile/42/b7/80/42b780c0fcd36cfa17f94cf1844b2d086169dff5.file.product.tpl.php on line 682
[10-Jul-2019 12:25:43 Europe/Madrid] PHP Notice: Trying to get property of non-object in /home2/gblaes/public_html/cache/smarty/compile/42/b7/80/42b780c0fcd36cfa17f94cf1844b2d086169dff5.file.product.tpl.php on line 682
[10-Jul-2019 12:25:49 Europe/Madrid] PHP Warning: math: function call reduction not allowed in /home2/gblaes/public_html/tools/smarty/plugins/function.math.php on line 53
[10-Jul-2019 12:25:49 Europe/Madrid] PHP Notice: Undefined index: show_escalados in /home2/gblaes/public_html/cache/smarty/compile/42/b7/80/42b780c0fcd36cfa17f94cf1844b2d086169dff5.file.product.tpl.php on line 682
[10-Jul-2019 12:25:49 Europe/Madrid] PHP Notice: Trying to get property of non-object in /home2/gblaes/public_html/cache/smarty/compile/42/b7/80/42b780c0fcd36cfa17f94cf1844b2d086169dff5.file.product.tpl.php on line 682
[10-Jul-2019 12:28:33 Europe/Madrid] PHP Warning: math: function call reduction not allowed in /home2/gblaes/public_html/tools/smarty/plugins/function.math.php on line 53
[10-Jul-2019 12:28:33 Europe/Madrid] PHP Notice: Undefined index: show_escalados in /home2/gblaes/public_html/cache/smarty/compile/42/b7/80/42b780c0fcd36cfa17f94cf1844b2d086169dff5.file.product.tpl.php on line 682
[10-Jul-2019 12:28:33 Europe/Madrid] PHP Notice: Trying to get property of non-object in /home2/gblaes/public_html/cache/smarty/compile/42/b7/80/42b780c0fcd36cfa17f94cf1844b2d086169dff5.file.product.tpl.php on line 682
[10-Jul-2019 12:30:28 Europe/Madrid] PHP Warning: math: function call reduction not allowed in /home2/gblaes/public_html/tools/smarty/plugins/function.math.php on line 53
[10-Jul-2019 12:30:28 Europe/Madrid] PHP Notice: Undefined index: show_escalados in /home2/gblaes/public_html/cache/smarty/compile/42/b7/80/42b780c0fcd36cfa17f94cf1844b2d086169dff5.file.product.tpl.php on line 682
[10-Jul-2019 12:30:28 Europe/Madrid] PHP Notice: Trying to get property of non-object in /home2/gblaes/public_html/cache/smarty/compile/42/b7/80/42b780c0fcd36cfa17f94cf1844b2d086169dff5.file.product.tpl.php on line 682

URL del sitio: Contenido solo visible a usuarios registrados


 
Respondido : 10/07/2019 12:44 pm
Pepe
 Pepe
Respuestas: 41108
Illustrious Member Admin
 

Hola Yongwei.

No son errores son avisos de PHP

Por ejemplo la línea:
Contenido solo visible a usuarios registrados

Si se revisa el archivo en al línea 682 veo lo siguiente:

tpl_vars['show_escalados']

Esto hace referencia algún módulo de terceros que no es compatible con la versión de PHP que tienes instalada.

Puedes probar a bajar la version de PHP e instalar la 5.6.
-> https://guias.webempresa.com/preguntas-frecuentes/cambiar-la-version-php/

Una vez comprobado que la web carga bien, vacia la cache de prestashop y elimina el contenido que tienes en el archivo error.log

Un saludo


 
Respondido : 10/07/2019 1:29 pm
Respuestas: 59
Trusted Member
Topic starter
 

Buenos días.
Gracias por responderme.
¿Se puede saber que módulo es el que esta fallando?
Si no es importante siempre puedo desinstalarlo.

Lo raro es que tengo la Cache es NO y desactivada la Smarty. No debería de generar esos errores de smartu, creo, no?

Saludos.


 
Respondido : 10/07/2019 1:34 pm
Pepe
 Pepe
Respuestas: 41108
Illustrious Member Admin
 

Hola.

Complicado.
por ejemplo:

PHP Warning: math: function call reduction not allowed in /home2/gblaes/public_html/tools/smarty/plugins/function.math.php on line 53

esto quiere decir que hay una variable el la linea 53 de ese archivo que no está definida, es decir se espera un valor para esa variable pero no se encuentra ese dato, puede ser un módulo o una función a medida ( Casi me decanto por eso ), no se si algun programador o diseñador realizo alguna modificación o añadido algún módulo personalizado que no se actualiza

Ese es el único que tienes con Warning, los demás son solo noticias, es decir no son errores solo avisos y no afectan al funcionamiento de la web.

estos avisos por lo que puedo ver es por lo mismo no está definida una variable y creo que puede venir por lo anterior, es decir, están relacionados.

PHP Notice: Undefined index: show_escalados in /home2/gblaes/public_html/cache/smarty/compile/42/b7/80/42b780c0fcd36cfa17f94cf1844b2d086169dff5.file.product.tpl.php on line 682

No se si te sonará esto " tpl_vars['show_escalados'] " show_escalados
Al parecer es alguna función para descuentos por volumen y es esta la que está provocando ese aviso.

Un saludo


 
Respondido : 10/07/2019 3:49 pm
Respuestas: 59
Trusted Member
Topic starter
 

Buenas tardes.
Pues la verdad que no me suena nada.
Antes de web empresa estabamos con una empresa llamda "Big Buy" y no se si habran modificado algo pero no tengo ni idea de el que han modificado o si han o no modificado algo.

No encuentro nada que indique que este recopilando algo.

..... 🙁


 
Respondido : 10/07/2019 4:42 pm
Jhon
 Jhon
Respuestas: 44989
Soporte CMS Webempresa
 

Hola

El mensaje que obtienes, efectivamente tal como comenta Pepe es al parecer por una variable no definida, tal como se comenta en : https://github.com/smarty-php/smarty/issues/288

Ten en cuenta que es una advertencia, no es que tu sitiio dejará de funcionar debido a esto.
De manera general puedes ir probando desactivando módulos hasta ver si alguno te causa el problema, empieza por los módulos que no estas usando o de los que podrías prescindir.

Saludos.


 
Respondido : 10/07/2019 5:14 pm
Respuestas: 59
Trusted Member
Topic starter
 

Ok gracias.
Empezaré a descativar algunos a ver si lo soluciono.
Si se os ocurre algo os leo, Graicas.
Un saludo.


 
Respondido : 10/07/2019 5:39 pm