This is probably one of those "disconnect between the seat and the keyboard" things, but I'm stuck.
I finally got around to upgrading from 2.0 to 2.2 of Amadou earlier this week (for 4.7). As you may remember I have some slight customizations to Amadou for my site. I untarred 2.2, carefully did a diff, and added my changes into the 2.2 version of style.css -- that is the only file that I have changed in the theme. I copied all the 2.2 files to my site, including the edited style.css, put the site into maintenance mode, renamed the old version, and then renamed the new directory of the new version to the same name I was using for the old one (TheNewProU).
However, I only see two of the new icons (the tags icon and read more). None of the others show up. I also don't see the new regions in my block configuration options. I also installed the "pure" amadou 2.2, and when I use that with a test account it seems to work fine (most of the icons show up, and I can see the new regions).
What am I doing wrong? What is the proper procedure for upgrading a theme, if not what I've done above?
You can see my site, along with the associated style.css, here:
http://www.progressiveu.org/
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | template.php__0.txt | 1.43 KB | Art Morgan |
Comments
Comment #1
jwolf commentedIt's a short circuit not a disconnect :)
I'm guessing that you are not using the template.php file that came with 4.7.x-2.2. This file defines the regions and also maps the links to their associated classes (the icons).
Make sure that you have copied over the older template.php file with the newer version.
Another reason why I think it's an issue with the template.php, while viewing your site, I also notice that the delimiters for the links are pipes ( | ) and not bullets ( • ) which is also defined by the newer version of template.php.
Also, you should grab the development snapshot (4.7.x-2.x-dev) for the most recent changes. Currently, the dev snapshot has a region in the header and also has the search box that the 4.7.x-2.2 does not have.
Comment #2
Art Morgan commentedThings get curiouser and curiouser...
I am using the template.php that is packaged with 2.2 (see attached). For some reason Drupal is ignoring it.
It's as if I have some weird path issues.
I saw this in my watchdog errors:
page not found Mar 18 2007 - 00:04 img/header_bg.gif not found. Art
warning page not found Mar 18 2007 - 00:04 menu-leaf.png not found. Art
warning page not found Mar 18 2007 - 00:04 menu-collapsed.png not found. Art
But I don't see it consistently.
And I got this in my httpd error logs:
[Sun Mar 18 02:12:01 2007] [error] [client 24.4.237.234] File does not exist: /var/www/icons/tag_red.png, referer: http://www.progressiveu.org/142232-lost-art-of-the-protest-song
It's as if Drupal is sometimes looking in the wrong directory for the files. I'll keep looking...
Comment #3
jwolf commentedThat's weird.
The path for the icons should be something like /var/www/progressiveu.org/themes/amadou/icons/tag_red.png
The path for template.php should be something like /var/www/progressiveu.org/themes/amadou/template.php
Have you modified your .htaccess file which may be causing this problem? How bout your settings.php - did you set an odd base url?
The only other suggestion I have is to backup your existing theme directory and install the new version from scratch.
Without fully understanding your XO/Concentric setup I am at a loss for suggestions. Perhaps they can point you in the right direction?
Comment #4
Art Morgan commentedI figured out the problem: I had given the theme a new name to distinguish it from the "pure" amadou, but I didn't realize that your functions in template.php depend on the name "amadou." I've started over, this time sticking with the name amadou, and am almost done.
Thanks so much for you help on this.
Comment #5
jwolf commentedAhh ha!
Yes, you'll find that if you change the name of Drupal themes, you'll break theme function overrides and any custom functions for the theme.