Problem/Motivation
We are adding the Facebook posts block in a paragraph using the block field module. We also are hiding the full form for the block so there is nothing to override. Because of this $block_settings['override'] isn't set which provides the warning of undefined array key when accessed.
Steps to reproduce
Configure the module to load in your FB Page.
Use the Block field module to allow for a block to be placed on a entity and set the form display widget for the field to Configuration form: hidden.
Create the content with the block.
The posts are shown and the warnings appear.
Proposed resolution
Add isset() around the checks for $block_settings['override'].
Remaining tasks
Make the patch.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | socialfeed-3543873-2.patch | 1.89 KB | oheller |
Issue fork socialfeed-3543873
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
oheller commentedHere's the patch adding the isset($block_settings['override']).
Comment #3
hemangi.gokhale@oheller this has already been addressed in 3.0.0-alpha1. Please upgrade and give it a try. I'm closing this issue for now, but please feel free to reopen it if the problem persists. Thanks!
Comment #5
oheller commented@hemangigokhale, we are using php8.3.The issue still persists because the check still is looking for a variable or property that might not exist. The check needs to confirm that the $block_settings['override'] exists before any other check is done.
Comment #6
hemangi.gokhaleThank you for confirming this, @oheller. I'll work on this fix and see if I can make progress.
Comment #8
hemangi.gokhale@oheller, I've fixed this issue in 4.0.x, will try to backport soon to 3.0.x. Thanks!