1
deka87
The same notification is sent at a rate of 2 minutes.
  • 2009/10/30 15:23

  • deka87

  • Friend of XOOPS

  • Posts: 1125

  • Since: 2007/10/5


Hi,

I've got a mail from my user.

Quote:

Hi,

I've been receiving the same notification since yesterday at a rate of 2 per minute. I have deactivated notifications, but I continue receiving the notification at the same speed rate. Could you please solve this as soon as possible, because it is starting to get very annoying?

Thank you,


Does anybody know what that could be? Thanks in advance!

2
deka87
Re: The same notification is sent at a rate of 2 minutes.
  • 2009/10/30 15:54

  • deka87

  • Friend of XOOPS

  • Posts: 1125

  • Since: 2007/10/5


he said he's disabled notifications on /notifications.php but still keeps receiving them. i dont understand how this can happen if notifications are only sent when i approve a new add posted. something makes me think the problem is on his side.

3
ghia
Re: The same notification is sent at a rate of 2 minutes.
  • 2009/10/30 18:19

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


If you don't have any Cron jobs, notifications are only sent at the event (posting) itself.

Probably there is a mail server which is in error. It could be yours, his ISP, or some between.

Contact your hoster to eventually reset the mailer (maybe you might have an option on your website admin panel to do so) and advice your user the same.

4
deka87
Re: The same notification is sent at a rate of 2 minutes.
  • 2009/10/31 11:40

  • deka87

  • Friend of XOOPS

  • Posts: 1125

  • Since: 2007/10/5


thanks ghia i have contacted my hosting provider with this issue

5
deka87
Re: The same notification is sent at a rate of 2 minutes.
  • 2009/11/9 16:03

  • deka87

  • Friend of XOOPS

  • Posts: 1125

  • Since: 2007/10/5


it happened again. the user received around 90 emails of the same notification. my hosting provider replying that their mailing server is alright and there is something on my site. the notification sending script modules/catads/adsmode.php has been heavily hacked before but it worked alright till i upgraded to 2.4. maybe some code incompatibility? guys plz check the code:

//notifications hack 

$user_handler =& xoops_getmodulehandler('profile''profile'); 

$criteria1 = new CriteriaCompo(new Criteria('source_language'$ads->getVar('ads_lang1'))); 
$criteria1->add(new Criteria('target_language'$ads->getVar('ads_lang2'))); 

$criteria2 = new CriteriaCompo(new Criteria('source_language'$ads->getVar('ads_lang2')));
$criteria2->add(new Criteria('target_language'$ads->getVar('ads_lang1'))); 

$criteria = new CriteriaCompo($criteria1); 
if (
$vice_versa == 1) { 
    
$criteria->add($criteria2'OR'); 


$users $user_handler->getList($criteria); 
unset(
$criteria$criteria1$criteria2); 

//hack if no user found
if (!is_array($users)|| (count($users) == 0)) { 
   
$users = array('999999999'); //this a userid that will not be found. 
}
//end of hack

$user_list array_keys($users);

$notification_handler->triggerEvent('global'0'new_ads'$tags$user_list); 

//end of hack
        
$notification_handler->triggerEvent('category'$cat_id'new_ads'$tags$user_list);
        
$notification_handler->triggerEvent('ads'$ads_id'approve'$tags);
    } else {
        
$messagesent _AM_CATADS_ERROR_UPDATE;
    }
    
redirect_header("index.php?op=show&sel_status=2"1$messagesent);
    exit();
}

6
deka87
Re: The same notification is sent at a rate of 2 minutes.
  • 2009/11/10 15:46

  • deka87

  • Friend of XOOPS

  • Posts: 1125

  • Since: 2007/10/5


this is very urgent guys

7
ghia
Re: The same notification is sent at a rate of 2 minutes.
  • 2009/11/11 7:57

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Do you use a backup module?

8
deka87
Re: The same notification is sent at a rate of 2 minutes.
  • 2009/11/11 9:19

  • deka87

  • Friend of XOOPS

  • Posts: 1125

  • Since: 2007/10/5


Quote:
Do you use a backup module?


what do you mean, ghia? btw is everything alright with the code so far?

it usually happens when i submit a job that is sent to a lot of users (a lot of users meet the job criteria) and it seems like only one of them is faced the problem. if i submit a job notification of which is sent to only several users they don't report any problems. i've got mail logs if this can help.

9
ghia
Re: The same notification is sent at a rate of 2 minutes.
  • 2009/11/11 11:31

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


I only saw a report on XOOPS France for what seems a similar problem. (Maybe not, because there was a suggestion to check preferences for not sending table by table).
But you get it with notifications, when there are a lot of them. Maybe the mailserver get overwhelmed by the amount. Do you have an idea about the number of mails involved?
Can you see the repeatings or result codes in your mail log?

10
deka87
Re: The same notification is sent at a rate of 2 minutes.
  • 2009/11/11 12:08

  • deka87

  • Friend of XOOPS

  • Posts: 1125

  • Since: 2007/10/5


there are usually around 100 - 300 hundred notifications sent at a time when I get this problem. i'll check with the log tonight and report tomorrow. thanks

Login

Who's Online

150 user(s) are online (72 user(s) are browsing Support Forums)


Members: 0


Guests: 150


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Jun 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits