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).

CommentFileSizeAuthor
#2 ad_install_error_1910972_2.patch498 bytesbrunodbo
#1 ad.patch477 bytesmahaprasad
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mahaprasad’s picture

Assigned: mahaprasad » Unassigned
Status: Active » Needs review
FileSize
477 bytes

Created patch file to avoid Warning:
Please review attached ad.patch file.

brunodbo’s picture

Title: when enable the ad module get the warnings. » Warnings when enabling module
Issue summary: View changes
FileSize
498 bytes

Rerolled patch against latest Drupal core.

Passing in an empty string to drupal_write_record() instead of array() causes the installation to fail with this error: Error: Cannot access empty property in /includes/common.inc, line 7250. Using array() instead fixes it.

  • fizk committed 4536e59 on 7.x-2.x authored by brunodbo
    Issue #1910972 by mahaprasad, brunodbo: Warnings when enabling module
    
fizk’s picture

Status: Needs review » Fixed

Committed, thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.