Admin

Hi guyz. i have been experiencing this error when trying to resize members picture in admin

Warning: getimagesize() [function.getimagesize]: Filename cannot be empty in /home/collarpl/public_html/admin/global_settings.php on line 800

that is why i went to global_settings.php and look at this code. but im not pretty sure on what to edit. hope you can help me. tnx

function save_water_mark() {
global $dir;
if ($_FILES['file_watermark']) {
$gl_pic['pic']['width']    = getParam( 'max_photo_width' );
$gl_pic['pic']['height'] = getParam( 'max_photo_height' );
$scan = getimagesize( $_FILES['file_watermark']['tmp_name'] );

if ( $scan && ( 1 == $scan[2] || 2 == $scan[2] || 3 == $scan[2] || 6 == $scan[2] ) ) {
$uploadfile = $dir['tmp'] . $_FILES['file_watermark']['name'];
$targetfile = $dir['profileImage'] . $_FILES['file_watermark']['name'];
if ( move_uploaded_file($_FILES['file_watermark']['tmp_name'], $uploadfile) ) {
$query = "UPDATE `GlParams` SET  `VALUE` ='". addslashes($_FILES['file_watermark']['name']) ."' WHERE `Name` = 'Water_Mark'";
db_res($query);
imageResize( $uploadfile, $targetfile, $gl_pic['pic']['width'], $gl_pic['pic']['height'] );
unlink( $uploadfile );
@chmod($targetfile, 0644);
}
}

Quote · 17 Nov 2009

bydway im using dolphin 6.1.6

Quote · 18 Nov 2009

You have a file permission error.  It's simply stating that you can't change something because the perms are set to 644 or 755 instead of 666 & 777.  Check your media/ permissions on this one.

Quote · 18 Nov 2009

Hi mydatery..

tnx for your response. I followed what you said but when i go to admin the screen goes blank. if i return the perm to its default value then i can see again what the content of the admin, well i dont know why it is like this. But anyways i have solved the first error which is

Warning: getimagesize () [function.getimagesize]: Filename cannot be empty in /home/collarpl/public_html/admin/global_settings.php on line 800

but when i click the save button

which supposedly to output only watermark settings save at the top. This error appears

Warning: getimagesize() [function.getimagesize]: Filename cannot be empty in /home/collarpl/public_html/admin/global_settings.php on line 797
Watermark settings saved

I cannot change the perm to 777 just the way you told me because the screens goes blank. hope you can help me with this. tnx

Quote · 19 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.