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.
I am getting this error when trying to create a custom style for my panels.
# Notice: Undefined index: style in _panels_stylizer_get_style() (line 95 of /hermes/bosweb/web249/b2494/glo.nimaweb/sites/all/modules/panels/plugins/styles/stylizer.inc).
# Notice: Undefined index: style in _panels_stylizer_get_style() (line 100 of /hermes/bosweb/web249/b2494/glo.nimaweb/sites/all/modules/panels/plugins/styles/stylizer.inc).
Comment | File | Size | Author |
---|---|---|---|
#7 | panels-1082098-7-D6.patch | 870 bytes | mikeytown2 |
Comments
Comment #1
_Nima_ CreditAttribution: _Nima_ commentedI should add that the style works fine, I just get the error on my page...which is not very visually appealing :)
Comment #2
erdembey CreditAttribution: erdembey commentedSame here ...
Comment #3
erdembey CreditAttribution: erdembey commentedMy temporary solution is as follows;
- Open file "sites/all/modules/panels/plugins/styles/stylizer.inc",
- Browse to line 91 which contains;
- Add the following code;
- Before the following line (around 92);
Finaly function _panels_stylizer_get_style should be as follows;
I hope it solves the issue.
It seems the $style_settings is empty in most cases ...
Thanks.
Comment #4
merlinofchaos CreditAttribution: merlinofchaos commentedI think this only happens if a custom style was set up but not configured, so the style is invalid. I added a quick check to remove the notice, which seems to have no ill effects; any style in this condition shouldn't really do anything.
Comment #5
accesspoint CreditAttribution: accesspoint commentederdembey:
Worked Brilliantly!!! Thanks for posting!
Comment #7
mikeytown2 CreditAttribution: mikeytown2 commentedSame issue with 6.x; stylizer module is disabled which is interesting.
Comment #8
Nigel CunninghamConfirming that patch in #7 fixes it for me in 6.x.
Comment #9
Nigel CunninghamComment #10
merlinofchaos CreditAttribution: merlinofchaos commentedCommitted and pushed! Thanks!