usagi
UL: 25 GB DL: 1 MB Ratio: 25600
Joined: 2006-04-22
Posts: 65
|
|
It's been a while since I've been here.
I switched servers and now I'm getting an error message:
Could not obtain post/user information.
DEBUG MODE
SQL Error : 1054 Unknown column 'u.user_id' in 'on clause'
SELECT u.username, u.user_id, u.user_posts, u.user_from, u.user_from_flag, u.user_website, u.user_email, u.user_icq, u.user_aim, u.user_yim, u.user_regdate, u.user_msnm, u.user_viewemail, u.user_rank, u.user_sig, u.user_sig_bbcode_uid, u.user_avatar, u.user_avatar_type, u.user_allowavatar, u.user_allowsmile, p.*, pt.post_text, pt.post_subject, pt.bbcode_uid, bt.u_up_total, bt.u_down_total FROM phpbb_posts p, phpbb_users u, phpbb_posts_text pt LEFT JOIN phpbb_bt_users bt ON u.user_id = bt.user_id WHERE p.topic_id = 1080 AND pt.post_id = p.post_id AND u.user_id = p.poster_id ORDER BY p.post_time ASC LIMIT 0, 15
Line : 475
File : viewtopic.php
When I looked in viewtopic.php I saw another version of the $sql = command:
| Code:
|
$sql = "SELECT u.username, u.user_id, u.user_posts, u.user_from, u.user_from_flag, u.user_website, u.user_email, u.user_icq, u.user_aim, u.user_yim, u.user_regdate, u.user_msnm, u.user_viewemail, u.user_rank, u.user_sig, u.user_sig_bbcode_uid, u.user_avatar, u.user_avatar_type, u.user_allowavatar, u.user_allowsmile, p.*, pt.post_text, pt.post_subject, pt.bbcode_uid, bt.u_up_total, bt.u_down_total, bt.user_id
FROM " . POSTS_TABLE . " p, " . USERS_TABLE . " u, " . POSTS_TEXT_TABLE . " pt, " . BT_USERS_TABLE . " bt
WHERE p.topic_id = $topic_id
$limit_posts_time
AND pt.post_id = p.post_id
AND u.user_id = p.poster_id
AND u.user_id = bt.user_id
ORDER BY p.post_time $post_time_order
LIMIT $start, ".$board_config['posts_per_page'];
|
I tried that and I don't get an error message but when I try to go to some posts that are in the rolling list on the front page I get this:
No posts exist for this topic
This all worked fine before I moved hosts.
Any ideas ? Anyone know how to fix this or would be willing to try ?
Usagi
_________________ Usagi
|
|