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.
On the Block layout page, I get the following warnings:
Notice: Undefined offset: 0 in formdazzle_add_form_element_suggestions() (line 101 of modules/contrib/formdazzle/formdazzle.module).
Notice: Array to string conversion in formdazzle_add_form_element_suggestions() (line 135 of modules/contrib/formdazzle/formdazzle.module).
Comment | File | Size | Author |
---|---|---|---|
#5 | 3089028-5.patch | 6.94 KB | JohnAlbin |
Comments
Comment #2
dan2k3k4 CreditAttribution: dan2k3k4 at Amazee Labs commentedComment #3
dspachos CreditAttribution: dspachos as a volunteer commentedSome times
$element['#theme_wrappers']
contains container render element as nested array. Remove to avoid notice for array to string conversion (and add again after merge).Comment #4
JohnAlbinRe-rolled without all the code formatting that was fixed in #3178145: Update code syntax using phpcs/phpcbf
Comment #5
JohnAlbinI realized I can get rid of the whole
array_unique(array_merge
mess by using the array + operator likeDrupal\Core\Render\Renderer::doRender()
does.And I'm also checking the wrong array indices so the code that is throwing the undefined offset is doubly wrong.
Here's the new patch
Comment #7
JohnAlbin