To jest tylko wersja do druku, aby zobaczyć pełną wersję tematu, kliknij TUTAJ
phpBB2 by Przemo
Support forów phpBB2 modified by Przemo

Bazy danych SQL - Could not obtain post/user information.

ToXiC206 - 21-01-2010, 21:34
Temat postu: Could not obtain post/user information.
Witam serdecznie.

Mam problem z bazą danych, mianowicie nie można wyświetlać postów na forum oraz pokazuje się taki błąd:
Kod:

Could not obtain post/user information.

DEBUG MODE

SQL Error : 1064 Something is wrong in your syntax obok '.user_lat, u.user_long, FROM phpbb_posts p LEFT JOIN phpbb_posts_text_histor' w linii 2

SELECT p.post_id, p.post_time, p.enable_sig, p.enable_html, p.enable_smilies, p.post_edit_count, p.post_edit_time, p.post_username, p.post_lp, p.post_approve, p.poster_delete, p.post_edit_by, p.post_parent, p.post_icon, p.user_agent, p.post_attachment, p.post_expire, u.user_sig_image, u.user_birthday, u.user_from, u.user_regdate, u.user_gender, u.user_aim, u.user_viewaim, u.user_avatar_width, u.user_avatar_height, u.user_id, u.username, u.user_level, u.user_jr, u.user_allowhtml, u.user_posts, u.user_allowsig, u.user_sig, u.user_sig_bbcode_uid, u.user_allowsmile, u.user_avatar_type, u.user_allowavatar, u.user_avatar, u.user_rank, u.user_viewemail, u.user_website, u.user_email, u.can_custom_ranks, u.user_custom_rank, u.user_session_time, u.user_allow_viewonline, pt.post_text, pt.bbcode_uid, pt.post_subject , ph.th_post_id u.user_lat, u.user_long, FROM phpbb_posts p LEFT JOIN phpbb_posts_text_history ph ON (ph.th_post_id = p.post_id) LEFT JOIN phpbb_posts_text pt ON (pt.post_id = p.post_id) LEFT JOIN phpbb_users u ON (u.user_id = p.poster_id) WHERE p.topic_id = 11 GROUP by p.post_id ORDER BY p.post_order, p.post_time ASC LIMIT 0, 15

Line : 865
File : viewtopic.php


Jak można to naprawić??

Pozdrawiam,

koziolek - 21-01-2010, 21:36

W pliku viewtopic.php brakuje Ci przecinka przed:
Kod:
u.user_lat
i masz niepotrzebny przecinek po:
Kod:
u.user_long

ToXiC206 - 22-01-2010, 00:03

Dziękuje za pomoc.

Pozdrawiam,

gradziel1041 - 22-01-2010, 00:07

czekaj tez mam takie cos ale nie wiem gdzie jest ten plik viewtopic.php powie ktoś?
koziolek - 22-01-2010, 11:59

gradziel1041, w katalogu forum na FTP ;]
minister1234 - 24-01-2010, 22:50

o zal, tam trzeba ID a ja nie zapisalem przy rejestracji:/
krystianr - 25-01-2010, 10:09

phpBB2 by Przemo :: View topic - ID - skąd wziąć ?
Larentia - 07-02-2013, 00:07

gdzie mogę znaleźć katalog forum na ftp?


Powered by phpBB modified by Przemo © 2003 phpBB Group