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.
Unfortunately, I couldn't recreate the problem. But I got the following warnings appearing in the message field:
Notice: Undefined index: element_content i _semantic_panels_get_html() (rad 111 av /srv/www/251/web/profiles/unionen/modules/contrib/semantic_panels/semantic_panels.module).
Notice: Undefined index: element_wrapper i template_preprocess_semantic_panels_pane() (rad 62 av /srv/www/251/web/profiles/unionen/modules/contrib/semantic_panels/semantic_panels.module).
Comments
Comment #1
logaritmisk CreditAttribution: logaritmisk commentedCan't reproduce. Do you remember how you did to get this error?
Comment #2
geekyMoa CreditAttribution: geekyMoa commentedI too get this error.
Sometimes the $pane_semantic_settings array that is given as an argument to _semantic_panels_get_html() is an empty array, which is because the 'settings' array in $vars in template_preprocess_semantic_panels_pane() is sometimes empty.
Why? No idea (yet, hopefully). I can't reproduce it on a clean install, so I'll keep looking to see if I can figure it out on this install.
Comment #3
geekyMoa CreditAttribution: geekyMoa commentedGot it (with a little help from emattias)!
After an upgrade of semantic panels, settings for some panes disappeared and that's what caused the empty arrays. I solved it by putting this
just above this line
in the function
template_preprocess_semantic_panels_pane
, and then resaving the semantic panels settings for all panes in the regions that were outputted by the dpm.Comment #4
emattias CreditAttribution: emattias commentedIs this still a problem with the latest dev? If so, how do you reproduce it?
Comment #5
emattias CreditAttribution: emattias commented