• Welcome to Simple Machines Community Forum. Please login or sign up.
October 21, 2021, 01:21:47 AM

News:

Want to get involved in developing SMF, then why not lend a hand on our github!


Unexpected T_ELSE error in 2.0 RC1-1 on Registration (or no Visual Verification)

Started by SlammedDime, May 25, 2009, 05:58:43 AM

Previous topic - Next topic

SlammedDime

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'];
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

Jläbbischer

Thanks, now i can delete the large Questionlist and use the Captcha ;)

msPaula

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

SlammedDime

Please open a support topic in the board for this if you haven't already.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     


Antes



Mr Dodgy

A million thank yous SlammedDime. I've been scratching my head for ages on this one. You're a star.

eslao


SlammedDime

SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

TLBSupport

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

SlammedDime

You should open a support request either in the Helpdesk or in the boards separate from this topic.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

KensonPlays

I have the same problem, I used Dreamweaver and "Find and Replace"d it and it didn't do anything!

KensonPlays

Should I use Notepad? I don't like using it... I am addicted to dreamweaver!

KensonPlays

Does anyone have a link to the unedited file? to redo it? thanks in advance!

Norv

You can find the original file by downloading the installation package, unzipping it, and checking /Sources/Subs-Graphics.php.
To-do lists are for deferral. The more things you write down the later they're done... until you have 100s of lists of things you don't do.

File a security report | Developers' Blog | Bug Tracker


Also known as Norv on D* | Norv N. on G+ | Norv on Github

KensonPlays

Will do, will it mess up the forum at all because of the new install of that file?

KensonPlays

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?

SlammedDime

Locking topic.  As has been asked multiple times in this topic, please open your own for support.  Thanks.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

Advertisement: