I’m using Drupal 6.13, I tried to change the logo for the admin template and got this error message. A little bit of digging turned up a comment made by zbricoleur  on the Drupal.org site where he provides a working solution.

In /includes/image.inc, change line 117 from:

  if (!is_file($file)) {

to:

  if (!is_file($file) && !is_uploaded_file($file)) {

That line above works nicely, however next up you might see the error:

The selected file  could not be copied, because no file by that name exists. Please check that you supplied the correct filename.

To get around that problem do this:

Administer/File-System

You might find it under the 'Site configuration' heading and then File System.

There you will see a box that has: Temporary Directory

c:\windows\temp and change it to the same as the line above it which will probably be

sites/default/files

Save configuration and you're good to go.

:)

PS. Nobody leaves a comment if I help them, please let me know if this solution worked for you…

5 comments

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>