Greetings,

I receive the following error after installing:

warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/example/public_html/sites/all/modules/role_change_notify/role_change_notify.module on line 102.

Any insight into what is going wrong would be appreciated.

Thanks,

Scott

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

rfay’s picture

Title: Error upon installing » Incorrect check on 'token' - should be 'token_actions'

I'm unable to replicate your error, but I do notice an error in the code (see below).

Could you please enable "Token Actions" module and see if the problem goes away? I suspect it will. I think you have token on and token actions is not on.

The error is described here:

function role_change_notify_action_info_alter(&$info) {
  if (!module_exists('token') || !module_exists('trigger')) {
    return;
  }

should be

if (!module_exists('token_action') ...
rfay’s picture

Status: Active » Fixed
FileSize
5.46 KB

I fixed this issue: http://drupal.org/cvs?commit=326832

@scott859, I still look forward to your further testing on this. Please let me know if the new dev release solves this for you. You can also send me a database (or attach one) for further investigation. I'm marking this fixed, but please reopen if it's not.

3dloco’s picture

Version: 6.x-2.0 » 6.x-2.1
Status: Fixed » Active
Issue tags: +token, +role change notify

Hello Rfay

I am getting this same error (now on line 112) after an update from 6.x-2.0 to 2.1, installing workflow, and rebuilding node permissions (although I am not sure whether the error was there before installing workflow).

I was not getting this error before with 6.x-2.0.

I am currently using Token 6.x-1.12 and have token actions enabled.

Thanks,

KH

rfay’s picture

@3dloco, thanks for the detailed report.

Would it be possible for you to provide me with at least a failing database (dump) or (better) a tarball of your drupal directory *and* a db dump?

rfay’s picture

Title: Incorrect check on 'token' - should be 'token_actions' » Remove irrelevant hook_action_info_alter()
Status: Active » Fixed
FileSize
1.72 KB

Thanks for the good description, @3dloco. It was shown easily just by enabling workflow module, and it was a flaw in role_change_notify.

Thanks to all of you for chiming up on this.

Committed: http://drupal.org/cvs?commit=331488

Please try the dev release as soon as it's built (like tomorrow morning) and see if it's fixed for you.

I should mention that there's a very straightforward way to make this happen:
1. Enable role_change_notify, token, token_actions, trigger
2. Enable workflow module - you'll see it on enabling, and on visiting the triggers page.

Status: Fixed » Closed (fixed)

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

scott859’s picture

@rfray

My apologies for not getting back to you on this. The latest Dev version is working fine - thanks for your help on this.

Best,

Scott