When enable the ad module & add new ad type get the below warnings:
Warning: in_array() [function.in-array]: Wrong datatype for second argument in drupal_write_record() (line 7037 of /PATH/includes/common.inc).
Warning: in_array() [function.in-array]: Wrong datatype for second argument in drupal_write_record() (line 7037 of /PATH/includes/common.inc).
Warning: in_array() [function.in-array]: Wrong datatype for second argument in drupal_write_record() (line 7037 of /PATH/includes/common.inc).
Warning: in_array() [function.in-array]: Wrong datatype for second argument in drupal_write_record() (line 7037 of /PATH/includes/common.inc).
Comment | File | Size | Author |
---|---|---|---|
#2 | ad_install_error_1910972_2.patch | 498 bytes | brunodbo |
#1 | ad.patch | 477 bytes | mahaprasad |
Comments
Comment #1
mahaprasad CreditAttribution: mahaprasad commentedCreated patch file to avoid Warning:
Please review attached ad.patch file.
Comment #2
brunodboRerolled patch against latest Drupal core.
Passing in an empty string to
drupal_write_record()
instead ofarray()
causes the installation to fail with this error:Error: Cannot access empty property in /includes/common.inc, line 7250
. Using array() instead fixes it.Comment #4
fizk CreditAttribution: fizk commentedCommitted, thanks!