Ver Mensaje Individual
  #1 (permalink)  
Antiguo 09/10/2014, 10:10
Avatar de Reiga
Reiga
 
Fecha de Ingreso: abril-2010
Ubicación: Valencia
Mensajes: 13
Antigüedad: 14 años
Puntos: 0
Pregunta Emigrar del 5.3.x al 5.5 me ha traído un regalo

Pongo antes en contexto:

Hace unos días 1and1 me "obligo" a emigrar del PHP 5.3.x al 5.5 y eso me ha llevado al pequeño caos en mi blog. Resulta que habían funciones que no se han quitado en la versión 5.5 (ereg, eregi...) y resulta que el theme que uso del Wordpress (no es mio y no se actualiza) utiliza el phpThumb (una versión del cata-pum) y me ha tocado actualizarla manualmente a una versión mas actual que soporta el 5.5.

Mientras configuraba, poco a poco desaparecían cosas, pero he llegado a un punto que no se que hacer, básicamente me salen estos errores:

Errores que me aparecen:
Código:
Strict Standards: strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2.0/DST' instead in ...phpThumb/phpThumb.php on line 87

Strict Standards: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2.0/DST' instead in ...phpThumb/phpThumb.php on line 87

Warning: Cannot modify header information - headers already sent by (output started at /.../phpThumb/phpThumb.php on line 87

Warning: Cannot modify header information - headers already sent by (output started at ...phpThumb/phpThumb.php:87) in /.../phpThumb/phpThumb.php on line 93

Warning: Cannot modify header information - headers already sent by (output started at ...phpThumb/phpThumb.php:87) in /.../phpThumb/phpThumb.php on line 97
(luego texto incomprensible, será la info de la imagen interpretada en texto).
Archivo phpThum.php desde la 85 hasta la 97:
Código PHP:
header('Cache-Control: private');
header('Pragma: private');
header('Expires: '.date(DATE_RFC822strtotime(' 1 day')));
if (!empty(
$_SERVER['HTTP_IF_MODIFIED_SINCE']) && ($nModified == strtotime($_SERVER['HTTP_IF_MODIFIED_SINCE'])) && !empty($_SERVER['SERVER_PROTOCOL'])) {
        
header('Last-Modified: '.gmdate('D, d M Y H:i:s'$nModified).' GMT'true304);
            exit;
    }
if (
$getimagesize = @GetImageSize($phpThumb->cache_filename)) {
        
header('Content-Type: '.phpthumb_functions::ImageTypeToMIMEtype($getimagesize[2]));
} elseif (
preg_match('#\\.ico$#i'$phpThumb->cache_filename)) {
        
header('Content-Type: image/x-icon');
    }
header('Content-Length: '.filesize($phpThumb->cache_filename)); 
Sinceramente, mi nivel de PHP es mas básico que una camiseta de Primark de un color. Será una tontería, pero no tengo ni idea y la informacion de internet, no me ha ayudado mucho.

Creo que es algo de la fecha, pero no me queda claro.

Gracias de antemano.