Closed (fixed)
Project:
Clean
Version:
6.x-1.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
20 Jan 2009 at 21:08 UTC
Updated:
25 Apr 2009 at 02:29 UTC
Hello i really like the theme but I have been trying in vain to make the logo show up! I did see an earlier post about the custom logo but that did not help me. My problem is I do not see even the default logo. I have tried configuring the global settings and the 'Clean' theme settings. Thanks in advance for you help and also for this wonderful theme! :)
Aniruddha
Comments
Comment #1
KrisBulman commentedSame here, Drupal 6.9, what is causing this?
Comment #2
psynaptic commentedI've found the problem. It's got to do with the way the logo path is modified in template.php. Can you:
a) Replace line 36 of template.php with this code and tell me if it works:
b) Do you have Drupal in the webroot? i.e. example.com/files/logo.png
Comment #3
Garuda commentedI got the same problem and now, with your solution, it works. Thank you for your help.
Comment #4
psynaptic commentedThanks for confirming. I will add this into a fix.
Comment #5
psynaptic commentedOk, this seems better and accounts for local and production environments. In my local environment I have all my projects in subfolders so
$logois /drupal/files/logo.png etc. When I move to production I have to move out of the subdirectory and this is what was causing this issue. Basically, in the production environment base_path is '/' so a simple string replace will completely break the path to the logo.I have come up with this fix:
$vars['logo'] = preg_replace('@^'. base_path() .'@', '', $vars['logo']);I'll just go right ahead and commit it:
http://drupal.org/cvs?commit=167764
Comment #7
jack_ruby commentedJust to clarify; this issue seems to be caused by having the drupal site in a virtual document root ?
For my site the logo worked great until the domain www.site.com pointed to other.com/site. The logo worked when on other.com/site, but not in the www.site.com.
The first fix allowed the www.site.com address to work, but not the other.com/site address.
The second one fixed both.
Apply
$vars['logo'] = preg_replace('@^'. base_path() .'@', '', $vars['logo']);to line 36.
It would be great if this were part of the official release though :)
Thanks for the fix.
This problem has driven me nuts for 2 days!
Comment #8
psynaptic commentedI have committed this fix to the dev version. I'll be making an official release soon, just want to get a few more things in before making a new official release.
Comment #9
blanesworld commentedjust popped in but, I'm now having problems with this. I think my files may be in a virtual document root. If I move my site to to the root folder will this solution work?