Jose dijo:
Desconozco hostinger, preguntale a su soporte.
PHP 5 suelen tener todos los hostings, así que intuyo que sí.
He activado el puerto 777 en el caché, sin embargo sigue igual.
PHP 5 me imagino que tiene Hostinger, únicamente queda lo de la libreria GD, pero realmente no sé como hacerlo.
Si quieres ver mi web es esta: http://criticascortas.com
Y como puedes ver las imágenes están rotas :S
Actualización
Actualicé la versión de TimThumb, este es el error que me sale:
Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/usr/local/apache/htdocs/wp-content/uploads/2012/10/item.gif) is not within the allowed path(s): (/home/:/usr/lib/php:/tmp) in /home/u722713962/public_html/wp-content/themes/Boxoffice/timthumb.php on line 851
Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/usr/local/apache/htdocs/www/wp-content/uploads/2012/10/item.gif) is not within the allowed path(s): (/home/:/usr/lib/php:/tmp) in /home/u722713962/public_html/wp-content/themes/Boxoffice/timthumb.php on line 886
Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/usr/local/apache/htdocs/www/criticascortas.com/wp-content/uploads/2012/10/item.gif) is not within the allowed path(s): (/home/:/usr/lib/php:/tmp) in /home/u722713962/public_html/wp-content/themes/Boxoffice/timthumb.php on line 886
Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/usr/local/apache/htdocs/www/criticascortas.com/wp-content/wp-content/uploads/2012/10/item.gif) is not within the allowed path(s): (/home/:/usr/lib/php:/tmp) in /home/u722713962/public_html/wp-content/themes/Boxoffice/timthumb.php on line 886
Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/usr/local/apache/htdocs/www/criticascortas.com/wp-content/themes/wp-content/uploads/2012/10/item.gif) is not within the allowed path(s): (/home/:/usr/lib/php:/tmp) in /home/u722713962/public_html/wp-content/themes/Boxoffice/timthumb.php on line 886
Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/usr/local/apache/htdocs/www/criticascortas.com/wp-content/themes/Boxoffice/wp-content/uploads/2012/10/item.gif) is not within the allowed path(s): (/home/:/usr/lib/php:/tmp) in /home/u722713962/public_html/wp-content/themes/Boxoffice/timthumb.php on line 886
Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/usr/local/apache/htdocs/www/criticascortas.com/wp-content/themes/Boxoffice/timthumb.php/wp-content/uploads/2012/10/item.gif) is not within the allowed path(s): (/home/:/usr/lib/php:/tmp) in /home/u722713962/public_html/wp-content/themes/Boxoffice/timthumb.php on line 886
A TimThumb error has occured
The following error(s) occured:
Could not find the internal image you specified.
Query String : src=http://criticascortas.com/wp-content/uploads/2012/10/item.gif&h=270&w=180&zc=1
TimThumb version : 2.8.10
Y estas son las líneas del código (de la 851 a la 886)
if(file_exists ($this->docRoot . '/' . $src)) {
$this->debug(3, "Found file as " . $this->docRoot . '/' . $src);
$real = $this->realpath($this->docRoot . '/' . $src);
if(stripos($real, $this->docRoot) === 0){
return $real;
} else {
$this->debug(1, "Security block: The file specified occurs outside the document root.");
//allow search to continue
}
}
//Check absolute paths and then verify the real path is under doc root
$absolute = $this->realpath('/' . $src);
if($absolute && file_exists($absolute)){ //realpath does file_exists check, so can probably skip the exists check here
$this->debug(3, "Found absolute path: $absolute");
if(! $this->docRoot){ $this->sanityFail("docRoot not set when checking absolute path."); }
if(stripos($absolute, $this->docRoot) === 0){
return $absolute;
} else {
$this->debug(1, "Security block: The file specified occurs outside the document root.");
//and continue search
}
}
$base = $this->docRoot;
// account for Windows directory structure
if (strstr($_SERVER['SCRIPT_FILENAME'],':')) {
$sub_directories = explode('\\', str_replace($this->docRoot, '', $_SERVER['SCRIPT_FILENAME']));
} else {
$sub_directories = explode('/', str_replace($this->docRoot, '', $_SERVER['SCRIPT_FILENAME']));
}
foreach ($sub_directories as $sub){
$base .= $sub . '/';
$this->debug(3, "Trying file as: " . $base . $src);
if(file_exists($base . $src)){