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.
DS seems to be adding preprocess functions to the theme registry for entities that don't expose themes. It also is trying to access the content key on a block that doesn't have any content. Block.module handles this with an isset. I've used an isset to fix both problems.
This is mainly affecting a Commerce 1.0 site that I'm working on. Attached is a patch.
Comment | File | Size | Author |
---|---|---|---|
#7 | 1279478-7.patch | 585 bytes | swentel |
#4 | ds_conditionals-1279478-4.patch | 525 bytes | MiroslavBanov |
ds_conditionals.patch | 1.14 KB | fadeddata |
Comments
Comment #1
swentel CreditAttribution: swentel commentedMakes sense, committed and pushed, thanks!
Comment #3
mysteriousfea CreditAttribution: mysteriousfea commentedHi !
Any patch for 7.1.4 version ?
Thanks !
Comment #4
MiroslavBanov CreditAttribution: MiroslavBanov commentedReopen because regression introduced with this patch: https://drupal.org/node/1668416
Now I get Undefined index: content in ds_render_block_field() at line 949
In my case service_links module returned an empty array as block.
Patch included.
Comment #5
swentel CreditAttribution: swentel commentedCommitted and pushed, thanks!
Comment #6
Anonymous (not verified) CreditAttribution: Anonymous commentedThis is back with 7.x-2.6 and 7.x-2.x-dev.
Notice: Undefined index: content in ds_render_block_field() (line 876 of /.../sites/all/modules/ds/ds.module).
Comment #7
swentel CreditAttribution: swentel commentedUrg, committed and pushed attached patch.