No watermark appears; error in watchdog log: in_array(): Wrong datatype for first argument ... watermark.module on line 538
inactivist - July 15, 2007 - 18:45
| Project: | Image watermark |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
I have only one image gallery taxonomy term configured on my new site. When I upload a photo, no watermark is applied, and I see numerous errors in my watchdog log:
in_array(): Wrong datatype for first argument ... watermark.module on line 538
<?php
// $Id: watermark.module,v 1.5.2.5 2007/07/07 17:53:29 kbahey Exp $
...
function _watermark_is_node_excluded($node) {
...
// it's not a multiple select vocabulary
else if (!empty($tids) && $vid == $gallery_vid && in_array($tids, $excluded_tids)) { // LINE 538
// excluded term found
return true;
?>The only other taxonomy defined is a site-wide "free tagging taxonomy" which is also configured to apply to image nodes.
I'm still investigating, more later.

#1
Image module version info:
// $Id: image.module,v 1.209.2.36 2007/07/06 15:22:19 drewish Exp $#2
I'm going to investigate and trying to fix that on this weekend.
#3
Thanks. My taxonomy structure:
+ Image Galleries (created by image module gallery feature)
- Gallery 1 (I created this gallery to test image uploads)
+ Site Wide Tags (Free Tagging)
(applies to image nodes as well as other types.)
That's all I've got.
I'll be out all weekend, so I'll try to respond to any questions early next week.
#4
I think, I will be able to fix this along with the other issue:
http://drupal.org/node/159588
#5
Similar bug with the latest image module (1.6). Watermark is applied, but the error message appears.