Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
On a fresh install I get the error
Warning: array_merge() [function.array-merge]: Argument #2 is not an array in _webform_conditional_possible_trigger_components() (line 419 of .../sites/all/modules/webform_conditional/webform_conditional.module).
Warning: array_merge() [function.array-merge]: Argument #3 is not an array in _webform_conditional_possible_trigger_components() (line 419 of /home/plymouthphoto/jaeruberto/sites/all/modules/webform_conditional/webform_conditional.module).
on the Webform Edit Component page.
Comment | File | Size | Author |
---|---|---|---|
#5 | 1135998_5-warning_argument_2_is_not_an_array.patch | 744 bytes | robertom |
Comments
Comment #1
Jelle_SI got the same error on a fresh d7 install
Comment #2
Turneight CreditAttribution: Turneight commentedHi all,
from the php manual:
The behavior of array_merge() was modified in PHP 5. Unlike PHP 4, array_merge() now only accepts parameters of type array. However, you can use typecasting to merge other types.
I changed the line 419 in webform_conditional.module
so it works
Comment #3
MrPhilbert CreditAttribution: MrPhilbert commentedThank you. Great save!
Comment #4
ahkiam CreditAttribution: ahkiam commentedThank you. I had the same error and this fixed it.
Comment #5
robertom CreditAttribution: robertom commentedComment #6
bayousoft CreditAttribution: bayousoft commentednice fix ! !
Comment #7
BrightBoldAwesome. This patch solved the problem for me.
Comment #8
tedbow@robertom,
Thanks for finding this. I had fixed this in D6 but not D7.
This is now in D7. Sorry, didn't get your "handle" in the on the commit message which I try to do.