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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

swentel’s picture

Status: Active » Fixed

Makes sense, committed and pushed, thanks!

Status: Fixed » Closed (fixed)

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

mysteriousfea’s picture

Hi !
Any patch for 7.1.4 version ?
Thanks !

MiroslavBanov’s picture

Version: 7.x-1.x-dev » 7.x-2.4
Status: Closed (fixed) » Active
FileSize
525 bytes

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

swentel’s picture

Status: Active » Closed (fixed)

Committed and pushed, thanks!

Anonymous’s picture

Version: 7.x-2.4 » 7.x-2.6
Status: Closed (fixed) » Active

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

swentel’s picture

Status: Active » Fixed
FileSize
585 bytes

Urg, committed and pushed attached patch.

Status: Fixed » Closed (fixed)

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