PDA

View Full Version : Minor change crashed my database!


tm21
12-19-2003, 01:27 AM
After adding the min days registered to start a new thread hack and the min posts to start a new thread hack I am getting a mysql error number: 1136 when I tried to add a new section to my forum. The rest of the error looks like this:


VALUES
(NULL,'1','Special Project 2: The Links Engine','The links engine is ready to go, all we need now are links. Add your link dumps here, and if you want to help add links please ask.','1','35','6',
'','1','1','30','','',
'0','1','1','1','1','1',
'1','1','1','0','14','3')
mysql error: Column count doesn't match value count at row 1

I think these values:
styleoverride,allowratings,countposts,moderateatta ch,minposts)

correspond to '1','1','1','0','14','3')

The value of 14 is supposed to correspond to the value of minthread, but I see from the hack of min posts to start a new topic that the minthread has been left out. I thought it would be a simple fix to change this in forum.php:

(forumid,styleid,title,description,active,displayo rder,parentid,parentlist,allowposting,cancontainth reads,daysprune,newpostemail,newthreademail,modera tenew,allowhtml,allowbbcode,allowimages,allowsmili es,allowicons,styleoverride,allowratings,countpost s,moderateattach,minposts)

and add minthread metween moderateattach and minposts.

When I upped the change and tried to add a new section it crashed my whole board :( I reupped the old forum.php file minus the changes, but my board is still down. What the hell went wrong?

g-force2k2
12-19-2003, 10:38 AM
What error are you getting now?

It would seem that uploading the unhacked forum.php should fix the changes.

Regards,
g-force2k2

tm21
12-19-2003, 01:29 PM
Now every page of my board says:

There seems to have been a slight problem with the The Forum database.
Please try again by pressing the refresh button in your browser.

An E-Mail has been dispatched to our Technical Staff, who you can also contact if the problem persists.

We apologise for any inconvenience.

I am getting a lot of emails like this too:

Database error in vBulletin 2.3.3:

Invalid SQL: SELECT user.*,userfield.* FROM user LEFT JOIN userfield ON
userfield.userid=user.userid WHERE user.userid='2124'
mysql error: Can't open file: 'userfield.MYD'. (errno: 145)

mysql error number: 1016

Lesane
12-19-2003, 01:47 PM
Upload/execute the file repair.php