We updated DS from 8.2.5 to 8.3.0. We are using DS block fields. Now after the DS (+Drupal core) update, custom blocks cause PHP notices. Will continue on investigating if problem is in our custom blocks.

Notice: Undefined index: #cache in Drupal\ds\Plugin\DsField\BlockBase->build() (line 93 of modules/ds/src/Plugin/DsField/BlockBase.php).
Drupal\ds\Plugin\DsField\BlockBase->build() (Line: 365)
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

sokru created an issue. See original summary.

sokru’s picture

Attached an hotfix to remove notices.

aspilicious’s picture

Status: Active » Needs review
aspilicious’s picture

FileSize
1.69 KB

Patch didn't apply anymore and wasn't covering all the potential problems.

  • aspilicious committed 8278d4f on 8.x-3.x
    Issue #2880665 by sokru, aspilicious: After 8.3.0 update, some DS block...
aspilicious’s picture

Status: Needs review » Fixed

Thnx!

Status: Fixed » Closed (fixed)

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

jeroendegloire’s picture

Update patch for ds version 8.3.1

jlscott’s picture

Patch from #3 updated for 8.x-3.1. This appears to solve the issues for my system.
EDIT: I was wrong. There are still messages in the log. Might switch to the dev version of the module.

VitaliyB98’s picture

I had the similar error. Added patch