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 upgraded (by accident!) to version 3 today and noticed a few warnings about undefined variables. I fixed it by adding this line at the top of function at_build_panels_layout_css($panel_styles, $device_panels_data)
, around line 70 in adaptivetheme/at_core/inc/forms/at_core.submit.builders.inc:
$declarations = $these_groups = $these_selectors_styles = array();
I'm actually using the footheme, which I guess works best with version 2, but like I said, it was an accident. So this might not be an actual bug, just an artefact of my install.
Comments
Comment #1
aitala CreditAttribution: aitala commentedHI,
I'm subtheming Pixture Reloaded and seeing the following...
and
Are these related to your issue? I'm not sure your fix works in my case..
Eric
Comment #2
Robin Millette CreditAttribution: Robin Millette commentedEric, looks exactly like the notices I had. Insert the line as specified in the issue summary and that should solve it.
Comment #3
aitala CreditAttribution: aitala commentedDumb question - do I need the open/close PHP tags?
E
Comment #4
Robin Millette CreditAttribution: Robin Millette commentedNope, just
Comment #5
aitala CreditAttribution: aitala commentedOk, it works now.. somehow I ended up with a copy of the entire adaptivetheme directory inside another... once I deleted it, things were ok.
Very strange.
Eric
Comment #6
Robin Millette CreditAttribution: Robin Millette commentedDid you need to apply the fix I suggested, or did straightening your files fix it?
Comment #7
aitala CreditAttribution: aitala commentedBoth... it also seems I'm having a weird issue with the Pixture Reloaded subtheme I'm using where the block I'm placing at the top of the content div has lost all of its styling.
I'm going to hold off doing the updates until I can figure that one out...
Eric
Comment #8
hwasem CreditAttribution: hwasem commentedI'm using footheme as well and was having 4 similar errors to OP. I added the code above to line 71 of at_core.submit.builders.inc and that removed the warnings. I thank you for the suggestion!
Comment #9
Jeff Burnz CreditAttribution: Jeff Burnz commentedThis is most likely to occur when there is nothing selected for a panels layout option, e.g. in theme settings one or more of the layouts has nothing selected.
This seems like a pretty good workaround but always check there is something set for each panels layout.
Thanks Robin Millette, I have committed this fix.