backdrop-contrib / block_refresh

Allows blocks to automatically refresh their content.
GNU General Public License v2.0
1 stars 1 forks source link

PHP Notice: Undefined index: [uuid] in block_refresh_block_content() #6

Closed jenlampton closed 2 years ago

jenlampton commented 3 years ago

For some reason block_refresh is unable to locate the current block in the current layout. I'm seeing an undefined index error for the UUID of the block...

Notice: Undefined index: 25347c81-290a-4dec-ae1e-304e18f455c0 in block_refresh_block_content() (line 245 of backdrop/modules/contrib/block_refresh/block_refresh.module).

...and then loading of the block fails (because it's not in the layout!)

Error: Call to a member function getContent() on null in block_refresh_block_content() (line 245 of backdrop/modules/contrib/block_refresh/block_refresh.module).

The real question is: Why is the current block not found in the current layout? Are we passing in the correct uuid here?

jenlampton commented 2 years ago

I found the commit that caused this issue, reverted it, and fixed everything up in the new solution to https://github.com/backdrop-contrib/block_refresh/issues/5. Blocks are now replacing properly again.