Receiving undefined variable errors originating in the Corolla subtheme after upgrade (drush) to 7.x-2.2. Using footheme (renamed as tam_custom) as default theme, subtheme of Corolla.
Added the theme registry rebuilding code to the template.php file in footheme which eliminated the errors. After removing the theme registry rebuilding code and clearing the cache, the errors are back.
Copied the site to mccollwebdesign.com/sandbox
I've uploaded screenshots of the errors and the listing of the themes / versions
Everything was working before the upgrade. Any help will be greatly appreciated.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | themes1.jpg | 30.72 KB | alan mccoll |
| themes.jpg | 25.14 KB | alan mccoll | |
| errors.jpg | 89.73 KB | alan mccoll |
Comments
Comment #1
alan mccoll commentedPosting the errors as code for others to find in the future
Comment #2
Jeff Burnz commentedAll those variables are set in preprocess in Adaptivetheme core, so for them to be undefined tells me something is wrong with your installation.
To have something like $primary_local_tasks undefined is telling me strait out that possibly a file is missing or corrupted from Adaptivetheme core - look to see if this file exists:
adaptivetheme/adaptivetheme/inc/template.process.inc
In there these variables are set, so unless your subtheme is unsetting them (which I assume you are not), then it should be working.
The fact that you said you can run a registry rebuilt on every page request and it works, then you turn it off and it stops working - this is telling me possibly that your cache tables are corrupt. Try clearing the cache tables in the database manually (do into the database and empty the cache tables).
Comment #3
alan mccoll commentedThanks for the ideas. I used the dev module > block > empty cache to clear the cache. Errors went away after a refresh. If I then clear the cache via Home » Administration » Configuration » Development » Clear All Caches button, the errors return.
The adaptivetheme/adaptivetheme/inc/process.inc file is not there. I've redownloaded and extracted from both the zip and tar files and there is no process.inc file in the adaptive theme folder that I can find. The attached screenshot shows the contents.
Comment #4
Jeff Burnz commentedIt should be
template.process.inc, so its there.Comment #5
jeeba commentedMaybe this will help:
I installed Omega Theme and create a Omega Subtheme in my page called Cierno. I put this subtheme as my default theme.
All was right until I wanted to create a subtheme of Seven to used it as my Administration Theme. I called it Seven2, I renamed all the template.php functions and configured the info.php file according to this link http://drupal.org/node/225125.
Well It didnt work , drupal show me a lot of Undefined variable just like #1 and I had an strange behaviour because the html.tpl.php file used was one from Omega Theme instead of modules/system/html.tpl.php that is the normal tpl file used by Seven. Try the Devel Theme module to see what template file youre using.
I manage to fix it doing this:
So to resume all this, I suggest that you unistall your Adaptive Theme module and submodule. Install your freshly created submodule AND THEN install again your adaptive module, and dont forget about lower cases in your info.php file!.
Good luck
Comment #6
Jeff Burnz commentedThose tags I think should be reserved for those themes, cheers.
Comment #7
alexd73 commentedThis #5: Support did not help for me.
I use footheme for creating subtheme for Corolla.
I tried install dev version for "AT" and all subthemes but this did not help me to.
Does anyone answer, If could solve this problem.
Thank You!
Comment #8
Jeff Burnz commentedalexd73 - can you tell me precisely what versions of each theme you are using, look on the Appearance list page to see the actual versions.
Comment #9
alexd73 commentedOf course!
On each page I receive error:
Comment #10
alexd73 commentedJeff Burnz, Have you any thoughts about this?
Comment #11
alan mccoll commentedJeff and all,
I found a solution. Not an easy one, but it worked.
I was unable to get any combination of adaptive theme, corolla and footheme to work without throwing the variable errors. What I did was download and install the latest dev versions of AT and Corolla. I copied and sub-themed Corolla. The hard part was transfering the custom css files and template files that I had made from the 7.x-2.2 Corolla template files. The editing of these files was not as difficult as I had thought, as most (if not all) of the selectors and divs and such in the template files were the same in 7.x-3.x-dev as they were in 7.x-2.2.
You can see the finished product here
For the record, I am using Drupal 7.14. Here is a list of theme info from Drush pm-list
Thanks for your work on these themes, Jeff. As I am not a programmer, you make my life much easier.
Comment #12
Jeff Burnz commentedHmmm, this issue must be in Footheme, right?
Good write up Alan, nice job also.
Comment #13
alexd73 commentedMay be. But error in themes/corolla/templates/page.tpl.php also.
Comment #14
mike27 commentedI have similar issue in Sky theme: see http://drupal.org/node/1772198
I believe that it is either a matter of adaptive theme or a matter of server settings. I suspect the latter due to the fact that I have no problems upgrading locally in my laptop and problems arise when I upgrade on the server.
Is there any chance that this issues are due to incompatibility?
Thank you in advance for your time,
mike
Comment #15
petu commentedLower case for subtheme name helped in my case also.
Thank you for advice!