No attachments or Registration Captcha image in SMF after upgrade to 2.0 RC1

smf

Problem/Symptom:

No attachments in Simple Machines (SMF) 2.0 RC1 after upgrade. No captcha images in the registration area of SMF 2.0 RC1 after recently upgrading.

Solution:

Find and replace the code snippets below..

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’];

Replace with:

// 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’];

My Personal Experience:

After recently upgrading my 1.1.6 version of SMF to 1.1.9 and having issues with that upgrade, I decided to just go ahead and upgrade to 2.0 RC1 since I’ve been running it on several forums with great success. After a successful upgrade, I tried testing the registration process and the captcha images were not showing. A few minutes later I tried a test post with an attachment and the result was a blank page. I posted another test post without an image and tried modifying it afterward and loading an attachment. That resulted in another blank page. After searching around, I found this code snippet that cured both issues.

Solution referenced from:

http://www.simplemachines.org/community/index.php?topic=312047.msg2073091#msg2073091

Comments 5

  1. Hi, everybody at http://www.cha2e.com. I am newbie, nice to meet you all. You have definitely interesting forum, I looked over many topics with interest, and want to make my own.

    Luxury life, what is it? Something inessential but conducive to pleasure and comfort. Something expensive or hard to obtain. Ofcourse, we all remember traditional meaning – wealth persons spend a lot of money to live in expensive and exclusive style, expensive clothes, jewelry, food, cars, trips, yachts and etc.

    So if you require to live such life, it means at least you must be one of the richest.

    How do you think, is it still possible for usual people to have luxury way of life, and what is richness life for you?

  2. What’s up, is there anybody else here?

    If it’s not just all bots here, let me know. I’m looking to network

    Oh, and yes I’m a real person LOL.

    Peace,

  3. Post
    Author

    What’s up CoxdonsUndora, welcome to the site. How’d you find the blog? There are definitely a lot of unique visitors here, FAR from all bots. Some of the posts here have over 110 comments and I receive a couple hundred unique visitors a day on avg.

    So what do you do? You mention you’re here to network, do you have a blog??

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.