[Solucionado] Pagina de Categorías - En Blanco

JDesing

Aprendiz de Prestashop
Hola, hace unos días que cada vez que intento acceder a una categoría de la web se queda la pagina en blanco. Sin embargo a la pagina principal y a la de los productos si entra.

He activado el Modo Debug y obtengo esto:

Insertar CODE, HTML o PHP:
Notice: Use of undefined constant PS_ROUND_HALF_DOWN - assumed 'PS_ROUND_HALF_DOWN' in /homepages/19/d533566015/htdocs/classes/Tools.php on line 1717

Notice: Use of undefined constant PS_ROUND_HALF_EVEN - assumed 'PS_ROUND_HALF_EVEN' in /homepages/19/d533566015/htdocs/classes/Tools.php on line 1718

Notice: Use of undefined constant PS_ROUND_HALF_ODD - assumed 'PS_ROUND_HALF_ODD' in /homepages/19/d533566015/htdocs/classes/Tools.php on line 1719

Notice: Use of undefined constant PS_ROUND_HALF_UP - assumed 'PS_ROUND_HALF_UP' in /homepages/19/d533566015/htdocs/classes/Tools.php on line 1721

Notice: Use of undefined constant PS_ROUND_HALF_UP - assumed 'PS_ROUND_HALF_UP' in /homepages/19/d533566015/htdocs/classes/Tools.php on line 1723

Notice: Use of undefined constant PS_ROUND_HALF_DOWN - assumed 'PS_ROUND_HALF_DOWN' in /homepages/19/d533566015/htdocs/classes/Tools.php on line 1717

Notice: Use of undefined constant PS_ROUND_HALF_EVEN - assumed 'PS_ROUND_HALF_EVEN' in /homepages/19/d533566015/htdocs/classes/Tools.php on line 1718

Notice: Use of undefined constant PS_ROUND_HALF_ODD - assumed 'PS_ROUND_HALF_ODD' in /homepages/19/d533566015/htdocs/classes/Tools.php on line 1719

Notice: Use of undefined constant PS_ROUND_HALF_UP - assumed 'PS_ROUND_HALF_UP' in /homepages/19/d533566015/htdocs/classes/Tools.php on line 1721

Notice: Use of undefined constant PS_ROUND_HALF_UP - assumed 'PS_ROUND_HALF_UP' in /homepages/19/d533566015/htdocs/classes/Tools.php on line 1723

Notice: Use of undefined constant PS_ROUND_HALF_DOWN - assumed 'PS_ROUND_HALF_DOWN' in /homepages/19/d533566015/htdocs/classes/Tools.php on line 1717

Notice: Use of undefined constant PS_ROUND_HALF_EVEN - assumed 'PS_ROUND_HALF_EVEN' in /homepages/19/d533566015/htdocs/classes/Tools.php on line 1718

Notice: Use of undefined constant PS_ROUND_HALF_ODD - assumed 'PS_ROUND_HALF_ODD' in /homepages/19/d533566015/htdocs/classes/Tools.php on line 1719

Notice: Use of undefined constant PS_ROUND_HALF_UP - assumed 'PS_ROUND_HALF_UP' in /homepages/19/d533566015/htdocs/classes/Tools.php on line 1721

Notice: Use of undefined constant PS_ROUND_HALF_UP - assumed 'PS_ROUND_HALF_UP' in /homepages/19/d533566015/htdocs/classes/Tools.php on line 1723

Notice: Use of undefined constant PS_ROUND_HALF_DOWN - assumed 'PS_ROUND_HALF_DOWN' in /homepages/19/d533566015/htdocs/classes/Tools.php on line 1717

Notice: Use of undefined constant PS_ROUND_HALF_EVEN - assumed 'PS_ROUND_HALF_EVEN' in /homepages/19/d533566015/htdocs/classes/Tools.php on line 1718

Notice: Use of undefined constant PS_ROUND_HALF_ODD - assumed 'PS_ROUND_HALF_ODD' in /homepages/19/d533566015/htdocs/classes/Tools.php on line 1719

Notice: Use of undefined constant PS_ROUND_HALF_UP - assumed 'PS_ROUND_HALF_UP' in /homepages/19/d533566015/htdocs/classes/Tools.php on line 1721

Notice: Use of undefined constant PS_ROUND_HALF_UP - assumed 'PS_ROUND_HALF_UP' in /homepages/19/d533566015/htdocs/classes/Tools.php on line 1723

