Get the block id from the block

Created on 15 January 2021, almost 4 years ago
Updated 31 January 2023, almost 2 years ago

Problem/Motivation

Right now the module gives many errors like:
Notice: Undefined index: #cache in blocache_block_build_alter() (line 35 of modules/contrib/blocache/blocache.module).
or
Notice: Undefined index: keys in blocache_block_build_alter() (line 35 of modules/contrib/blocache/blocache.module).
Because we do not get the id from the right place, we should get the id from the block, not from the cache keys.

Steps to reproduce

Just enable the module and go to a page that renders a custom block that does not set cache tags.

Proposed resolution

Get the plugin id from the block.

Remaining tasks

Do it

User interface changes

None

API changes

None

Data model changes

None

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇪🇸Spain edurenye

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024