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.
There are two PHP notices when saving a layout change in the Panels IPE:
Notice: Only variables should be passed by reference in Drupal\panels_ipe\Form\PanelsIPELayoutForm->submitForm() (line 185 of modules/contrib/panels/panels_ipe/src/Form/PanelsIPELayoutForm.php).
Undefined index: label in Drupal\panels_ipe\Form\PanelsIPELayoutForm->submitForm() (line 232 of modules/contrib/panels/panels_ipe/src/Form/PanelsIPELayoutForm.php).
There are apparently no side effects, but these notices are misleading when hunting down other bugs.
Comment | File | Size | Author |
---|---|---|---|
panels-ipe-php-notices.patch | 1.09 KB | floretan | |
Comments
Comment #2
japerryComment #3
sylus CreditAttribution: sylus commentedI was noticing this as well.
With this change I am getting the following exception:
I kept just the array_keys + reset changes and checked if the $layout_config is set before assignment. Not sure what we do when there is no layout configuration being read though ^_^
Comment #4
sylus CreditAttribution: sylus commentedNevermind sorry for the noise I was using a stable tag of layout_plugin (1.0-alpha22) and not the latest dev which has the getLabel() improvements. ^_^
http://cgit.drupalcode.org/layout_plugin/commit/?id=96a5cf906097a307100e...
Patch in #1 is good with layout_plugin dev, thanks!
Comment #5
sylus CreditAttribution: sylus commentedComment #7
samuel.mortensonI replicated the error and the patch was simple enough to review+commit myself. Thanks all!