upload photo error

Profile PhotosWarning: chmod() [function.chmod]: No such file or directory in /home/icxo/website/dolphin/uploadPhoto.php on line 327

Profile PhotosWarning: Cannot modify header information - headers already sent by (output started at /home/icxo/website/dolphin/uploadPhoto.php:327) in /home/icxo/website/dolphin/upload_media.php on line 188

Warning: Cannot modify header information - headers already sent by (output started at /home/icxo/website/dolphin/uploadPhoto.php:327) in /home/icxo/website/dolphin/inc/design.inc.php on line 498

when member adds a photo


Was found by testing:

move_uploaded_file( $_FILES[$fname]['tmp_name'], $path_and_name ) returnvalue is "1"

$ _FILES [$ Fname] [ 'tmp_name'] $ _FILES [$ fname] [ 'size'] be able to get to the actual value

$path_and_name the corresponding folder is also created and the actual existence

but the folder is empty

whats missing???????

PS: my php.ini file enabled short tag    short_open_tag = On

Quote · 26 Oct 2009

Hello!

Possible problem in result of this fucntion from BxDolMedia.php

function getProfileMediaDir()
{
if( extDirExists( $this -> sMediaDir ) )
{
return $this -> sMediaDir;
}
else
{
if( mkdir( $this -> sMediaDir ) )
{
chmod ($this -> sMediaDir, 0777);
return $this -> sMediaDir;
}
}

return false;
}

seems it can't create folder with needing permissions.

Regard

Quote · 5 Nov 2009
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.