Tengo instalado en mi servidor de bote de clip y he intentado conseguirlo trabajando pero necesita algunos afinando así que aquí es la peice del código que está relacionado con el problema de la línea 1700
Pocas líneas allí será "$ dem = getimagesize(src);" es la línea que tiene el error en ella.
Cuestiones similares han resuelto esto cambiando el código de visualización alrededor para permitir un mejor acceso de archivo de la fuente de lo que he leído. ejemplo similar que encontré.
http://www.joomlashack.com/community/in ... 142.0.htmlhttp://angrybirdstube.com/es el sitio que estoy trabajando y se puede ver el error en el derecho de la barra donde debe mostrar algunas fotos.
¿alguien tiene alguna idea?
if($p['output'] == 'html')
{
$size = "_".$p['size'];
$src = array_find($photo['filename'].$size,$thumbs);
if(empty($src))
$src = $this->default_thumb($size);
else
$src = $src;
$dem = getimagesize($src);
$width = $dem[0];
$height = $dem[1];
$img = "<img ";
$img .= "src = '".$src."'";
if($p['id'])
$img .= " id = '".mysql_clean($p['id'])."_".$photo['photo_id']."'";
if($p['class'])
$img .= " class = '".mysql_clean($p['class'])."'";
if($p['align'])
$img .= " align = '".$p['align']."'";
if(($p['width'] && is_numeric($p['width'])) && ($p['height'] && is_numeric($p['height'])))
{
$height = $p['height'];
$width = $p['width'];
}
elseif($p['width'] && is_numeric($p['width']))
{
$height = round($p['width'] / $width * $height);
$width = $p['width'];
}
elseif($p['height'] && is_numeric($p['height']))
{
$width = round($p['height'] * $width / $height);
$height = $p['height'];
}
$img .= " width = '".$width."'";
$img .= " height = '".$height."'";
- if($p['output'] == 'html')
- {
-
- $size = "_".$p['size'];
-
- $src = array_find($photo['filename'].$size,$thumbs);
- if(empty($src))
- $src = $this->default_thumb($size);
- else
- $src = $src;
-
- $dem = getimagesize($src);
- $width = $dem[0];
- $height = $dem[1];
-
- $img = "<img ";
- $img .= "src = '".$src."'";
-
- if($p['id'])
- $img .= " id = '".mysql_clean($p['id'])."_".$photo['photo_id']."'";
-
- if($p['class'])
- $img .= " class = '".mysql_clean($p['class'])."'";
-
- if($p['align'])
- $img .= " align = '".$p['align']."'";
- if(($p['width'] && is_numeric($p['width'])) && ($p['height'] && is_numeric($p['height'])))
- {
- $height = $p['height'];
- $width = $p['width'];
- }
- elseif($p['width'] && is_numeric($p['width']))
- {
- $height = round($p['width'] / $width * $height);
- $width = $p['width'];
- }
- elseif($p['height'] && is_numeric($p['height']))
- {
- $width = round($p['height'] * $width / $height);
- $height = $p['height'];
- }
-
- $img .= " width = '".$width."'";
- $img .= " height = '".$height."'";