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.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | sentry_server_array_and_hostname.module.patch | 3.64 KB | asaal |
Comments
Comment #1
cialog commentedopen modules/sentry_server/sentry_server.module
and change the following lines to fix it:
line 264 should read
and line 706
Comment #2
asaal commentedHi,
here is a patch for the "array" and "hostname" problem.
Comment #3
cialog commentedthanks @asaal! note to myself: learn how to do patches ...
Comment #4
denes.szabo commentedDownload the patch into the sentry_server directory then
patch -p1 < sentry_server_array_and_hostname.module.patchComment #5
denes.szabo commentedThe patch #2 seems fix the problems. Thx to asaal.
Comment #6
snufkin commentedThis 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) ✗
Comment #7
snufkin commentedMy bad, I checked out the wrong branch. Committed, thanks for the patch!