Hello!

The first page I visit after having been to the chatroom configuration page, gives me the following message:

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in _form_set_class() (line 3969 of /var/www/example/drupal-7.0/includes/form.inc).

Best regards,
Ao

CommentFileSizeAuthor
#5 array_merge_form_bug-1124530-4389722.patch887 bytespatmacs
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

yugongtian’s picture

+1

Anonymous’s picture

Thanks for the report.

The 7.x code is really not ready for use, unless you're using it to hack on it.

LSU_JBob’s picture

Could you go into more detail on how you get this warning? I am not able to reproduce it on my instance.

patmacs’s picture

The form has a small markup problem in chatroom.forms.inc on line 198. Form items with attributes need to pass an array of 'class' with a value of another array. Which contains all classes. Submitting a patch now.

patmacs’s picture

Status: Active » Needs review
FileSize
887 bytes

Needs review

LSU_JBob’s picture

thanks! reviewing now

LSU_JBob’s picture

Assigned: Unassigned » LSU_JBob
LSU_JBob’s picture

Status: Needs review » Reviewed & tested by the community

I've tested patmacs' patch and am not receiving the error. I use the steps mentioned in the original post and the error doesn't show up.

LSU_JBob’s picture

Status: Reviewed & tested by the community » Fixed
Aonoa’s picture

Hello!

After pulling the latest git repo just now, the error seems to be gone. =)

Thank you.

Best regards,
Ao

LSU_JBob’s picture

Status: Fixed » Closed (fixed)
smilysarat’s picture

Title: Warning: array_merge() [function.array-merge]: Argument #1 is not an array in _form_set_class() (line 3969 of /includes/form.inc » Warning: array_merge() [function.array-merge]: Argument #1 is not an array in _form_set_class() (line 3992 of C:\xampp\htdocs\Dr
Status: Closed (fixed) » Active

How to overcome from this...... ? Please help me

LSU_JBob’s picture

saratmitra are you using the latest dev code base?

smilysarat’s picture

yeah..... im using that only.........