Even after uninstalling and reinstalling with just the server, performance and update modules I keep getting the following errors when I create a node for a d6 host that runs the sentry client. I am probably missing something obvious?

Upon node edit I note the (remote) HOSTNAME is not saved.

Sentry project home page, documentation page and demonstration page do not seem to be available.

3x warning: call_user_func_array() expects parameter 2 to be array, null given in /var/www/drupal6/sites/all/modules/sentry_server/sentry_server.module on line 706.
3x warning: Invalid argument supplied for foreach() in /var/www/drupal6/sites/all/modules/sentry_server/sentry_server.module on line 712.
1x warning: Invalid argument supplied for foreach() in /var/www/drupal6/sites/all/modules/sentry_server/sentry_server.module on line 724.
3x warning: in_array() expects parameter 2 to be array, null given in /var/www/drupal6/sites/all/modules/sentry_server/sentry_server.module on line 77.

Comments

cialog’s picture

open modules/sentry_server/sentry_server.module
and change the following lines to fix it:

line 264 should read

  if (!empty($sentry_site->hostname)) {

and line 706

      $return[$module] = call_user_func_array($function, array());
asaal’s picture

Hi,

here is a patch for the "array" and "hostname" problem.

cialog’s picture

thanks @asaal! note to myself: learn how to do patches ...

denes.szabo’s picture

Download the patch into the sentry_server directory then
patch -p1 < sentry_server_array_and_hostname.module.patch

denes.szabo’s picture

Status: Active » Reviewed & tested by the community

The patch #2 seems fix the problems. Thx to asaal.

snufkin’s picture

Status: Reviewed & tested by the community » Needs work

This doesn't seem to work for me unfortunately.

➜ sentry_server git:(6.x-1.x) ✗ patch -p1 < sentry_server_array_and_hostname.module.patch
patching file sentry_server.module
Hunk #1 FAILED at 261.
Hunk #2 succeeded at 338 (offset -11 lines).
Hunk #3 succeeded at 373 (offset -11 lines).
Hunk #4 succeeded at 498 (offset -19 lines).
Hunk #5 succeeded at 506 (offset -19 lines).
Hunk #6 succeeded at 554 with fuzz 1 (offset -45 lines).
Hunk #7 FAILED at 656.
2 out of 7 hunks FAILED -- saving rejects to file sentry_server.module.rej
➜ sentry_server git:(6.x-1.x) ✗

snufkin’s picture

Status: Needs work » Fixed

My bad, I checked out the wrong branch. Committed, thanks for the patch!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.