MyBB Community Forums

Full Version: Upgrade of 1.6.3
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Where can I download this original version. There is no download link for 1.6.3 here: https://mybb.com/versions/

Then I can know what I've modified before upgrading to higher versions.

PS: I could not find more better forum that this to post this problem
Ok this upgrading description: https://docs.mybb.com/1.6/Upgrading/

looks complicated. I want to upgrade from 1.6.3 to 1.6.18. Anything simple?
https://blog.mybb.com/2015/09/07/mybb-1-...6-release/ - Get the 1.6.18 release package and follow the upgrade document. Additionally, I recommend upgrading to the latest version of MyBB to benefit from the patches and new features.
1. put forum offline
2. take backup of the database & download any custom files you might be having
3. upload new version files & run upgrade script [ ~/forumURL/install/upgrade.php ]
After copying what files mostly I should check and replace with old versions?:
  •  .htaccess
  •  settings.php
  • class_mailhandler.php  //I've assigned email to :  $mybb->settings['adminemail'] 
^ I'd suggest to not replace any of the files.
instead modify new version files as required by comparing old version files

settings.php file will be (re)generated by MyBB system

btw, also deactivate & uninstall old version's plugins [ALL] before you start upgrading process
I'm getting this error in functions.php when on Ubutu 16 when running 1.6.18 code:

Quote:[:error] [pid 21288] [client 103.52.51.200:54492] PHP Fatal error:  'continue' not in the 'loop' or 'switch' context in

function build_highlight_array($terms)
{
    global $mybb;

    if($mybb->settings['minsearchword'] < 1)
    {
        $mybb->settings['minsearchword'] = 3;
    } 

    // Strip out any characters that shouldn't be included
    $bad_characters = array(
        "(",
        ")",
        "+",
        "-",
        "~"
    );
    $terms = str_replace($bad_characters, '', $terms);

    // Check if this is a "series of words" - should be treated as an EXACT match
    if(my_strpos($terms, "\"") !== false)
    {
        $inquote = false;
        $terms = explode("\"", $terms);
        foreach($terms as $phrase)
        {
            $phrase = htmlspecialchars_uni($phrase);
            if($phrase != "")
            {
                if($inquote)
                {
                    $words[] = trim($phrase);
                }
                else
                {
                    $split_words = preg_split("#\s{1,}#", $phrase, -1);
                    if(!is_array($split_words))
                    {
                        continue;
                    }
                    foreach($split_words as $word)
                    {
                        if(!$word || strlen($word) < $mybb->settings['minsearchword'])
                        {
                            continue;
                        }
                        $words[] = trim($word);
                    }
                }
            }
            $inquote = !$inquote;
        }
    }
    // Otherwise just a simple search query with no phrases
    else
    {
        $terms = htmlspecialchars_uni($terms);
        $split_words = preg_split("#\s{1,}#", $terms, -1);
        if(!is_array($split_words))
        {
            continue;
        }
        foreach($split_words as $word)
        {
            if(!$word || strlen($word) < $mybb->settings['minsearchword'])
            {
                continue;
            }
            $words[] = trim($word);
        }

    }
exactly which version of php you are using now ?
I don't think MyBB 1.6.18 is fully compatible with php > 7