Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Error in Sending PM to buddies  (Read 4084 times)

0 Members and 1 Guest are viewing this topic.

Qayyom

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 52
    • www.PICSnCLIPS.net
Error in Sending PM to buddies
« on: March 22, 2007, 12:55:14 pm »

I wrote a short massage to my friend/ Buddy.

after writing, i wait (more than 30 Sec) even few minutes, but I face this error many times after waiting more time.

plz

you can check it by this ID

user ID:  cheetah
Passd:    salman

« Last Edit: March 26, 2007, 08:11:52 am by Stramm »
Logged
Qayyom Ashraf .:|:. Karachi-PK
 *Image Removed*

Stramm

  • Moderator
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Error in Sending PM to buddies
« Reply #1 on: March 22, 2007, 01:56:02 pm »

known issue... do you use the latest modpack version (1.4.10)  ?? If so, then I haven't published the fix yet

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Error in Sending PM to buddies
« Reply #2 on: March 23, 2007, 08:55:36 am »

The page http://www.picsnclips.net/ appears to be using cpg1.4.10 modpack v1
Logged

Stramm

  • Moderator
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Error in Sending PM to buddies
« Reply #3 on: March 23, 2007, 12:11:50 pm »

I see, the latest PMS fix isn't in the downloadable zip yet

find in pms_send.php
Code: [Select]
$result = cpg_db_query("SELECT posted FROM  {$CONFIG['TABLE_PMS']} where sender_id='".(USER_ID)."' ORDER BY posted DESC LIMIT 1");
if(list($last) = mysql_fetch_row($result)){
if(((time() - date('Z')) - $last) < $CONFIG['pms_post_flood'])


and replace with
Code: [Select]
$result = cpg_db_query("SELECT posted FROM {$CONFIG['TABLE_PMS']} where sender_id='".(USER_ID)."' ORDER BY posted DESC LIMIT 1");
if(list($last) = mysql_fetch_row($result)){
if(((localised_timestamp(-1)) - $last) < $CONFIG['pms_post_flood'])

it may be, that already existing timestamps (from already sent PMs) in the db need to 'timeout'. How long that'll need depends on timezone differences. Unfortunately I'd used my own system to determine the timezone difference for users. It worked pretty well but made use of my shoutbox. When porting the 1.3x version to 1.4 the shoutbox got removed and your problems occured within some bridged environments

Qayyom

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 52
    • www.PICSnCLIPS.net
Re: Error in Sending PM to buddies
« Reply #4 on: March 26, 2007, 07:07:41 am »

Thanks a lot.

after editing, now it is working very well.

thanks again...
Logged
Qayyom Ashraf .:|:. Karachi-PK
 *Image Removed*
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 20 queries.