Closed (fixed)
Project:
Imagecache Token
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 May 2012 at 09:13 UTC
Updated:
11 Nov 2014 at 21:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
d.sibaud commentedI found a possible workaround,
on line 70 of imagecache_token.module:
Comment #2
j0rd commentedI'm running in to this as well.
I believe it may be a core issue.
I've changed your patch around to not call the file_load should $field['uri'] exist for performance reasons, but otherwise it should work the same.
Additionally here's the core patch in question, which I believe may be related:
#1762772: Notice: Trying to get property of non-object in image_style_deliver()
Comment #3
hydra commentedWhen does this happen, I can't get to the problem to test the patch properly.
Comment #4
j0rd commentedFOr me, it happens all the time. Usually when I auto-create a "profile node" when a user account is created.
As mentioned previous, I believe it's related to this core bug in Drupal, which image derivatives are getting created, but not done, and other code gets run. So in those cases file uri doesn't exist....or something.
See my write up here and read the next couple posts:
https://drupal.org/node/1762772#comment-7367644
With that said, I upgraded imagecache_tokens with out re-applying this patch and the error has returned. I've re-patched image_cache tokens.
Comment #5
j0rd commentedTestbot
Comment #6
damienmckennaRerolled, and tidied up slightly.
Comment #7
damienmckennaThis didn't work until I added the 'uri' value to _imagegecache_token_image_attributes().
Comment #8
damienmckennaCommitted.