Hi

Tinkering with the default theme under the tab, but failing to get a non-default logo and favicon to display.

Using the script to upload the logo and icon images results in their filenames appearing in the "Path to image location" box...seems odd?

So I tried FTP-ing the favicon directly to the root but that didn't work either. (I've cleared the cache)

What am I doing wrong?

Comments

tce’s picture

The favicon does not reside in the root so putting yours there will not work. The favicon is in the folder misc, but I wouldn't advise putting it there either. I would use the uploader, that way your files will be uploaded to a folder that won't get overwritten when you upgrade Drupal in future.

talvi’s picture

That's where the problem began tce - I used the uploader and it hasn't worked.

After using the uploader (under the Appearance tab > Settings) the file names of the files I upload become displayed in the path boxes. This makes no sense as a file name isn't a path.

I have looked in the Misc directory and the favicon file isn't there, only what I assume is the default favicon. I will do as you suggest and not try loading the favicon there until the issue hopefully become clear.

The same thing applies also to the logo.

As I have unticked the boxes to display the default logo and favicon, the site currently shows neither.

tce’s picture

I meant don't FTP your favicon into the misc folder and replace the default favicon.

The uploader uploads your file to the folder sites/default/files so check there for your favicon. It is correct just to see the name of the file in the path field after you use the uploader. Though I think putting the full path also works, so you could do sites/default/files/favicon.ico. Just make sure the file actually exists in that folder.

talvi’s picture

Sorry, yes I did understand you.

Thanks for the location, yes they're both there, so no probs with the script's Uploader.

Any ideas why neither favicon nor logp are displaying ... I must be doing something really dumb ... or ... ??

tce’s picture

You checked the checkboxes to display them again right?

If you change the theme, does the logo show?

talvi’s picture

Check boxes under the Toggle Display are all checked (except use Pictures in Comments). The two associated with the favicon and Logo settings which say "Check here if you want the theme to use the logo/favicon supplied with it" are unchecked.

Changing the theme to "Seven" had no effect on favicon or logo display but changing it back to "Bartik" ... the favicon now displays, but still no logo!?!? *&%&!!* lol What?!? :D Maybe I should sacrifice a goat?? Arggh

tce’s picture

I think with the favicon, your browser caches this so it may have updated it when the theme was changed back. Not sure about the logo, if it were me I'd check no CSS is hiding it, so see if the image is actually being outputted by looking at the source code. Give the site cache a clear too, for luck.

talvi’s picture

I tried clearing the browser cache yesterday but got no joy. I don't understand what you mean by the "site cache" though.

Wouldn't any updating have happened when I changed themes the first time?

Anyways, the logo looks like it gets "called" correctly (it seems to me anyway) the file is where it says it is etc ..

<div id="header" class="with-secondary-menu"><div class="section clearfix">

          <a href="/" title="Home" rel="home" id="logo">
        <img src="http://psychosocial.phoenixchange.com/sites/default/files/icon-P_1.png" alt="Home" />
      </a>

but I don't think I know enough CSS to check that even if I knew where it was :(

tce’s picture

I apologise, when I say site cache I mean going to Administration » Configuration » Development and pressing the clear all caches button.

Well I've just looked at your site and can see straight away the output is fine, it's just the image is broken, in that the logo file named icon-P_1.png does not exist. So if you put the file icon-P_1.png into the folder sites/default/files it should work.

talvi’s picture

That's interesting - because I can see it. You're looking for the file via the script somehow I'm assuming? I can see it and view it etc directly via my FTP client. So .... hmmm .... ??

p.s.
Under my configuration tab > development there is no clear caches option/button. There are just the three subheadings: Performance, Logging and errors, and Maintenence mode.

tce’s picture

talvi’s picture

D'Oh! I never thought of looking for it "like that"!

As the file is there but is not accessable via a browser I am guessing it's invisibility must be a setting somewhere in my domain that ... I am remembering something about "hot links" ?? Anyway, off to ask my host techies if they have any odeas. Thanks, I'll let you know!

talvi’s picture

... it was an issue concerning the use of FollowSymlinks by the script ....

My host decided about a year ago to disable FollowSymLinks from Apache due to their identifying an exploit with FollowSymLinks and Apache that allows a user on a shared server to create a symlink which points to another members folder. By using FollowSymLinks, it allows the user to reach that symlink and modify data on someone elses account.

The solution was to place a SymLinksIfOwnerMatch call, which my host has enabled server wide, in the .htaccess file.

(my host rocks! :))

talvi’s picture

I uploaded a new logo: Appearance > Settings > Upload logo image
The image uploaded to the correct place: sites/default/files/logo.png
but didn't display!
I noticed I had made the changes in the Global Settings tab. Didn't notice that before. It says:
"These options control the default display settings for your entire site, across all themes. Unless they have been overridden by a specific theme, these settings will be used."
Hmm.
I clicked on the Bartik button and... the old logo was still in there.
I deleted it, figuring that would result in the Global settings taking over.
It didn't. The logo disappeared.
I pasted the new logo's file name into Bartik page and
BINGO.
Is that a bug?

talvi’s picture

.... my new, green favicon displays for all the admin pages but the old, red favicon one displays for content (eg pages/articles). How is this possible?

I've cleared caches in Drupal and in my browser, checked each of the themes as well as the global settings to ensure the right file is in each instance. I'm at a dead end..

Any ideas anyone?

talvi’s picture

To display in admin pages the favicon file can have any name.
To display in the "normal" pages the favicon file must be called favicon.ico.

(Also Bartik doesn't seem to update when General settings are updated but needs updating separately.)