image_exact: File does not exist.

j0sh - June 6, 2007 - 20:21
Project:Image Exact Sizes
Version:5.x-0.1
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:active
Description

when i modify my profile uploading an avatar i receive an error "image_exact: File does not exist."

#1

fajerstarter - June 29, 2007 - 13:56

I get the same error.

#2

bob-hinrichs - September 7, 2007 - 18:11
Priority:normal» critical

problem is in image_exact_nodeapi. The array refers to the label and not to the key, so the resulting path is blank.

This is a critical error in that it throws errors on the site (google the web and you will find it for all to see on several sites), on upload, and messes up the file paths. There is no good workaround that i have seen, since one cannot edit the labels of the default image sizes.

Fix:
$destination = file_create_path($node->images[$sizes[$i]['label']]);
change to:
$destination = file_create_path($node->images[$i]);

#3

futureal - September 12, 2007 - 01:44

Just a note that I experienced the same problem, and arrived at the same fix as above. I would have been surprised if this hadn't already been reported, but thought I'd check anyway just to make sure. :-)

#4

SeanBannister - September 25, 2007 - 07:53

I just applied this change but I still get the same error. Haven't got the time to look into it right now but will get back to it when I have time.

#5

johlin - September 27, 2007 - 16:45

Where is the image_exact_nodeapi file?

 
 

Drupal is a registered trademark of Dries Buytaert.