Hi Jeff, I am a little at a loss here of where to look next. I have tried many different settings, options, cache clears and theme saves etc. and am getting rather strange results. The issue I am having is possibly related to custom extra panel layouts in my sub-theme, see attached 'at-theme-issue.jpg' for the issue when I navigate to a panel layout for my website. This issue has occurred when updating at-them from 3.1 to 3.2, also creating a new sub-theme based on the new 3.2.
I have triple checked all settings in my theme (I attached my raw sub-theme 3.2 as rougespa.txt > rename to rougespa.zip) and also made sure the panel layouts files in 3.1 match the newly upgraded 3.2 panel layouts that I had used as a base previously. I also tested this theme on another local site for interest sake and I get the following errors with a blank screen of death: "Fatal error: Cannot redeclare template_preprocess_two_20_80() in C:\sitename\sites\all\themes\themename\layouts\panels\two_20_80\two_20_80.inc on line 48" and " Fatal error: Cannot redeclare template_preprocess_three_20_60_20() in C:\sitename\sites\all\themes\themename\layouts\panels\three_20_60_20\three_20_60_20.inc on line 65". If I comment out "plugins[panels][layouts] = layouts/panels" the error does away. The weird thing on my live site is that I do not see any errors at all and if I deselect all caching options under performance then the "at-theme-issue.jpg" reverts back to how it should look.
I need help as I do not know where else to look or what else to trouble shoot at this point. Maybe you can point in the right direction or maybe this is simply a bug, or there is a sub-theme setting I have not set correctly, or possibly the updated theme handles custom panel layouts differently? Let me know if you need more info.
Comment | File | Size | Author |
---|---|---|---|
rougespa.txt | 107.92 KB | 4fs | |
at-theme-issue.jpg | 146.69 KB | 4fs |
Comments
Comment #1
Jeff Burnz CreditAttribution: Jeff Burnz commentedThis would indicate there is another theme (or module) with those same functions (probably another theme with the same plugins)? Certainly that is what PHP is thinking, that those functions already exists somewhere.
Comment #2
tgeller CreditAttribution: tgeller as a volunteer and commentedAny ideas yet what could be causing this? It's just brought my site down.
Comment #3
tgeller CreditAttribution: tgeller as a volunteer and commentedSpecifically, here's the [[redacted]] error I'm getting:
Fatal error: Cannot redeclare adaptivetheme_two_33_66_panels_layouts() (previously declared in [[PATH]]/sites/all/themes/adaptivetheme/adaptivetheme/adaptivetheme/at_core/layouts/panels/two_33_66/two_33_66.inc:9) in [[PATH]]/sites/all/themes/adaptivetheme/adaptivetheme/at_core/layouts/panels/two_33_66/two_33_66.inc on line 43
Comment #4
Jeff Burnz CreditAttribution: Jeff Burnz commentedIf you updated the theme via Drupal's internal update system look for another Adaptivetheme nested inside the original - the updater is stupid and does this for some themes. That is the most common reason I've seen for this type of error.
Comment #5
Jeff Burnz CreditAttribution: Jeff Burnz commentedIn fact you can see it in the error message, there are multiple versions of the same nested:
Fatal error: Cannot redeclare adaptivetheme_two_33_66_panels_layouts() (previously declared in [[PATH]]/sites/all/themes/adaptivetheme/adaptivetheme/adaptivetheme/at_core/layouts/panels/two_33_66/two_33_66.inc:9) in [[PATH]]/sites/all/themes/adaptivetheme/adaptivetheme/at_core/layouts/panels/two_33_66/two_33_66.inc on line 43
There should only be one:
/sites/all/themes/adaptivetheme/at_core/