News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Subs-Graphics.php BUG FOUND in SMF 2.0 RC1.1

Started by SoLoGHoST, May 22, 2009, 11:21:48 PM

Previous topic - Next topic

SoLoGHoST

Ok, just downloaded the FULL INSTALL package of SMF 2.0 RC1.1 from SMF Downloads area, did a clean install and there is this problem:

Subs-Graphics Line 221, in the downloadAvatar function:
// Walk the right path. if (!empty($modSettings['currentAttachmentUploadDir']))

Gives a T_ELSE ERROR when trying to access Subs-Graphics.php

Fixed this by just dropping the if statement down to the next line as this was being commented out...
// Walk the right path.
if (!empty($modSettings['currentAttachmentUploadDir']))


Just thought you all should know of this as I didn't even install any MODS before this error came about.

danielcberman

#1
With SMF Gallery lite installed, I had to go a bit further and modify the code in this same section from
{
if (!is_array($modSettings['attachmentUploadDir']))
$modSettings['attachmentUploadDir'] = unserialize($modSettings['attachmentUploadDir']);
$path = $modSettings['attachmentUploadDir'][$dir];
}
else
$path = $modSettings['attachmentUploadDir'];


To,

{
if (!is_array($modSettings['attachmentUploadDir']))
$modSettings['attachmentUploadDir'] = unserialize($modSettings['attachmentUploadDir']);
else $path = $modSettings['attachmentUploadDir'][$dir];
}
//else
//$path = $modSettings['attachmentUploadDir'];


Notice what I commented out. I will leave it for the code ninja's here on this board to figure out precisely what's going on here, but this bug appears to be squashed.

Advertisement: