Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: SlammedDime on May 25, 2009, 05:58:43 AM

Title: Unexpected T_ELSE error in 2.0 RC1-1 on Registration (or no Visual Verification)
Post by: SlammedDime on May 25, 2009, 05:58:43 AM
This is a known issue in the 2.0 RC1-1 Large upgrade, small update, full download, and changed files download from the news topic.  If you have upgraded via the package manager, this bug should not affect you.

In ./Sources/Subs-Graphics.php

Find
      // Walk the right path.      if (!empty($modSettings['currentAttachmentUploadDir']))
      {
         if (!is_array($modSettings['attachmentUploadDir']))
            $modSettings['attachmentUploadDir'] = unserialize($modSettings['attachmentUploadDir']);
         $path = $modSettings['attachmentUploadDir'][$dir];
      }
      else
         $path = $modSettings['attachmentUploadDir'];


Make it:
// Walk the right path.
if (!empty($modSettings['currentAttachmentUploadDir']))
{
if (!is_array($modSettings['attachmentUploadDir']))
$modSettings['attachmentUploadDir'] = unserialize($modSettings['attachmentUploadDir']);
$path = $modSettings['attachmentUploadDir'][$modSettings['currentAttachmentUploadDir']];
}
else
$path = $modSettings['attachmentUploadDir'];
Title: Re: Unexpected T_ELSE error in 2.0 RC1-1 on Registration (or no Visual Verification)
Post by: Jläbbischer on May 25, 2009, 05:24:29 PM
Thanks, now i can delete the large Questionlist and use the Captcha ;)
Title: Re: Unexpected T_ELSE error in 2.0 RC1-1 on Registration (or no Visual Verification)
Post by: msPaula on May 27, 2009, 08:05:26 PM
I applied this fix but it still does not show the letters needed

What next?

Not sure if it is related but in the top left corner of every screen is the php closing tag

>?

I am using SMF 2.0 RC1-1
Title: Re: Unexpected T_ELSE error in 2.0 RC1-1 on Registration (or no Visual Verification)
Post by: SlammedDime on May 27, 2009, 08:43:45 PM
Please open a support topic in the board for this if you haven't already.
Title: Re: Unexpected T_ELSE error in 2.0 RC1-1 on Registration (or no Visual Verification)
Post by: FearlessG1 on June 01, 2009, 10:01:28 AM
This fix worked perfect for me. Thanks!
Title: Re: Unexpected T_ELSE error in 2.0 RC1-1 on Registration (or no Visual Verification)
Post by: Antes on June 05, 2009, 09:56:22 AM
Thx so much :)

Fixed My Error ^^
Title: Re: Unexpected T_ELSE error in 2.0 RC1-1 on Registration (or no Visual Verification)
Post by: lazanya on June 07, 2009, 12:31:49 AM
thanks fixed
Title: Re: Unexpected T_ELSE error in 2.0 RC1-1 on Registration (or no Visual Verification)
Post by: Mr Dodgy on June 07, 2009, 08:58:25 AM
A million thank yous SlammedDime. I've been scratching my head for ages on this one. You're a star.
Title: Re: Unexpected T_ELSE error in 2.0 RC1-1 on Registration (or no Visual Verification)
Post by: eslao on June 07, 2009, 11:47:17 AM
must we apply this code ? my forum works well now
Title: Re: Unexpected T_ELSE error in 2.0 RC1-1 on Registration (or no Visual Verification)
Post by: SlammedDime on June 07, 2009, 04:07:26 PM
theres no harm in checking anyway... only takes a minute.
Title: Re: Unexpected T_ELSE error in 2.0 RC1-1 on Registration (or no Visual Verification)
Post by: TLBSupport on June 07, 2009, 06:56:59 PM
Is it ok to refresh this issue?

I had the above fault, ie verification not working correctly.
I looked for the text string " // Walk the right path.      if (!empty($modSettings['currentAttachmentUploadDir']))" but it couldn't find it in my Subs_Graphics.php file, have i uploaded the wrong version of the installer? if so where can I download the corrected version, I'm unable to use webinstaller.

Thanks in advance
Title: Re: Unexpected T_ELSE error in 2.0 RC1-1 on Registration (or no Visual Verification)
Post by: SlammedDime on June 08, 2009, 05:54:13 AM
You should open a support request either in the Helpdesk or in the boards separate from this topic.
Title: Re: Unexpected T_ELSE error in 2.0 RC1-1 on Registration (or no Visual Verification)
Post by: KensonPlays on June 17, 2009, 02:32:11 AM
I have the same problem, I used Dreamweaver and "Find and Replace"d it and it didn't do anything!
Title: Re: Unexpected T_ELSE error in 2.0 RC1-1 on Registration (or no Visual Verification)
Post by: KensonPlays on June 17, 2009, 02:48:14 PM
Should I use Notepad? I don't like using it... I am addicted to dreamweaver!
Title: Re: Unexpected T_ELSE error in 2.0 RC1-1 on Registration (or no Visual Verification)
Post by: KensonPlays on June 19, 2009, 02:09:43 AM
Does anyone have a link to the unedited file? to redo it? thanks in advance!
Title: Re: Unexpected T_ELSE error in 2.0 RC1-1 on Registration (or no Visual Verification)
Post by: Norv on June 19, 2009, 08:57:40 AM
You can find the original file by downloading the installation package, unzipping it, and checking /Sources/Subs-Graphics.php.
Title: Re: Unexpected T_ELSE error in 2.0 RC1-1 on Registration (or no Visual Verification)
Post by: KensonPlays on June 19, 2009, 09:32:40 PM
Will do, will it mess up the forum at all because of the new install of that file?
Title: Re: Unexpected T_ELSE error in 2.0 RC1-1 on Registration (or no Visual Verification)
Post by: KensonPlays on June 19, 2009, 09:35:57 PM
I still get the 500 error

EDIT:
I had disabled the CAPTCHA before HOPY3, my newest member registered, and now he is mod so he needs no Verifying, so how I re-enable it?
Title: Re: Unexpected T_ELSE error in 2.0 RC1-1 on Registration (or no Visual Verification)
Post by: SlammedDime on June 19, 2009, 09:40:51 PM
Locking topic.  As has been asked multiple times in this topic, please open your own for support.  Thanks.