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.
The first time you go to the admin form after installing the module you get two instances of this error message:
Warning: Invalid argument supplied for foreach() i form_type_checkboxes_value() (rad 2390 av .../includes/form.inc).
The reason for this is that you use 0 as a default value for form elements of type 'checkboxes'. The value for that field type has to be an array.
Comment | File | Size | Author |
---|---|---|---|
#3 | datalayer-correct_datatype_for_checkboxes-2821137-3.patch | 727 bytes | ordermind |
|
Comments
Comment #2
ordermind CreditAttribution: ordermind commentedComment #3
ordermind CreditAttribution: ordermind commentedComment #4
doublejosh CreditAttribution: doublejosh as a volunteer commentedThank you!
Comment #5
bridgeway04 CreditAttribution: bridgeway04 commentedI am getting the same error in v7.x-1.1 at the top of the configuration screen. I tried installing the patch using git apply -v but I get Skipped patch 'datalayer.admin.inc'?
If you can't tell, I am new to Get and applying patch files!
Brad
Comment #6
bighappyface CreditAttribution: bighappyface as a volunteer commentedTests fixed in #2855972: Automated test runs failing and test run is now successful for this patch. I am verifying once more before moving this forward.
Comment #8
bighappyface CreditAttribution: bighappyface as a volunteer commentedManually verified the issue and the fix using simplytest.me. No notices are present on the datalayer configuration screen on the first visit after enabling the module with the patch applied.
Comment #9
bighappyface CreditAttribution: bighappyface as a volunteer commented