Un saludo a todos:
Algunos usuarios tienen problemas al subir su avatar, les sale este error:
Warning: fopen(./customavatars/avatar10736_10.gif) [function.fopen]: failed to open stream: Permission denied in [path]/includes/class_dm_userpic.php on line 373
Este problema no sale con todos los usuarios, sólo con unos cuantos. Si alguien me puede explicar el motivo, quedaré agradecido.
Por si desean saber qué hay en el código de ese archivo, está esta parte:
Es sólo una parte, no quiero poner más para no hacer extenso el tema.// We were given an image and a revision number so write out a new image.
if (!empty($this->info['filedata']) AND isset($revision))
{
$oldfilename = $this->fetch_path($this->fetch_field('userid'), $revision);
$oldthumbfilename = $this->fetch_path($this->fetch_field('userid'), $revision, true);
$newfilename = $this->fetch_path($this->fetch_field('userid'), $revision + 1);
$thumbfilename = $this->fetch_path($this->fetch_field('userid'), $revision + 1, true);
if ($filenum = fopen($newfilename, 'wb'))
{
@unlink($oldfilename);
if ($this->table == 'customavatar')
{
@unlink($oldthumbfilename);
}
@fwrite($filenum, $this->info['filedata']);
@fclose($filenum);
Gracias de antemano por la ayuda.
Temas Similares:


LinkBack URL
About LinkBacks
Responder Citando