phpBBHacks.com - SQL Error : 1054 Unknown column 'pt.post_id' in 'on clause'
Community management insight at ManagingCommunities.com
StatsForums Home   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in
FAQFAQ   SearchSearch   MemberlistMemberlist   TutorialsTutorials   ContactContact Us
Username:    Password:
Remember Me?    
   I Lost My Password!
Bookmark and Share
Post new topic   Reply to topic    phpBBHacks.com Support Forums Forum Index -> General phpBB 2 Support and Discussion
 See a User Guidelines violation? Please contact us.
Author Message

Jay-Jay
Not So New User

Joined: 03 Jun 2007
Posts: 84

PostPosted: March 31st 2010, 3:08 pm    Post subject: SQL Error : 1054 Unknown column 'pt.post_id' in 'on clause' Reply with quote

I am getting this strange error on my phpbb2 forum. It's been many months since I have added any hacks or modified the pages. So I am confused as to what could have caused this error below. Please help.


General Error Report
Quote:
General Error

Could not obtain post/user information.

DEBUG MODE

SQL Error : 1054 Unknown column 'pt.post_id' in 'on clause'

SELECT u.username, u.user_id, u.user_posts, u.user_from, u.user_logo, u.user_website, u.user_email, u.user_icq, u.user_aim, u.user_yim, u.user_skype, u.user_regdate, u.user_lastvisit, 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, u.user_allowdefaultavatar, u.user_allow_viewonline, u.user_session_time, u.user_birthday, u.user_next_birthday_greeting, u.user_country, p.*, pt.post_text, pt.post_subject, pt.bbcode_uid, t.topic_poster, er.text, er.user FROM posts p, users u, posts_text pt, topics t LEFT JOIN edit_reason er ON pt.post_id = er.post_id WHERE p.topic_id = 5359 AND t.topic_id = p.topic_id AND pt.post_id = p.post_id AND u.user_id = p.poster_id AND p.post_flagged <> 1 ORDER BY p.post_time ASC LIMIT 0, 20

Line : 507
File : viewtopic.php

_________________
phpBBhacks.com is the best! Great support! Great hacks!


Last edited by Jay-Jay on March 31st 2010, 3:44 pm; edited 1 time in total
Back to top
View user's profile Send private message

~HG~
Dedicated User

Joined: 08 Nov 2003
Posts: 3913
Location: Australia

PostPosted: March 31st 2010, 3:30 pm    Post subject: Reply with quote

Can you please edit your post and enclose viewtopic.php in the BBCode code brackets so we can view it and save it to find line 507 and then we might be able to assist you with resolving your problem.
_________________
~HG~

|| rodneyangell.com || || phpbb-tutorials.com ||My Hacks
Back to top
View user's profile Send private message Send e-mail Visit poster's website

Jay-Jay
Not So New User

Joined: 03 Jun 2007
Posts: 84

PostPosted: March 31st 2010, 3:49 pm    Post subject: Reply with quote

~HG~ wrote:
Can you please edit your post and enclose viewtopic.php in the BBCode code brackets so we can view it and save it to find line 507 and then we might be able to assist you with resolving your problem.

Sorry, I did try but I think it gets cropped. Here is a text file you can download for viewtopic.

download link: http://rapidshare.com/files/370497159/viewtopic.txt.html

Thanks for the help!!
_________________
phpBBhacks.com is the best! Great support! Great hacks!
Back to top
View user's profile Send private message

~HG~
Dedicated User

Joined: 08 Nov 2003
Posts: 3913
Location: Australia

PostPosted: April 1st 2010, 2:58 pm    Post subject: Reply with quote

The rapidshare file seems to be inconsistent with way too many line breaks so I can't assist with the problem using that file.

What you can do is to upload a copy to your server simply by changing the name of the file from viewtopic.php to viewtopic.txt and posting a direct link to it here.

That way we will see the file exactly as it is on your server.
_________________
~HG~

|| rodneyangell.com || || phpbb-tutorials.com ||My Hacks
Back to top
View user's profile Send private message Send e-mail Visit poster's website

Jay-Jay
Not So New User

Joined: 03 Jun 2007
Posts: 84

