Log in

View Full Version : MySQL Error! Help Please!


SiriusBlack22
08-04-2006, 09:16 PM
Error I get when viewing any thread or member profile (www.hpinaction.com)

Database error in vBulletin 3.6.0:

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,130,150,220,335,509,515,586,589,816,826,828,863 ,1257,1271,1322,2383,2419,2757,2765,2766)
ORDER BY post.dateline;

MySQL Error : Table 'hpinacti_hpinacti.post_parsed' doesn't exist
Error Number : 1146
Date : Friday, August 4th 2006 @ 05:07:04 PM
Script : http://www.hpinaction.com/showthread.php?t=42
Referrer : http://www.hpinaction.com/forumdisplay.php?f=8
IP Address : 67.142.130.18
Username : SiriusBlack22
Classname : vB_Database

Paul M
08-05-2006, 12:00 AM
Already answered on vb.com I believe - reupload the 3.6 files, making sure you overwrite the 3.5 files (because that code is from a 3.5 version of showthread.php).

SiriusBlack22
08-05-2006, 12:28 AM
Oh I fixed that. But what is up with this?!?!

When I upload products:

Database error in vBulletin 3.6.0:

Invalid SQL:
DELETE FROM cron WHERE product = 'chrism_latestthreads' AND volatile = 1;

MySQL Error : Unknown column 'product' in 'where clause'
Error Number : 1054
Date : Friday, August 4th 2006 @ 08:27:52 PM
Script : http://www.hpinaction.com/admincp/plugin.php?do=productimport
Referrer : http://www.hpinaction.com/admincp/plugin.php?do=productadd
IP Address : 67.142.130.42
Username : SiriusBlack22
Classname : vB_Database