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);
}
}