Notice: Use of undefined constant PS_ROUND_HALF_DOWN - assumed 'PS_ROUND_HALF_DOWN' in /homepages/19/d533566015/htdocs/classes/Tools.php on line 1717

Notice: Use of undefined constant PS_ROUND_HALF_EVEN - assumed 'PS_ROUND_HALF_EVEN' in /homepages/19/d533566015/htdocs/classes/Tools.php on line 1718

Notice: Use of undefined constant PS_ROUND_HALF_ODD - assumed 'PS_ROUND_HALF_ODD' in /homepages/19/d533566015/htdocs/classes/Tools.php on line 1719

Notice: Use of undefined constant PS_ROUND_HALF_UP - assumed 'PS_ROUND_HALF_UP' in /homepages/19/d533566015/htdocs/classes/Tools.php on line 1721

Notice: Use of undefined constant PS_ROUND_HALF_UP - assumed 'PS_ROUND_HALF_UP' in /homepages/19/d533566015/htdocs/classes/Tools.php on line 1723

Notice: Use of undefined constant PS_ROUND_HALF_DOWN - assumed 'PS_ROUND_HALF_DOWN' in /homepages/19/d533566015/htdocs/classes/Tools.php on line 1717

Notice: Use of undefined constant PS_ROUND_HALF_EVEN - assumed 'PS_ROUND_HALF_EVEN' in /homepages/19/d533566015/htdocs/classes/Tools.php on line 1718

Notice: Use of undefined constant PS_ROUND_HALF_ODD - assumed 'PS_ROUND_HALF_ODD' in /homepages/19/d533566015/htdocs/classes/Tools.php on line 1719

Notice: Use of undefined constant PS_ROUND_HALF_UP - assumed 'PS_ROUND_HALF_UP' in /homepages/19/d533566015/htdocs/classes/Tools.php on line 1721

Notice: Use of undefined constant PS_ROUND_HALF_UP - assumed 'PS_ROUND_HALF_UP' in /homepages/19/d533566015/htdocs/classes/Tools.php on line 1723

Notice: Use of undefined constant PS_ROUND_HALF_DOWN - assumed 'PS_ROUND_HALF_DOWN' in /homepages/19/d533566015/htdocs/classes/Tools.php on line 1717

Notice: Use of undefined constant PS_ROUND_HALF_EVEN - assumed 'PS_ROUND_HALF_EVEN' in /homepages/19/d533566015/htdocs/classes/Tools.php on line 1718

Notice: Use of undefined constant PS_ROUND_HALF_ODD - assumed 'PS_ROUND_HALF_ODD' in /homepages/19/d533566015/htdocs/classes/Tools.php on line 1719

Notice: Use of undefined constant PS_ROUND_HALF_UP - assumed 'PS_ROUND_HALF_UP' in /homepages/19/d533566015/htdocs/classes/Tools.php on line 1721

Notice: Use of undefined constant PS_ROUND_HALF_UP - assumed 'PS_ROUND_HALF_UP' in /homepages/19/d533566015/htdocs/classes/Tools.php on line 1723

Notice: Use of undefined constant PS_ROUND_HALF_DOWN - assumed 'PS_ROUND_HALF_DOWN' in /homepages/19/d533566015/htdocs/classes/Tools.php on line 1717

Notice: Use of undefined constant PS_ROUND_HALF_EVEN - assumed 'PS_ROUND_HALF_EVEN' in /homepages/19/d533566015/htdocs/classes/Tools.php on line 1718

Notice: Use of undefined constant PS_ROUND_HALF_ODD - assumed 'PS_ROUND_HALF_ODD' in /homepages/19/d533566015/htdocs/classes/Tools.php on line 1719

Notice: Use of undefined constant PS_ROUND_HALF_UP - assumed 'PS_ROUND_HALF_UP' in /homepages/19/d533566015/htdocs/classes/Tools.php on line 1721

Notice: Use of undefined constant PS_ROUND_HALF_UP - assumed 'PS_ROUND_HALF_UP' in /homepages/19/d533566015/htdocs/classes/Tools.php on line 1723

Notice: Use of undefined constant PS_ROUND_HALF_DOWN - assumed 'PS_ROUND_HALF_DOWN' in /homepages/19/d533566015/htdocs/classes/Tools.php on line 1717

