Closed (fixed)
Project:
Image
Version:
5.x-1.4
Component:
image_gallery
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Jul 2007 at 08:44 UTC
Updated:
12 Sep 2007 at 15:21 UTC
Jump to comment: Most recent
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
Comment #1
ray007 commentedUpdate: 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:
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?
Comment #2
ray007 commented*Bump*
No comments? Am I the only one using image_gallery? Or just the only one having problems?
Comment #3
Anonymous (not verified) commentedadminister >> settings >> Error handling
Error reporting: to write errors to the log
Comment #4
ray007 commentedI 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.
Comment #5
drewish commentedit does sound like more of an image_gallery problem... i'm not sure, i haven't seen it on my sites.
Comment #6
pfaocleSeeing very similar errors here too:
Manually re-editing works, not poked any further as I'm also having trouble with 1.4 generating thumbnails for some images.
Comment #7
drewish commentedwhat type of taxonomies do you have on the image nodes.
Comment #8
ray007 commentedIn my case only the taxonomy from image_gallery, it's a vocabulary with single hierarchy.
Comment #9
drewish commentedi 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.
Comment #10
drewish commentedmarked http://drupal.org/node/170992 as a duplicate
Comment #11
ray007 commentedThe 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?
Comment #12
Hetta commented... 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.
Comment #13
drewish commented/me slaps head!
thanks Hetta, I remember running into that a while back.
Comment #14
js1 commentedYep... 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.
Comment #15
(not verified) commented