I've just upgrade my 2nd test site from image 1.2 to image 1.4.
I'm not sure why the derivate images are missing, but when viewing my image galleries I get a lot of ugly warnings in red:

* warning: Illegal offset type in isset or empty in /is/htdocs/.../modules/taxonomy/taxonomy.module on line 1150.
* warning: Illegal offset type in /is/htdocs/.../modules/taxonomy/taxonomy.module on line 1151.
* warning: Illegal offset type in /is/htdocs/.../modules/taxonomy/taxonomy.module on line 1154.
* : Object of class stdClass could not be converted to string in /is/htdocs/.../sites/all/modules/pathauto/pathauto_node.inc on line 223.
* warning: Illegal offset type in isset or empty in /is/htdocs/.../modules/taxonomy/taxonomy.module on line 1150.
* warning: Illegal offset type in /is/htdocs/.../modules/taxonomy/taxonomy.module on line 1151.
* warning: Illegal offset type in /is/htdocs/.../modules/taxonomy/taxonomy.module on line 1154.

One set of those for each derivate that's generated - and that didn't happen with the old image module.
And it does scare site-visitors looking at the image gallery ...

Comments

ray007’s picture

Update: the problem seems to be, that $node->taxonomy is an array of objects.
During node_save() the function taxonomy_get_term($tid) is then called with an empty string as parameter, which explains the taxonomy error messages.

When I convert the object into an array, the warning vanish, but I get another warning:

user warning: Duplicate entry '0-377' for key 1 query: taxonomy_node_save INSERT INTO term_node (nid, tid) VALUES (377, 0) in /is/htdocs/.../includes/database.mysql.inc on line 172.

so it seems that's also not the right fix regarding taxonomy.

Since the taxonomy is from the image_gallery, it's probably in image_gallery bug?

Has anybody an idea on how to fix this, or should I downgrade to image 1.2 which seems to not have this problem?

ray007’s picture

*Bump*

No comments? Am I the only one using image_gallery? Or just the only one having problems?

Anonymous’s picture

And it does scare site-visitors looking at the image gallery ...

administer >> settings >> Error handling

Error reporting: to write errors to the log

ray007’s picture

I know, but that's papering over the problem that shouldn't appear in the first place.
And it also hides errors one would really like to see ...

And with image version 1.2 we didn't have those errors.

drewish’s picture

Component: image.module » image_gallery
Priority: Critical » Normal

it does sound like more of an image_gallery problem... i'm not sure, i haven't seen it on my sites.

pfaocle’s picture

Seeing very similar errors here too:

    * warning: Illegal offset type in isset or empty in /usr/local/www/.../modules/taxonomy/taxonomy.module on line 1172.
    * warning: Illegal offset type in /usr/local/www/.../modules/taxonomy/taxonomy.module on line 1173.
    * warning: Illegal offset type in /usr/local/www/.../modules/taxonomy/taxonomy.module on line 1176.
    * : Object of class stdClass could not be converted to string in /usr/local/www/.../pathauto/pathauto_node.inc on line 221.
    * warning: Illegal offset type in isset or empty in /usr/local/www/.../modules/taxonomy/taxonomy.module on line 1172.
    * warning: Illegal offset type in /usr/local/www/.../modules/taxonomy/taxonomy.module on line 1173.
    * warning: Illegal offset type in /usr/local/www/.../modules/taxonomy/taxonomy.module on line 1176.

Manually re-editing works, not poked any further as I'm also having trouble with 1.4 generating thumbnails for some images.

drewish’s picture

Status: Active » Postponed (maintainer needs more info)

what type of taxonomies do you have on the image nodes.

ray007’s picture

In my case only the taxonomy from image_gallery, it's a vocabulary with single hierarchy.

drewish’s picture

i can't replicate the error. based on the location there's something screwy in your taxonomy someplace that's probably causing the error... perhaps something didn't upgrade in the past... if you'd like to send me a db dump i'll take a look at it. drop me a line via my contact form.

drewish’s picture

marked http://drupal.org/node/170992 as a duplicate

ray007’s picture

The whole thing is not yet public and not my IP, so I can't give out a db-dump.

But I don't see what could potentially be screwy with the taxonomy.

Side-question: why is there a node_save() somewhere happening when derivative images are generated?

Hetta’s picture

... try a pathauto bug. From a quick google:

http://drupal.org/node/102478 (pathauto ...)
http://drupal.org/node/105645 (pathauto ...)
http://drupal.org/node/101776 (pathauto ...)

http://drupal.org/node/145654 (forum post, points to pathauto problem ...)

Pathauto beta1 doesn't give errors. I'm not sure about pathauto beta2 - there was a patch for one or the other excessive warning bug for that. Try the dev, if there is one.

drewish’s picture

Status: Postponed (maintainer needs more info) » Fixed

/me slaps head!

thanks Hetta, I remember running into that a while back.

js1’s picture

i think this is a duplicate of http://drupal.org/node/159963 but they're experiencing it with 1.4 as well...

Yep... something happened this morning as I was working on my site, and existing images are no longer displaying. I don't see the taxonomy errors that seem to be related to pathauto, but I may just not have run into it yet. As I mentioned in my original report, I simply get "page not found" drupal log messages on images that previously displayed properly.

When I rolled back to 1.4 after the failed upgrade to 1.5, I didn't roll back the database changes from 1.5. Would this have anything to do with it? It's kind of strange that 1.4 would work with the 1.5 database updates until today. Here's what I reported (comment #12) to a similar looking bug report on pathauto.

Anonymous’s picture

Status: Fixed » Closed (fixed)