Notice: Use of undefined constant PS_ROUND_HALF_EVEN - assumed 'PS_ROUND_HALF_EVEN' in /homepages/19/d533566015/htdocs/classes/Tools.php on line 1718

Notice: Use of undefined constant PS_ROUND_HALF_ODD - assumed 'PS_ROUND_HALF_ODD' in /homepages/19/d533566015/htdocs/classes/Tools.php on line 1719

Notice: Use of undefined constant PS_ROUND_HALF_UP - assumed 'PS_ROUND_HALF_UP' in /homepages/19/d533566015/htdocs/classes/Tools.php on line 1721

Notice: Use of undefined constant PS_ROUND_HALF_UP - assumed 'PS_ROUND_HALF_UP' in /homepages/19/d533566015/htdocs/classes/Tools.php on line 1723

Notice: Use of undefined constant PS_ROUND_HALF_DOWN - assumed 'PS_ROUND_HALF_DOWN' in /homepages/19/d533566015/htdocs/classes/Tools.php on line 1717

Notice: Use of undefined constant PS_ROUND_HALF_EVEN - assumed 'PS_ROUND_HALF_EVEN' in /homepages/19/d533566015/htdocs/classes/Tools.php on line 1718

Notice: Use of undefined constant PS_ROUND_HALF_ODD - assumed 'PS_ROUND_HALF_ODD' in /homepages/19/d533566015/htdocs/classes/Tools.php on line 1719

Notice: Use of undefined constant PS_ROUND_HALF_UP - assumed 'PS_ROUND_HALF_UP' in /homepages/19/d533566015/htdocs/classes/Tools.php on line 1721

Notice: Use of undefined constant PS_ROUND_HALF_UP - assumed 'PS_ROUND_HALF_UP' in /homepages/19/d533566015/htdocs/classes/Tools.php on line 1723

Fatal error: Uncaught exception 'SmartyException' with message 'unable to write file /homepages/19/d533566015/htdocs/cache/smarty/cache/blockspecials/20170227/7/20170227/1/6/b3/35/f3/wrt58b4474ae79427.58700355' in /homepages/19/d533566015/htdocs/tools/smarty/sysplugins/smarty_internal_write_file.php:44 Stack trace: #0 /homepages/19/d533566015/htdocs/tools/smarty/sysplugins/smarty_internal_cacheresource_file.php(102): Smarty_Internal_Write_File::writeFile('/homepages/19/d...', '<?php /*%%Smart...', Object(Smarty)) #1 /homepages/19/d533566015/htdocs/tools/smarty/sysplugins/smarty_cacheresource.php(367): Smarty_Internal_CacheResource_File->writeCachedContent(Object(Smarty_Internal_Template), '<?php /*%%Smart...') #2 /homepages/19/d533566015/htdocs/tools/smarty/sysplugins/smarty_internal_template.php(230): Smarty_Template_Cached->write(Object(Smarty_Internal_Template), '<?php /*%%Smart...') #3 /homepages/19/d533566015/htdocs/tools/smarty/sysplugins/smarty_internal_templatebase.php(259): Smarty_Internal_Template->writeCachedCo in /homepages/19/d533566015/htdocs/tools/smarty/sysplugins/smarty_internal_write_file.php on line 44

Alguien puede ayudarme porfavor?

Muchas gracias.
 

devoment

Experto en Prestashop
Re:Pagina de Categorías - En Blanco

De lo que muestras el error preocupante es este:

Fatal error: Uncaught exception 'SmartyException' with message 'unable to write file /homepages/19/d533566015/htdocs/cache/smarty/cache/blockspecials/20170227/7/20170227/1/6/b3/35/f3/wrt58b4474ae79427.58700355' in /homepages/19/d533566015/htdocs/tools/smarty/sysplugins/smarty_internal_write_file.php:44 Stack trace: #0 /homepages/19/d533566015/htdocs/tools/smarty/sysplugins/smarty_internal_cacheresource_file.php(102): Smarty_Internal_Write_File::writeFile('/homepages/19/d...', '<?php /*%%Smart...', Object(Smarty)) #1 /homepages/19/d533566015/htdocs/tools/smarty/sysplugins/smarty_cacheresource.php(367): Smarty_Internal_CacheResource_File->writeCachedContent(Object(Smarty_Internal_Template), '<?php /*%%Smart...') #2 /homepages/19/d533566015/htdocs/tools/smarty/sysplugins/smarty_internal_template.php(230): Smarty_Template_Cached->write(Object(Smarty_Internal_Template), '<?php /*%%Smart...') #3 /homepages/19/d533566015/htdocs/tools/smarty/sysplugins/smarty_internal_templatebase.php(259): Smarty_Internal_Template->writeCachedCo in /homepages/19/d533566015/htdocs/tools/smarty/sysplugins/smarty_internal_write_file.php on line 44