PostPosted: April 1st 2010, 5:30 pm    Post subject: Reply with quote

HG, I tried uploading a text file copy of that page on my server, and when I tried to check if the link was working good, it would result in a strange error. This is why I then attempted to try rapidshare to be able to give you a copy of this file.

I wonder if this error is related to my initial problem? Here is the link: http://www.mixingonbeat.com/media/support/viewtopic.txt

I just sent a support ticket to my host provider to inquire if the problem is on their end. I will let you know in the next 24 hrs to see if any improvement has been achieved.

Update

Well it seems that my server was having more than this problem yesterday. I have addon domains on this server and I could not view those pages. Would get an error when trying to view them. I sent a support ticket with my host and they fixed that problem.

But this problem still lingers. I did a bit of investigating, and discovered if that I use the IP address to view the posts on my site, that I can view them without getting the general error above. But if I view them with the www domain name of my site, I get the SQL Error that I explained when starting this topic.

I just sent an example to my host support team with two links, so they can see that if I use the www domain name I get the error, but when I use the IP address of my site, no more errors.

Here is an example for you. Recall the txt file you can't view on my site? Here is the links again, note one has my domain name and that one doesn't work, while the other has the IP address and that one works great.

Not working: http://www.mixingonbeat.com/media/support/viewtopic.txt
working: http://66.49.205.144/media/support/viewtopic.txt

I must admit this issue has me a bit confused on what could have caused this issue. Any takers??
_________________
phpBBhacks.com is the best! Great support! Great hacks!
Back to top
View user's profile Send private message

joetraff
New User

Joined: 20 May 2010
Posts: 2

PostPosted: May 21st 2010, 7:56 am    Post subject: Reply with quote

Thanks for the replies.
It helped me a lot.
_________________
how to make money online
Back to top
View user's profile Send private message

Jay-Jay
Not So New User

Joined: 03 Jun 2007
Posts: 84

PostPosted: May 21st 2010, 12:48 pm    Post subject: Reply with quote

Sorry, never came back to report how it got fixed.

My host decided on their own to move my site to a new server. But this new server was using now PHP 5. This had caused my site to malfunction as explained above. After I consulted with my host, they moved me back to another server that was still supporting PHP 4. The problems went away after that. I hope this helps.
_________________
phpBBhacks.com is the best! Great support! Great hacks!
Back to top
View user's profile Send private message

Patrick
Admin/Webmaster

Joined: 11 May 2001
Posts: 17279
Location: Harbinger, NC, U.S.A.

PostPosted: May 26th 2010, 1:27 pm    Post subject: Reply with quote

Thanks Jay-Jay.

Patrick
_________________
Patrick O'Keefe - phpBBHacks.com Administrator - Feedback? Questions? Please Contact Me!
User Guidelines - Featured phpBB - Featured Author - phpBBHacks.com Awards - Supported Sites - About Us
Author, Managing Online Forums - A Practical Guide to Community Management
phpBB 3 Tutorials: Add Hacks | Clear Your Cache | Fix Missing Images | phpBB 3 Permissions Guide
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    phpBBHacks.com Support Forums Forum Index -> General phpBB 2 Support and Discussion All times are GMT - 6 Hours
Page 1 of 1
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Links: Big Message Boards - Free JavaScript - phpBB2 - phpbb styles - Suporte phpBB - phpBB Česky - phpBB Turkiye - phpBBArabia.com - phpBB-fr.com - Romanian phpBB online community - phpBB-TW.net - phpBBservice.nl - phpBB Brasil - phpBB Portugal - phpBBpersian.com

Network: iFroggy Hosting - PhotoshopForums.com - Managing Online Forums - ManagingCommunities.com - CommunityAdmins.com - KarateForums.com - Bad Boy Blog - SodaRatings.com - Patrick O'Keefe

< Advertising - Contact Us - Disclosure Policy - Staff - User Guidelines >

Copyright © 2001-2012. iFroggy Network, phpBBHacks.com. All Rights Reserved. Privacy Policy. We Support phpBBHacks.com (of course!).
Powered by phpBB © phpBB Group. phpBB SEO. We are in no way affiliated with the phpBB Group. phpBB is copyright to the phpBB Group.