For some reason, the theme business isn't being setup properly. In print_generate_node() we use theme_get_setting('logo') which returns "/logo.png". The problem is that elsewhere (e.g. the main page), theme_get_setting('logo') returns "/themes/slate/logo.png", i.e., $theme_object->filename . $settings['logo']. So, somehow we need the print module to operate the same as the main page.

I suspect this is overlooked because it only happens IF:
1. No custom logo in print.module settings. (logo_url is blank)
2. In theme, default_logo is set.

Example theme.inc code:

if ($settings['toggle_logo']) {
      if ($settings['default_logo']) {
        $settings['logo'] = dirname($theme_object->filename) .'/logo.png';
      }
      elseif ($settings['logo_path']) {
        $settings['logo'] = $settings['logo_path'];
      }
    }

Comments

peterjohnhartman’s picture

Status: Active » Fixed

I'm not sure if this was the most elegant solution, but I added init_theme() in print_generate_node() which solved the problem.

committed to cvs.

deekayen’s picture

Since you opened this new bug, does that mean it doesn't fix http://drupal.org/node/37295, or is it duplicate?

deekayen’s picture

committed to DRUPAL-4-6, too

Anonymous’s picture

Status: Fixed » Closed (fixed)