Problem with upgrading (URGENT)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • HSN
    Senior Member
    • May 2003
    • 113
    • 3.7.x

    Problem with upgrading (URGENT)

    I was upgrading my forum to 3.6.0 but I got the error which required me to upgrade my mySQL to a better version. Thus, I decided to recover my old forum which was running on 3.5.4 until I upgrade the database. For this, I uploaded the old files and run the install script again. Now, everything works fine except when I try to see the threads, I get the following error:

    Database error in vBulletin 3.5.4:
    Invalid SQL:
    SELECT
    post.*, post.username AS postusername, post.ipaddress AS ip, IF(post.visible = 2, 1, 0) AS isdeleted,
    user.*, userfield.*, usertextfield.*,
    icon.title as icontitle, icon.iconpath,
    avatar.avatarpath, NOT ISNULL(customavatar.userid) AS hascustomavatar, customavatar.dateline AS avatardateline,customavatar.width AS avwidth,customavatar.height AS avheight,
    deletionlog.userid AS del_userid, deletionlog.username AS del_username, deletionlog.reason AS del_reason,
    editlog.userid AS edit_userid, editlog.username AS edit_username, editlog.dateline AS edit_dateline,
    editlog.reason AS edit_reason,
    post_parsed.pagetext_html, post_parsed.hasimages,
    IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid
    FROM post AS post
    LEFT JOIN user AS user ON(user.userid = post.userid)
    LEFT JOIN userfield AS userfield ON(userfield.userid = user.userid)
    LEFT JOIN usertextfield AS usertextfield ON(usertextfield.userid = user.userid)
    LEFT JOIN icon AS icon ON(icon.iconid = post.iconid)
    LEFT JOIN avatar AS avatar ON(avatar.avatarid = user.avatarid) LEFT JOIN customavatar AS customavatar ON(customavatar.userid = user.userid)
    LEFT JOIN deletionlog AS deletionlog ON(post.postid = deletionlog.primaryid AND type = 'post')
    LEFT JOIN editlog AS editlog ON(editlog.postid = post.postid)
    LEFT JOIN post_parsed AS post_parsed ON(post_parsed.postid = post.postid AND post_parsed.styleid_code = -1 AND post_parsed.styleid_html = -1 AND post_parsed.styleid_php = -1 AND post_parsed.styleid_quote = -1)
    WHERE post.postid IN (0,125110,125421,125422,125424,125512)
    ORDER BY post.dateline;
    MySQL Error : Table 'aletrah01.post_parsed' doesn't exist
    Error Number : 1146


    I checked the database is working fine and everything is in place.
    Please let me know what is the solution to this problem?
  • Jake Bunce
    Senior Member
    • Dec 2000
    • 46598
    • 3.6.x

    #2
    That error indicates a missing table (post_parsed) which should be there in the default software. Have you removed this table? I recommend restoring a backup if one is available. Otherwise you can add it back in by running this query:

    Code:
    CREATE TABLE post_parsed (
    	postid INT UNSIGNED NOT NULL DEFAULT '0',
    	dateline INT UNSIGNED NOT NULL DEFAULT '0',
    	styleid_code INT NOT NULL DEFAULT '-1',
    	styleid_html INT NOT NULL DEFAULT '-1',
    	styleid_php INT NOT NULL DEFAULT '-1',
    	styleid_quote INT NOT NULL DEFAULT '-1',
    	hasimages SMALLINT NOT NULL DEFAULT '0',
    	pagetext_html MEDIUMTEXT,
    	PRIMARY KEY (postid, styleid_code, styleid_html, styleid_php, styleid_quote),
    	KEY dateline (dateline)
    )

    Comment

    • HSN
      Senior Member
      • May 2003
      • 113
      • 3.7.x

      #3
      Oh thanks man!
      It worked.

      Comment

      • jblackburn
        New Member
        • Jun 2005
        • 2

        #4
        Same here

        I had this exact same problem and noticed that I had a table called postparsed (no underscore) but not post_parsed. I am positive that I did not delete this table, so something must be going on...

        I did fix the error by copying my existing postparsed table to post_parsed.

        FYI, I've had vB for a couple of years and have kept up with upgrades, now at 3.5.5. I do have some plugins, but none that have been installed recently.

        Comment

        • Robbed
          Member
          • Oct 2005
          • 98
          • 4.2.X

          #5
          I'm getting the same error. the postparsed table is there.

          When i click on any thread I get a sql error saying it can't find post_parsed.

          Comment

          • Steve Machol
            Former Customer Support Manager
            • Jul 2000
            • 154488

            #6
            Please start your own thread with all the relevant info.
            Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
            Change CKEditor Colors to Match Style (for 4.1.4 and above)

            Steve Machol Photography


            Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


            Comment

            • Robbed
              Member
              • Oct 2005
              • 98
              • 4.2.X

              #7
              Sorry

              What a pain tho.

              I uploaded my old files and restored a db, turned off post parsing then made another backup.

              Ran the upgrade again, it seems to work. Weird.

              Comment

              Related Topics

              Collapse

              Working...