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 have the following issue when using the adaptive theme with the "Sky" subtheme. The following notice appears on my home page, which is a simple panel that shows the most recent node of a certain content type:
Notice: Undefined variable: pane_prefix in include() (line 30 of/home2/cmccully/public_html/wildcatreview/sites/all/themes/adaptivetheme/at_core/templates/panels-pane.tpl.php).
Notice: Undefined variable: pane_suffix in include() (line 69 of/home2/cmccully/public_html/wildcatreview/sites/all/themes/adaptivetheme/at_core/templates/panels-pane.tpl.php).
My home page is at wildcatreview.org.
Comments
Comment #1
bomarmonk CreditAttribution: bomarmonk commentedAlso, I'm using the "Mobile Theme" module to display this theme only on mobile devices.
Comment #2
Jeff Burnz CreditAttribution: Jeff Burnz commentedThe prefix is set by Panels module, AT merely overrides the template to alter the markup.
Comment #3
bomarmonk CreditAttribution: bomarmonk commentedI don't get this error with my non-mobile theme, only when viewing the panel with AdaptiveTheme, so panels aren't getting along with Adaptive for some reason... of course, I have a limited understanding of what's going on here, but would sure like the problem to go away. Any suggestions?
Comment #4
bomarmonk CreditAttribution: bomarmonk commentedComment #5
artatum CreditAttribution: artatum commentedHello
I've got the same issue
Notice: Undefined variable: pane_prefix in include() (line 30 of /.../mysite/sites/all/themes/adaptivetheme/at_core/templates/panels-pane.tpl.php).
with Page Manager or Mini-Panels.
What could we do please ?
Comment #6
Jeff Burnz CreditAttribution: Jeff Burnz commentedPlease see my answer in #2 - Adaptivetheme is not setting this variable, Panels module does this, the code in adaptivetheme/at_core/templates/panels-pane.tpl.php is basically identical to Panels module for the pane prefix and suffix - I can never reproduce this based on what you are telling me because there has to be some other reason why you get the Undefined variable problem (I can't guess what it might be).