Warning: getimagesize() error

Hi,

I'm using dolphin 6.1.4. I'm getting the following error in my dolphin admin panel when tried to save the advanced settings after changes:

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

When i checked the line 800 its as below:

Line 800 : $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);
}
}

$query = "UPDATE `GlParams` SET `VALUE` ='". (int)$_POST['transp1'] ."' WHERE `Name` = 'transparent1'";
db_res($query);
$query = "UPDATE `GlParams` SET `VALUE` ='". process_db_input($_POST['enable_wm']) ."' WHERE `Name` = 'enable_watermark'";
db_res($query);
?>
<div class="succ">Watermark settings saved.</div><br />
<?php
}

?>

Thank you.

rgds,
Ben

Quote · 11 Mar 2009

You hit the wrong save button (there are 2 on this page, the bottom one is for watermarks) or the image you attempted to upload was an empty file.

Quote · 11 Mar 2009

Not really. I clicked on the top button the get the settings saved. Also, no images being upload since the particular page basically only for settings. Checkout the snapshot at http://www.mediafire.com/?sharekey=0421119e918d95732fb2ca15d7ea42d9e04e75f6e8ebb871

Please assist.

Quote · 11 Mar 2009

Hello ranggitube!


Is it possible to look this problem irectly in your site? Because save_watermak function will be launched only after pressing "Save watermark" button. Provide me via Unity mail admin access to your site.


Regards

Quote · 13 Mar 2009

Hi LeonidS,

I've sent you a mail.

Cheer

Quote · 13 Mar 2009

Did this problem get solved? I using the same version and have the same Issue. I cant save my settings in the admin panel.

Quote · 14 Apr 2009

i had the same issue using firefox

i.e. worked just fine :)
watermark  future works :))

Quote · 14 Apr 2009

Issue yet to be resolved.

prolaznik - i've tried in i.e. but vain, still got the same error.

anyone able to resolve this issue?

Quote · 16 Apr 2009

I too have the same issue. It will indeed save, however only in IE.

-Tom

Quote · 25 Apr 2009

ihave the same issue, did this get resolved yet?

Quote · 24 Jul 2009

I have a new install version 6.1.5 and I got this error saving an event.


Warning: getimagesize() [function.getimagesize]: Filename cannot be empty in /home/marketi3/public_html/wshs/inc/classes/BxDolEvents.php on line 252

The event infomation was saved. Any idea how to stop this error?

Thanks.

Quote · 12 Feb 2010
 
 
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.