+ Reply to Thread
Results 1 to 5 of 5

Thread: mysql errors after 4.0.16 -> 3.23.49 downgrade

  1. #1
    Senior Member kontrabass is on a distinguished road
    Join Date
    Jul 2000
    Location
    Austin, TX
    Posts
    285

    mysql errors after 4.0.16 -> 3.23.49 downgrade

    I'm getting the following errors, after backing down to mysql 3.23.49 after a few days running 4.0.16. Only other change I made was install/uninstall Turck MMcache. The errors only occur when I'm working wtih the 'user' table in the admin CP... BTW I know my VB is out of date (upgrade planned). Any ideas? Thanks!

    These errors occur when trying to change the user's group, or edit their profile in any way via the admin CP

    Database error in vBulletin Control Panel 2.2.2:

    Invalid SQL: INSERT INTO user (userid,usergroupid,username,password,email,stylei d,parentemail,coppauser,homepage,icq,aim,yahoo,sig nature,adminemail,receivebulletin,receivebulletin_ type,showemail,invisible,usertitle,customtitle,joi ndate,cookieuser,daysprune,lastvisit,lastactivity, lastpost,posts,timezoneoffset,emailnotification,re ceivepm,emailonpm,ipaddress,pmpopup,options,birthd ay) VALUES (NULL,'2','test9999','ec0e2603172c73a8b644bb9456c1 ff6e','joe@lkasdf.com','1','','0','http://www.','','','','','1','1','1','0','','0',106728328 0,'1','-1',1067283280,1067283280,1067283280,'0','0','1','1 ','0','','0','15','birthday')
    mysql error: Column count doesn't match value count at row 1

    mysql error number: 1136

    Date: Monday 27th of October 2003 12:34:40 PM
    Script: http://www.talkbass.com/forum/forum/admin/user.php
    Referer: http://www.talkbass.com/forum/admin/...hp?action=add&


    Database error in vBulletin Control Panel 2.2.2:

    Invalid SQL: SELECT userid
    FROM user
    WHERE username='cb56'
    AND userid <>
    mysql error: You have an error in your SQL syntax near '' at line 4

    mysql error number: 1064

    Date: Monday 27th of October 2003 12:48:30 PM
    Script: http://www.talkbass.com/forum/forum/admin/user.php
    Referer: http://www.talkbass.com/forum/admin/...it&userid=6021
    Last edited by kontrabass; Mon 27th Oct '03 at 9:16pm.

  2. #2
    Senior Member kontrabass is on a distinguished road
    Join Date
    Jul 2000
    Location
    Austin, TX
    Posts
    285
    Sorry forgot to mention that I also upgraded php from 4.1.2 to 4.3.3 before this error started occuring. Maybe something is up with php 4.3.3 and VB 2.2?

  3. #3
    Senior Member kontrabass is on a distinguished road
    Join Date
    Jul 2000
    Location
    Austin, TX
    Posts
    285
    Odd... All of the links in the user modification interface in the CP are missing the userid - ie, the links look like this:

    http://www.talkbass.com/forum/search...nduser&userid=
    http://www.talkbass.com/forum/privat...essage&userid=
    http://www.talkbass.com/forum/admin/...access&userid=

    Except for the 'view profile for membername' link which does have the #:

    http://www.talkbass.com/forum/member...o&userid=17747

    Hmm... looks like this is because the code in user.php for the above link is
    "&userid=$userid"

    vs

    "&userid=$user[userid]" for the previous. So for some reason $user[userid] is returning nothing?

    Needless to say all the links missing the userid don't work (they all default ot userid 0).

    I'm no expert - TIA for any help or ideas
    Last edited by kontrabass; Mon 27th Oct '03 at 10:08pm.

  4. #4
    Customer Support Manager Steve Machol is a name known to all Steve Machol is a name known to all Steve Machol is a name known to all Steve Machol is a name known to all Steve Machol is a name known to all Steve Machol is a name known to all Steve Machol's Avatar
    Join Date
    Jul 2000
    Location
    Jelsoft InterGalactic HQ
    Posts
    142,700
    Yes, there are known incompatibilities between PHP 4.3.x and the older version of vB you are running. The first thing you need to do is upgrade to vB 2.3.2. Please see the instructions here:

    http://www.vbulletin.com/members/upgrade.html
    Steve Machol, vBulletin Customer Support Manager
    "Have Copy, Will Paste" (when appropriate)

    Please do not email or PM me for vBulletin support. I will be more than glad to answer your questions on the vB Forums and in the support system.

    Just remember that what happens in localhost, stays in localhost.


  5. #5
    Senior Member kontrabass is on a distinguished road
    Join Date
    Jul 2000
    Location
    Austin, TX
    Posts
    285
    Quote Originally Posted by Steve Machol
    Yes, there are known incompatibilities between PHP 4.3.x and the older version of vB you are running. The first thing you need to do is upgrade to vB 2.3.2. Please see the instructions here:

    http://www.vbulletin.com/members/upgrade.html
    Thanks for the info. I have sooo many hacks installed I was hoping VB3.0 would be my next upgrade. Oh well Time to get to work!

+ Reply to Thread

Similar Threads

  1. downgrade
    By Keyser Söze in forum vBulletin 3.0 How Do I and Troubleshooting Forum
    Replies: 1
    Last Post: Thu 27th May '04, 10:01pm
  2. Have to downgrade - but HOW?
    By Apoc_ in forum vBulletin 3.0 How Do I and Troubleshooting Forum
    Replies: 16
    Last Post: Sun 2nd May '04, 6:31pm
  3. Downgrade From 2.3.4 to 2.2.8
    By Wolfy.2k in forum vBulletin 2 'How Do I' and Troubleshooting
    Replies: 6
    Last Post: Thu 15th Jan '04, 3:16pm
  4. Downgrade
    By Celtic_Mad in forum vBulletin 3.0 How Do I and Troubleshooting Forum
    Replies: 3
    Last Post: Sun 11th Jan '04, 7:16pm
  5. '/var/lib/mysql/mysql.sock' [errors]
    By Koss in forum vBulletin 2 'How Do I' and Troubleshooting
    Replies: 6
    Last Post: Thu 18th Jul '02, 9:26am

Bookmarks

Posting Permissions

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts