Error Upgrading to 4.2

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lisa3876
    Member
    • Apr 2007
    • 37

    [Forum] Error Upgrading to 4.2

    Just tried to upgrade to 4.2 from 4.1.11 and received this when I tried to go through the upgrade process...

    An error has occurred with your database. Please contact vBulletin Support for assistance.
    Module: 420a1, Step 1 Database Error:1074
    Column length too big for column 'url' (max = 255); use BLOB or TEXT instead
    Query:

    CREATE TABLE navigation ( navid INT UNSIGNED NOT NULL AUTO_INCREMENT, name VARCHAR(20) NOT NULL DEFAULT '', navtype ENUM('tab','menu','link') NOT NULL DEFAULT 'tab', displayorder SMALLINT UNSIGNED NOT NULL DEFAULT '0', parent VARCHAR(20) NOT NULL DEFAULT '', url VARCHAR(500) NOT NULL DEFAULT '', state TINYINT UNSIGNED NOT NULL DEFAULT '0', scripts VARCHAR(30) NULL DEFAULT '', showperm VARCHAR(30) NULL DEFAULT '', productid VARCHAR(25) NOT NULL DEFAULT '', username VARCHAR(100) NOT NULL DEFAULT '', version VARCHAR(30) NOT NULL DEFAULT '', dateline INT NOT NULL DEFAULT '0', PRIMARY KEY (navid), UNIQUE KEY identity (name, productid), KEY productid (productid, state) )
    http://www.WebsiteBabble.com
    The place where Webmasters and Bloggers connect.
  • Armee25
    Member
    • Mar 2008
    • 91

    #2
    I have the same exact issue going from 4.1.12 to 4.2

    Comment

    • Zachery
      Former vBulletin Support
      • Jul 2002
      • 59097

      #3
      What version of MySQL are you running?

      Comment

      • lisa3876
        Member
        • Apr 2007
        • 37

        #4
        Originally posted by Zachery
        What version of MySQL are you running?
        4.1
        http://www.WebsiteBabble.com
        The place where Webmasters and Bloggers connect.

        Comment

        • Zachery
          Former vBulletin Support
          • Jul 2002
          • 59097

          #5


          Basicly, Older versions of MySQL cannot use more than 255 characters in a varchar setting, I'll see if I can post a quick edit to get around the problem.

          Comment

          • Zachery
            Former vBulletin Support
            • Jul 2002
            • 59097

            #6
            In your upload/install/includes/class_upgrade_420a1.php file find:
            PHP Code:
                                url VARCHAR(500NOT NULL DEFAULT ''
            Replace with
            PHP Code:
                                url varchar(250NOT NULL DEFAULT ''
            Last edited by Zachery; Tue 22 May '12, 6:30pm.

            Comment

            widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
            Working...