uploading new logo in 7.01

I am getting this error everytime I upload a new logo via admin in 7.01 -


Warning: getimagesize() [function.getimagesize]: Filename cannot be empty in /home/******/public_html/administration/basic_settings.php on line 254

Warning: Cannot modify header information - headers already sent by (output started at /home/*****/public_html/administration/basic_settings.php:254) in /home/****/public_html/inc/admin_design.inc.php on line 56

also says the logo I am uploading is not an im,age, even when i upload logos that previously worked

Quote · 28 Apr 2010

i should add that this is a clean install of 7.01

Quote · 28 Apr 2010

anyone else got this problem?

Quote · 28 Apr 2010

ok it uploads gifs but not pngs, here is the text -

function setLogo(&$aData, &$aFile) {
global $dir;

$aFileInfo = getimagesize($aFile['new_file']['tmp_name']);
if(empty($aFileInfo))
return '_adm_txt_settings_file_not_image';

$sExt = '';
switch( $aFileInfo['mime'] ) {
case 'image/jpeg': $sExt = 'jpg'; break;
case 'image/gif':  $sExt = 'gif'; break;
case 'image/png':  $sExt = 'png'; break;
}
if(empty($sExt))
return '_adm_txt_settings_file_wrong_format';

$sFileName = mktime() . '.' . $sExt;
$sFilePath = $dir['mediaImages'] . $sFileName;
if(!move_uploaded_file($aFile['new_file']['tmp_name'], $sFilePath))
return '_adm_txt_settings_file_cannot_move';

if(!empty($aData['resize'])) {
$iWidth = (int)$aData['new_width'];
$iHeight = (int)$aData['new_height'];
if($iWidth <= 0 || $iHeight <= 0)
return '_adm_txt_settings_logo_wrong_size';

if(imageResize($sFilePath, $sFilePath, $iWidth, $iHeight) != IMAGE_ERROR_SUCCESS)
return '_adm_txt_settings_image_cannot_resize';
}

@unlink($dir['mediaImages'] . getParam('sys_main_logo'));
setParam('sys_main_logo', $sFileName);

return true;

Quote · 28 Apr 2010

Hello!

As i answered in blog - i posted PNG and JPG files without any errors. May u plz specify version of ur browser and filesize?

Regard

Quote · 28 Apr 2010

firefox - image size is - 46.8 KB I had this image uploaded on a dolphin 7 site no problem, i also noticed its doing same with promo, even trying to upload the original promo images

Quote · 28 Apr 2010

Hm, interesting. May u check permissions of the whole new Dolphin and exactly for files in cache (like sys_options.php)?

Quote · 28 Apr 2010

think i'll try another clean install..:(

Quote · 28 Apr 2010

ok did a clean install and still got same issue, could it be a server config problem?..i really need this fixed..:(

Quote · 28 Apr 2010

downloaded and installed the 7.01 for yet a 3rd time and still same issue...spoke to my host and they replied this ( i host with hostforweb)

Greetings,

I have checked your server, your directories are properly configuread and writable and there should not be any issue, the script only thorws one message and there are no errors regarding any faulty temporary folder permissions.

I would advise you to contact the script developers regarding this issue, you have PHP 5.2.9 configured on the server:
PHP 5.2.9 (cgi-fcgi) (built: Apr 30 2009 12:34:50)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
with the ionCube PHP Loader v3.3.14, Copyright (c) 2002-2010, by ionCube Ltd., and
with Zend Extension Manager v1.2.2, Copyright (c) 2003-2007, by Zend Technologies
with Suhosin v0.9.27, Copyright (c) 2007, by SektionEins GmbH
with Zend Optimizer v3.3.3, Copyright (c) 1998-2007, by Zend Technologies

As you can see GD imaging library is properly configured:
-bash-3.2# php -i | grep GD
GD Support enabled
GD Version bundled (2.0.34 compatible)
Supported filetypes JPEG,TIFF
GIF Read Support enabled
GIF Create Support enabled
PNG Support enabled
Quote · 29 Apr 2010

Check the permissions of your cache folder & files like Leonids instructed you to do.  I have my servers at HFW with the same exact server set ups you have and it's all running perfectly.  Somewhere you've missed a file/folder permission here.  Re-Installing is NOT going to get you the results you want.

Are you unzipping this on the server or doing FTP upload after unzipping on your PC?  If your FTP'ing it in, is the FTP set to Binary?

Quote · 29 Apr 2010

I am uploading them via ftp..( what u mean binary?) I have installed countless 7.0 and not had this issue before..really odd, I just got the vps last week and this is the first install I have done on it, I have checked, rechecked and checked again my permissions and they are all fine..I just cant understand it. someone else said it was my php version, but I am using latest version so sould be fine

Quote · 29 Apr 2010

Ok. You say you have only had this server for a week, and this is the first install on it. So have you checked your php.ini settings to see if they meet requirements?

Name Value Recommended
Different settings
register globals Off Off
safe mode Off Off
disabled functions

memory limit 128M 128M
max execution time 3000 300
post_max_size 300M 128M or more
upload max filesize 300M 128M or more
allow_url_fopen On On




Go to Admin->Tools->Host Tools->Host Perams and check your allowed post and upload sizes

https://www.deanbassett.com
Quote · 29 Apr 2010

well you can officially call me the biggest idiot on here...all it was is that I forgot to add the 'M' after post_max_size 300M   ....so annoyed with myself

Quote · 29 Apr 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.