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] Error message
Post new topic   Reply to topic View previous topic :: View next topic
Goto page: 1, 2, 3  Next
Welcome to RCF - WHF Forum Index -> Area 51 - phpBB & Easymod Tech Support Add To Bookmarks
[Solved] Error message
PostPosted: 06/14/2007 1:46 PM Reply with quote
Citation
~^Karen^~
Citation
Posts 556
Word Cnt. 20,326
BDay Jan 26
Sign Aquarius
Sex Sex:Female
Joined: Nov 26, 2006
Local time: 12:00 AM
Location: west midlands:uk
greatbrE.gif
I was just trying to PM someone and i just found out that my private messages have a debug error
Back to Top
View user's profile Find all posts by ~^Karen^~ Send private message   Visit poster's website Yahoo Messenger MSN Messenger
Re: [Solved] Error message
PostPosted: 06/14/2007 2:58 PM Reply with quote
Caravan
FTM
Caravan
Posts 282
Word Cnt. 31,380
BDay Apr 14
Sign Aries
Sex Sex:Female
Joined: Nov 01, 2006
Local time: 7:00 PM
Location: Denver, PA
usaCa.gif
What is the error?
Back to Top
View user's profile Find all posts by FTM Send private message   Visit poster's website Yahoo Messenger
Re: [Solved] Error message
PostPosted: 06/14/2007 3:13 PM Reply with quote
Citation
~^Karen^~
Citation
Posts 556
Word Cnt. 20,326
BDay Jan 26
Sign Aquarius
Sex Sex:Female
Joined: Nov 26, 2006
Local time: 12:00 AM
Location: west midlands:uk
greatbrE.gif
Code:
Could not insert/update private message sent info.

DEBUG MODE

SQL Error : 1062 Duplicate entry '0' for key 1

INSERT INTO phpbb_privmsgs (privmsgs_type, privmsgs_subject, privmsgs_from_userid, privmsgs_to_userid, privmsgs_date, privmsgs_ip, privmsgs_enable_html, privmsgs_enable_bbcode, privmsgs_enable_smilies, privmsgs_attach_sig) VALUES (1, 'test', 3, 1, 1181851968, '5409a86f', 1, 1, 1, 1)

Line : 1375
File : privmsg.php


Sorry couldnt add it earlier
Back to Top
View user's profile Find all posts by ~^Karen^~ Send private message   Visit poster's website Yahoo Messenger MSN Messenger
Re: [Solved] Error message
PostPosted: 06/14/2007 3:38 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: 12:00 AM
Location: Birmingham, UK.
greatbrE.gif
Going by the duplicate entry message I think the tables are already in the database Karen
Back to Top
View user's profile Find all posts by Chris Powell Send private message   Visit poster's website
Re: [Solved] Error message
PostPosted: 06/14/2007 3:44 PM Reply with quote
Citation
~^Karen^~
Citation
Posts 556
Word Cnt. 20,326
BDay Jan 26
Sign Aquarius
Sex Sex:Female
Joined: Nov 26, 2006
Local time: 12:00 AM
Location: west midlands:uk
greatbrE.gif
yea i get that, but why is it there lol, i never use pms that often, the only time i wante dto use it was to pm every1 at the same time but theres nothing that does that, so today was the first time in a long time iv tried to pm someone and it aint working and i cant even say how long its been like that coz like i say i dont use them and my members usually leave a message on the forum if they have problems not by pm!
Back to Top
View user's profile Find all posts by ~^Karen^~ Send private message   Visit poster's website Yahoo Messenger MSN Messenger
Re: [Solved] Error message
PostPosted: 06/14/2007 3:50 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: 12:00 AM
Location: Birmingham, UK.
greatbrE.gif
Oh lol ok, well find what made the SQL changes and just remove them then. Providing the you restored all the original files back when you removed the mod you should be able use the standard pm again
Back to Top
View user's profile Find all posts by Chris Powell Send private message   Visit poster's website
Re: [Solved] Error message
PostPosted: 06/14/2007 4:09 PM Reply with quote
Caravan
FTM
Caravan
Posts 282
Word Cnt. 31,380
BDay Apr 14
Sign Aries
Sex Sex:Female
Joined: Nov 01, 2006
Local time: 7:00 PM
Location: Denver, PA
usaCa.gif
Karen, open your privmsg.php and find the Line : 1375 and see if there is some duplicate code in there.  Heart
Back to Top
View user's profile Find all posts by FTM Send private message   Visit poster's website Yahoo Messenger
Re: [Solved] Error message
PostPosted: 06/14/2007 4:21 PM Reply with quote
Citation
~^Karen^~
Citation
Posts 556
Word Cnt. 20,326
BDay Jan 26
Sign Aquarius
Sex Sex:Female
Joined: Nov 26, 2006
Local time: 12:00 AM
Location: west midlands:uk
greatbrE.gif
ermmmm.... iv looked but i cant see anything thats duplicated, maybe iv missed summat, il keep looking lol
Back to Top
View user's profile Find all posts by ~^Karen^~ Send private message   Visit poster's website Yahoo Messenger MSN Messenger
Re: Error message
PostPosted: 06/14/2007 5:03 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: 7:00 PM
Location: St Pete, FL
peace.gif
Karen, try it again.  For some strange reason, the privmsgs_id was set to allow 0 for the default rather than auto-incrementing the value.  Since the privmsgs_id field is a keyed (indexed) field, it has to have a unique value assigned to it, so you could only have one record with the privmsgs_id field value set to 0, so setting the default to zero made no sense.  I changed it to auto-increment in your Live database, so it should be working correctly now...

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] Error message
PostPosted: 06/14/2007 5:09 PM Reply with quote
Citation
~^Karen^~
Citation
Posts 556
Word Cnt. 20,326
BDay Jan 26
Sign Aquarius
Sex Sex:Female
Joined: Nov 26, 2006
Local time: 12:00 AM
Location: west midlands:uk
greatbrE.gif
It works fine now thanks!! No wonder i couldn't find the problem though!!

I tested this in my test forum earlier and got a different error:

Code:
Warning: Division by zero in /home/toddlers/public_html/test/includes/functions_cash.php on line 1255

Warning: Cannot modify header information - headers already sent by (output started at /home/toddlers/public_html/test/includes/functions_cash.php:1255) in /home/toddlers/public_html/test/includes/functions.php on line 1120
Back to Top
View user's profile Find all posts by ~^Karen^~ Send private message   Visit poster's website Yahoo Messenger MSN Messenger
 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
Goto page: 1, 2, 3  Next
Page 1 of 3


Add To Bookmarks

 
  
  


  Google

Powered by phpBB © 2001, 2005 phpBB Group

Page generation time: 0.1424s (PHP: 47% - SQL: 53%) - SQL queries: 57 - GZIP disabled - Debug on