Hello,
messaging 6.x-1.1
notification 6.x-1.1
Og 6.x-1.3

these modules working fine with local machine.. when i deploy these in production site it affects entire site.. No mails are going from the site.. also it shows the following error
array_key_exists() [function.array-key-exists]: The first argument should be either a string or an integer in /var/www/html/drupal/sites/all/modules/notifications/notifications.module on line 671

any advice/help to solve this problem.

Thanks for any help!!!!

Comments

lyricnz’s picture

Some reason you're not using the current/supported version of these modules?

http://drupal.org/project/messaging has 6.x-2.0
http://drupal.org/project/notifications has 6.x-2.0

The line reported by the above is the last line of code in:

function notifications_load_subscription($subs, $refresh = FALSE) {
  static $cache = array();
  if (is_object($subs)) {
    $sid = $subs->sid;
    $subscription = $subs;
  }
  else {
    $sid = $subs;
  }
  if ($refresh || !array_key_exists($sid, $cache)) {
...

So that message implies that either $subs->sid or $subs are not being passed correctly. It's not possible to tell why without a backtrace etc.

Try upgrading to the current versions first, anyway.

Tamil-2’s picture

Its working now.. thanks lyricnz