Quote:
Originally Posted by hagi
I set it up and it caused my PM to stop working. So I un-installed the hack and now this is what I get when I click on my normal attachments.
------------------------------------
Database error in vBulletin 3.0.0 Release Candidate 2:
Invalid SQL:
SELECT filename, filesize, postid, attachment.userid,
filedata,
dateline,
visible, mimetype, NOT ISNULL(deletionlog.primaryid) AS isdeleted, private
FROM vb3_attachment AS attachment
LEFT JOIN vb3_attachmenttype AS attachmenttype ON(attachmenttype.extension = SUBSTRING_INDEX(attachment.filename, '.', -1))
LEFT JOIN vb3_deletionlog AS deletionlog ON(attachment.postid = deletionlog.primaryid AND type = 'post')
WHERE attachmentid = 1
mysql error: Unknown column 'private' in 'field list'
mysql error number: 1054
---------------------------------
Any idea to at least fix my attachment table so I can try again?
|
Did you run the queries almost at the end of the file. You are trying to select a "private" column, but your database doesn't have one, until you add the columns there would be some database errors. These are the queries:
ALTER TABLE attachment add private int not null;
ALTER TABLE pmtext add attach int not null;
ALTER TABLE attachment add index (private);
You can run any query in the admin control panel, almost at the end in a section called "Execute SQL Query", for you to be able to run any query in the config.php you should have a line like $canrunqueries = '1';
changing that 1 for whatever your userid is, that is. Or, if your host provides you with phpmyadmin then you can run queries from that.
Please be aware that depending on the size of your attachment table the first query can take a while.