Hi. I am getting notices and warnings like these below.
Warning: Cannot use a scalar value as an array in _semantic_panels_get_html() (line 101 of /var/www/js/drupal/current/sites/all/modules/contrib/semantic_panels/semantic_panels.module).
Notice: Undefined index: element_wrapper in template_preprocess_semantic_panels_pane() (line 341 of /var/www/js/drupal/current/sites/all/modules/contrib/semantic_panels/plugins/styles/semantic_panels.inc).

Warning is in this line : $element_settings['type'] = _semantic_panels_get_type($element_settings['type'], $element_data['default_type']);

Notice about this line: $vars['wrapper_type'] = _semantic_panels_get_type($pane_semantic_settings['element_wrapper']['type']);

Could you please help me to solve this problem. I have searched everywhere and can't find solution to fix this.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

martins.kajins’s picture

Here is patch, which solved my problems

  • das-peter committed f837b2c on 7.x-1.x
    Issue #2383097 by martins.kajins: Scalar value as an array, undifined...
das-peter’s picture

Status: Active » Fixed

I went for slightly different approaches. But the code should be more defensive now and don't throw notices.
However, it would be interesting to know why the config was broken in the first place.

@martins.kajins Thanks for the patch! If you post a patch please set the ticket status to "Needs review" - this indicates that there's a patch ready to be reviewed. Usually draws more attention of contributors / maintainers and helps others to find workarounds.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.