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

KrisBulman’s picture

Same here, Drupal 6.9, what is causing this?

psynaptic’s picture

Assigned: Unassigned » psynaptic

I'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:

  $vars['logo'] = substr($vars['logo'], 1);

b) Do you have Drupal in the webroot? i.e. example.com/files/logo.png

Garuda’s picture

I got the same problem and now, with your solution, it works. Thank you for your help.

psynaptic’s picture

Thanks for confirming. I will add this into a fix.

psynaptic’s picture

Status: Active » Fixed

Ok, this seems better and accounts for local and production environments. In my local environment I have all my projects in subfolders so $logo is /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

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

jack_ruby’s picture

Just 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!

psynaptic’s picture

I 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.

blanesworld’s picture

just 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?