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

logaritmisk’s picture

Can't reproduce. Do you remember how you did to get this error?

geekyMoa’s picture

I 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.

geekyMoa’s picture

Got 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

  if (empty($vars['settings'])) {
    dpm($vars['pane']->panel);
  }

just above this line

  $pane_semantic_settings = $vars['settings'];

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.

emattias’s picture

Status: Active » Postponed (maintainer needs more info)

Is this still a problem with the latest dev? If so, how do you reproduce it?

emattias’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)