Log in Register FAQ Memberlist Search Welcome to RCF - WHF Forum Index
alt : test.swf
Welcome to RCF - WHF
4fx3.gif 
calendar_open_closeCalendar 
[Solved] problem with private messages
Post new topic   Reply to topic View previous topic :: View next topic
Welcome to RCF - WHF Forum Index -> Area 51 - phpBB & Easymod Tech Support Add To Bookmarks
[Solved] problem with private messages
PostPosted: 05/19/2007 1:57 PM Reply with quote
Citation
Chris Powell
Citation
Posts 1332
Word Cnt. 86,126
BDay Feb 11
Sign Aquarius
Sex Sex:Male
Joined: Mar 31, 2007
Local time: 7:15 PM
Location: Birmingham, UK.
greatbrE.gif
When I click on a pm message i get this

Code:
Could not query private message post information

DEBUG MODE

SQL Error : 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' u2.username AS username_2, u2.user_id AS user_id_2, u.user_sig_bbcode_uid, u.us' at line 1

SELECT u.username AS username_1, u.user_id AS user_id_1, u.user_session_time AS user_session_time_1, u.user_allow_viewonline,, u2.username AS username_2, u2.user_id AS user_id_2, u.user_sig_bbcode_uid, u.user_posts, u.user_from, 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_avatar, pm.*, pmt.privmsgs_bbcode_uid, pmt.privmsgs_text FROM phpbb_privmsgs pm, phpbb_privmsgs_text pmt, phpbb_users u, phpbb_users u2 WHERE pm.privmsgs_id = 5 AND pmt.privmsgs_text_id = pm.privmsgs_id AND pm.privmsgs_to_userid = 2 AND ( pm.privmsgs_type = 0 OR pm.privmsgs_type = 1 OR pm.privmsgs_type = 5 ) AND u.user_id = pm.privmsgs_from_userid AND u2.user_id = pm.privmsgs_to_userid

Line : 244
File : privmsg.php


dontknow
Back to Top
View user's profile Find all posts by Chris Powell Send private message   Visit poster's website
Re: [Solved] problem with private messages
PostPosted: 05/19/2007 6:40 PM Reply with quote
Citation
Chris Powell
Citation
Posts 1332
Word Cnt. 86,126
BDay Feb 11
Sign Aquarius
Sex Sex:Male
Joined: Mar 31, 2007
Local time: 7:15 PM
Location: Birmingham, UK.
greatbrE.gif
Btw I think since installing the email links directly to new pms mod I got this error  dontknow
Back to Top
View user's profile Find all posts by Chris Powell Send private message   Visit poster's website
Re: problem with private messages
PostPosted: 05/19/2007 6:50 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 2:15 PM
Location: St Pete, FL
peace.gif
There's an extra comma in the query:

Code:
u.user_allow_viewonline,, u2.username AS username_2

So this is what I did to correct the problem:

OPEN
privmsg.php

FIND
Code:
u.user_allow_viewonline,,

REPLACE WITH
Code:
u.user_allow_viewonline,

headbang
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: [Solved] problem with private messages
PostPosted: 05/19/2007 7:01 PM Reply with quote
Citation
Chris Powell
Citation
Posts 1332
Word Cnt. 86,126
BDay Feb 11
Sign Aquarius
Sex Sex:Male
Joined: Mar 31, 2007
Local time: 7:15 PM
Location: Birmingham, UK.
greatbrE.gif
Woah I didn't notice that lol  Shocked niceone Nightrider  Applause
Back to Top
View user's profile Find all posts by Chris Powell Send private message   Visit poster's website
Re: problem with private messages
PostPosted: 05/19/2007 11:46 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 2:15 PM
Location: St Pete, FL
peace.gif
It would be easy to overlook, especially if you are not familiar with SQL...

munky2
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: [Solved] problem with private messages
PostPosted: 05/20/2007 4:07 AM Reply with quote
Citation
Chris Powell
Citation
Posts 1332
Word Cnt. 86,126
BDay Feb 11
Sign Aquarius
Sex Sex:Male
Joined: Mar 31, 2007
Local time: 7:15 PM
Location: Birmingham, UK.
greatbrE.gif
How did you notice just that one extra comma? do you use software to detect errors or something or did you just see it from the debug window ... 8)
Back to Top
View user's profile Find all posts by Chris Powell Send private message   Visit poster's website
Re: [Solved] problem with private messages
PostPosted: 05/20/2007 4:44 AM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 2:15 PM
Location: St Pete, FL
peace.gif
The error message tells you where the error is close to, so then I looked for anything that was obviously wrong.  I was a database programmer in a previous life, so I know SQL pretty good.  An obvious error to me may not be so to an untrained eye...

munky2
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: [Solved] problem with private messages
PostPosted: 05/20/2007 4:50 AM Reply with quote
Citation
Chris Powell
Citation
Posts 1332
Word Cnt. 86,126
BDay Feb 11
Sign Aquarius
Sex Sex:Male
Joined: Mar 31, 2007
Local time: 7:15 PM
Location: Birmingham, UK.
greatbrE.gif
I see, ok then. Thanks Very Happy
Back to Top
View user's profile Find all posts by Chris Powell Send private message   Visit poster's website
Re: [Solved] problem with private messages
PostPosted: 05/20/2007 5:43 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 2:15 PM
Location: St Pete, FL
peace.gif
As always, you are quite welcome Chris...

banana  blob8  banana  blob8  banana  blob8  banana
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
 Post new topic  Reply to topic
Information
Welcome to RCF - WHF Forum Index -> Area 51 - phpBB & Easymod Tech Support

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
You cannot attach files in this forum
You cannot download files in this forum
All times are GMT - 5 Hours

Page 1 of 1


Add To Bookmarks

 
  
  


  Google

Powered by phpBB © 2001, 2005 phpBB Group

Page generation time: 0.0787s (PHP: 56% - SQL: 44%) - SQL queries: 54 - GZIP disabled - Debug on