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.
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)
Comment | File | Size | Author |
---|---|---|---|
#10 | ds-2880665-hotfix-for-php-notices-10.patch | 1.32 KB | VitaliyB98 |
#9 | ds-2880665-hotfix-for-php-notices-9.patch | 1.71 KB | jlscott |
#8 | 2880665-hotfix-for-php-notices.patch | 3.53 KB | jeroendegloire |
#4 | 2880665-3.patch | 1.69 KB | aspilicious |
#2 | 2880665-hotfix-for-php-notices.patch | 858 bytes | sokru |
Comments
Comment #2
sokru CreditAttribution: sokru as a volunteer and at Druid commentedAttached an hotfix to remove notices.
Comment #3
aspilicious CreditAttribution: aspilicious commentedComment #4
aspilicious CreditAttribution: aspilicious commentedPatch didn't apply anymore and wasn't covering all the potential problems.
Comment #6
aspilicious CreditAttribution: aspilicious commentedThnx!
Comment #8
jeroendegloire CreditAttribution: jeroendegloire commentedUpdate patch for ds version 8.3.1
Comment #9
jlscott CreditAttribution: jlscott commentedPatch 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.
Comment #10
VitaliyB98 CreditAttribution: VitaliyB98 at Internetdevels commentedI had the similar error. Added patch