warning: array_merge() [function.array-merge]: Argument #1 is not an array in /var/www/vhosts/newsite/httpdocs/modules/role_change_notify/role_change_notify.module on line 105.

I have not changed any of the code, its directly fresh from the site.

Other module I am using that deal with user login and email system is LoginTobbagan, not sure if that causes any issues.

Any idea what solution could be?

CommentFileSizeAuthor
#9 profile-fields.png98.19 KBBcwald
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

rfay’s picture

I believe this is fixed in the dev release. Would you mind trying that?

rfay’s picture

I did a release of 6.x-2.3 that includes recent work. You can try that as well.

I suspect that this error is not preventing your signups, but is a side-effect of another problem.

Bcwald’s picture

Status: Active » Closed (fixed)

Thanks for quick reply. I upgraded to the dev version and it it did indeed resolve this issue.

It is now allowing me to register too, not sure the connection, but its all working.
Thanks alot!

Brian

Bcwald’s picture

Status: Closed (fixed) » Active

Actually, I am getting errors again.. this time on line 122

array_merge() [function.array-merge]: Argument #1 is not an array in /var/www/vhosts/newsite/httpdocs/modules/role_change_notify/role_change_notify.module on line 122.

is this the same issue?

Brian

rfay’s picture

Version: 6.x-2.2 » 6.x-2.x-dev

I would imagine it's the same issue. Please say what version you're running now, and what other modules you're working with.

I imagine you're using profile module with a telephone number or something? What kinds of fields are you using in profile if that's the case?

Bcwald’s picture

Version: 6.x-2.x-dev » 6.x-2.2

I am running
6.x.2.x-dev
Drupal 6.20
Logintobaggon
Login Destination
Profile

I am using the profile module, I have created a number of profile fields, mostly text input, but also Radio selection and text area.

I receive this error when I try to access /admin/settings/actions/manage (white screen, even when my error reporting is on)

and also /admin/build/trigger/user

Bcwald’s picture

Version: 6.x-2.2 » 6.x-2.x-dev
rfay’s picture

OK. I imagine that you have a profile field that has multiple parts. If you could please at least give a screenshot of all your profile fields that would be appreciated. May need a database from you. If you can make that available it would help. You could put it in a dropbox or whatever.

I can't guarantee when I can work on this as I've been pretty backlogged and have some critical stuff elsewhere.

Bcwald’s picture

FileSize
98.19 KB

Thanks rfay,
attached are the fields, I can email you the db dump if you need it.

I also want to add that I am currently using triggers /user to send an email to the person who validates accounts with profile information, if they affects anything.

rfay’s picture

Thanks. OK, please do email the database or throw it in a dropbox. randy at randyfay.com. I can't guarantee when I'll work on it. Recent versions of drush have a database sanitizer if you have user information in there you'd like to get rid of. (in a copy!)

Thought we had this solved already.

Bcwald’s picture

My site now works again after I have regressed back to before the triggers/actions integration, version 6.x-1.2.

The site was white screening when trying to access my actions page in admin. It would also white screen on site registration submit (my guess this has to do with the trigger/action going off). Something in the module is conflicting with my actions. I have 1 action installed to run when a user registers for the site.

I am also running trigger unlock, profile tokens, so that I have access to those (perhaps that is conflicting)

simonmd’s picture

Same here, using role Delegation, subscribing.

rfay’s picture

Priority: Normal » Critical
rfay’s picture

Status: Active » Postponed (maintainer needs more info)

I'm unable to recreate any of these issues using the current dev. I tried triggers, tried role delegation module. Did everything I could think of./

Somebody is going to have to send me a database. randy at randyfay dot com

nrackleff’s picture

I began experiencing this same issue "array_merge() [function.array-merge]: Argument #1 is not an array in /var/www/vhosts/newsite/httpdocs/modules/role_change_notify/role_change_notify.module on line 122." I started happening when I updated core and a number of modules on a site that was rather out of date. Prior to these updates, the site was using 6.x-2.x-dev. Once I did the updates, people started getting WSOD and that error on registration. The users were actually getting added to the database, but not with the proper settings. They were not supposed to be automatically approved, yet they could log in. I had to go all the way back to 6.x-1.2 to get it working again. That is where things stand now.

This site is using Drupal core 6.22, logintoboggan 6.x-1.9, profile_checkboxes 6.x-2.0, RoleAssign 6.x-1.0-beta3, Profile Location 6.x-1.2 and Profile CSV 6.x-1.1. I'm afraid I can't send the database since it contains all kinds of private user data and our client will not allow it. Let me know if there is any more information I can provide that will help. Thank you

rfay’s picture

@nrackleff, the last change to 6.x-2.x was on January 25, 2011. 6.x-2.3 and 6.x-2.x-dev are the same thing... Since Role Change Notify reacts to user_save() events, it's possible that some module is passing unexpected data in.

nrackleff’s picture

I updated core and 20 modules that day. I may try rolling back each one at a time and see which one "unbreaks" it. Something in the updates also seems to have caused a problem with tokens not be replaced in an email that is set up as an action. I'll keep poking around. I'll let you know if I find out anything.

rfay’s picture

I would consider debugging this if you are willing to give me me a tarball of your site and a dump (sanitize it if you want) of your database. You could dropbox them to randy at randyfay dot com or use any other technique you want.

nrackleff’s picture

Thanks so much for offering to help. I will see if I can get permission to send you the site and database if I clear out the user data and ubercart orders and things like that. Since my last post, I updated the token module and found that the tokenized email that wasn't getting sent properly had an invalid token in it. Once I replaced that invalid token, the email started working properly. After that, I tried to upgrade Role Change Notify again, but it didn't work and went back to WSOD upon registration. I will let you know if I can send you the files. Thanks again for the offer.