Undefined index: active in theme_panopoly_theme_panopoly_accordion_style_render_region() (line 57 of /openatrium-7.x-2.0-beta4/profiles/openatrium/modules/panopoly/panopoly_theme/plugins/styles/accordion/panopoly_accordion.inc).

I get this on any page where I have my mini-panel which has an accordion style

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

lsolesen’s picture

Version: 7.x-1.x-dev » 7.x-1.0-beta4
Issue summary: View changes
Status: Active » Postponed (maintainer needs more info)

Please try with rc5.

lsolesen’s picture

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

Closed for inactivity.

SocialNicheGuru’s picture

Component: Code » Admin
Status: Closed (cannot reproduce) » Active

this is still an issue with the newest version feb 14, 2014.

Here is a link to a similar issue: https://drupal.org/node/1804918

SocialNicheGuru’s picture

'action' is not defined.

I added this:

print_r('<pre>');
print_r($settings_js['accordion'][$region_id]['options']);
print_r('</pre>');

and got this:

Array ( [header] => h4.accordion-title )
SocialNicheGuru’s picture

In the short term I did this but don't know the implications for settings.

Accordian style is not actually implemented

if(!empty($settings_js['accordion'][$region_id]['options']['active'])){
  $settings_js['accordion'][$region_id]['options']['active'] = (int) $settings_js['\
accordion'][$region_id]['options']['active'];
}
Kebz’s picture

Version: 7.x-1.0-beta4 » 7.x-1.x-dev

It's weird because it didn't pop-up until after I had made a few changes in the layout, then I went in the modules section and turned on a few things.. went to the home page and bam...

Notice: Undefined index: active in theme_panopoly_theme_panopoly_accordion_style_render_region() (line 57 of .../profiles/panopoly/modules/panopoly/panopoly_theme/plugins/styles/accordion/panopoly_accordion.inc).

Here's how to get rid of that notice. I'll show what I did based on what was causing the problem.

  • Click on "customize page"
  • Click on the paintbrush (region style) of the "header" section
  • Select "Default Region Style"
  • Click Next to submit/save
  • Save layout
  • Refresh page ... all should be good. At least it is on my end =)

I had tinkered with that "header" section earlier and clicked on the "accordian" style to see what it would do... that's the only reason why I knew that was the culprit.

dsnopek’s picture

Status: Active » Needs review
FileSize
914 bytes

For whatever reason, I'm not able to reproduce this. :-/ Is it maybe a PHP version thing? Can someone who's experiencing the problem post what PHP version they are using? I'm on PHP 5.3.

Anyway, looking at the code, I also made a patch that might fix this. Can someone who's having the problem try it and see if it works?

Thanks!

dsnopek’s picture

Er, it'd probably help if my patch didn't have a syntax error in it. :-) Here's a new version.

Kebz’s picture

My PHP is 5.6.6RC1

dsnopek’s picture

@Kebz: Can you try the latest patch and see if it fixes the problem for you? Here's some documentation about applying patches if you haven't ever done this before:

https://www.drupal.org/patch/apply

Thanks!

SocialNicheGuru’s picture

Status: Needs review » Reviewed & tested by the community

This works. please include

dsnopek’s picture

Component: Admin » Theme
Status: Reviewed & tested by the community » Fixed

Thanks! Committed. :-)

  • dsnopek committed fef41bc on 7.x-1.x
    Update Panopoly Theme for Issue #2093009 by dsnopek: Undefined index:...

Status: Fixed » Closed (fixed)

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