Parece problema de permisos.
 
Upvote 0

JDesing

Aprendiz de Prestashop
Re:Pagina de Categorías - En Blanco

devoment dijo:
De lo que muestras el error preocupante es este:

Fatal error: Uncaught exception 'SmartyException' with message 'unable to write file /homepages/19/d533566015/htdocs/cache/smarty/cache/blockspecials/20170227/7/20170227/1/6/b3/35/f3/wrt58b4474ae79427.58700355' in /homepages/19/d533566015/htdocs/tools/smarty/sysplugins/smarty_internal_write_file.php:44 Stack trace: #0 /homepages/19/d533566015/htdocs/tools/smarty/sysplugins/smarty_internal_cacheresource_file.php(102): Smarty_Internal_Write_File::writeFile('/homepages/19/d...', '<?php /*%%Smart...', Object(Smarty)) #1 /homepages/19/d533566015/htdocs/tools/smarty/sysplugins/smarty_cacheresource.php(367): Smarty_Internal_CacheResource_File->writeCachedContent(Object(Smarty_Internal_Template), '<?php /*%%Smart...') #2 /homepages/19/d533566015/htdocs/tools/smarty/sysplugins/smarty_internal_template.php(230): Smarty_Template_Cached->write(Object(Smarty_Internal_Template), '<?php /*%%Smart...') #3 /homepages/19/d533566015/htdocs/tools/smarty/sysplugins/smarty_internal_templatebase.php(259): Smarty_Internal_Template->writeCachedCo in /homepages/19/d533566015/htdocs/tools/smarty/sysplugins/smarty_internal_write_file.php on line 44

Parece problema de permisos.
Gracias por la respuesta, he estado leyendo y he cambiado los permisos del archivo tools/smarty/sysplugins/smarty_internal_write_file.php

Este código:
Insertar CODE, HTML o PHP:
     * Writes file in a safe way to disk
     *
     * @param string $_filepath complete filepath
     * @param string $_contents file content
     * @param Smarty $smarty    smarty instance
     * @return boolean true
     */
    public static function writeFile($_filepath, $_contents, Smarty $smarty)
    {
        $_error_reporting = error_reporting();
        error_reporting($_error_reporting & ~E_NOTICE & ~E_WARNING);
        if ($smarty->_file_perms !== null) {
            $old_umask = umask(0);
        }

        $_dirpath = dirname($_filepath);
        // if subdirs, create dir structure
        if ($_dirpath !== '.' && !file_exists($_dirpath)) {
            mkdir($_dirpath, $smarty->_dir_perms === null ? 0777 : $smarty->_dir_perms, true);
        }

        // write to tmp file, then move to overt file lock race condition
        $_tmp_file = $_dirpath . DS . uniqid('wrt', true);
        if (!file_put_contents($_tmp_file, $_contents)) {
            error_reporting($_error_reporting);
            throw new SmartyException("unable to write file {$_tmp_file}");
            return false;
        }

He probado con 755 y 771, se te ocurre alguna idea?

También he leido que se puede borra toda la carpeta cache/smarty/ sin borrar los index.php, pero no me atrevo valla que la líe más. Que opinas?
 
Upvote 0

devoment

Experto en Prestashop
Re:Pagina de Categorías - En Blanco

Permisos en: /cache/smarty/cache/ parece ser.

Por cierto, desactiva un momento el bloque de promociones especiales (el modulo) y pegame error de nuevo, que quiero comprobar una cosa.
 
Upvote 0

JDesing

Aprendiz de Prestashop
Re:Pagina de Categorías - En Blanco

Solucionado !!!

El error es porque mi servicio de hosting no me permite tener más archivos alojados:

Estába a tope con 262.144 archivos. Estoy borrando la ruta que indiqué en el post anterior y aunque le queda un buen rato, ya carga la tienda correctamente.


Gracias por la ayuda y espero que le sirva a alguien con los mismo problemas.

Saludos ;)
 

Adjuntos

  • Captura.PNG
    Captura.PNG
    11,7 KB · Visitas: 36
Upvote 0
Arriba