Closed (duplicate)
Project:
Image watermark
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 May 2007 at 13:01 UTC
Updated:
25 Jun 2007 at 01:13 UTC
After updating to Image 5.x-1.1 (http://drupal.org/project/image), the watermark module 5.x-1.x-dev stops working. The following error message is displayed:
* Image file ./files/files/images/gw003.jpg not found.
* Error adding watermark.
* Image file ./files/files/images/gw003.preview.jpg not found.
* Error adding watermark.
I am not adding watermarks to the thumbnails, so chance is that this would also show for the thumbnail size if activated. The images are not watermarked due to the error.
Comments
Comment #1
kbahey commentedSeems the path is messed up.
You have files/files.
Check this and see if it is related, or even the same underlying issue http://drupal.org/node/142178
Comment #2
4cornersusa.com commentedI am getting the following error when I upload image or edit image node;
[• Image file ./files/files/images/P6022878.thumbnail.jpg not found.
• Error adding watermark.]
This has nothing to do with the location of, or what path I enter in the watermark filename input box in the image module.
My stats: Drupal v5.1, php v4.3, image.module v5.x-1.1, watermark.module v 5.x-1.x-dev
I did some digging in the module and tried the following;
Line 143 $dir = './' . variable_get('file_directory_path', 'files') . '/';
I removed the [,‘files’] which fixed the first problem now I get the following [warning: Missing argument 2 for variable_get() in /home/my-account-name/public_html/community/includes/bootstrap.inc on line 369.]
I also tried removing the './' with similar results.
I also noticed in the comments section that this module retrieves the images directly from the database and not the file structure. As I am still a newbe with sql, not sure where to poke around there. The thumbnail and display images do not exist anywhere in my filestructure so it makes since they are in the database somewhere.
At present watermark is disabled as it will not yet work on my system.
Comment #3
4cornersusa.com commentedCommenting out Line 143 worked.
Comment #4
katherinedI have a similar problem, but with 5.x-1.2 version of image module.
I upgraded thinking it would fix a resizing of thumbnails bug, and so far so good, but now the watermark doesn't work. In my case however, I don't get an error message. It just doesn't show up on the image.
Comment #5
schnizZzla commentedplease try the latest version of watermark with image 1.2
this issue should be fixed now:
http://drupal.org/project/comments/add/153995
feel free to reopen it, if it does not work.
Comment #6
schnizZzla commentedwrong link, it's the case here:
http://drupal.org/node/153995