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 ad channel module produces this error:
warning: Creating default object from empty value in /var/www/drupal6/sites/all/modules/ad/channel/ad_channel.module on line 877.
Comment | File | Size | Author |
---|---|---|---|
#3 | ad-php-strict-1891880.patch | 921 bytes | SeanA |
#1 | 1891880-ad_channel-6.x-3.x.patch | 580 bytes | fizk |
Comments
Comment #1
fizk CreditAttribution: fizk commentedHere's a patch for 6.x-3.x.
Please apply to 6.x-2.x for the next 2.x release.
Comment #2
fizk CreditAttribution: fizk commentedComment #3
SeanA CreditAttribution: SeanA commentedThis happens with strict error checking enabled (now the default in PHP 5.4), and it crops up in ad.module as well. The conditional test to check for null isn't needed, just using
new stdClass()
fixes the problem. Updated patch attached for 2.x branch.