Closed (outdated)
Project:
Link Image Field
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 Feb 2011 at 03:29 UTC
Updated:
24 Oct 2025 at 11:33 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
tseven commentedHere is the patch.
Comment #2
testertesters commentedI also ran into this problem, and another related: A node with no data in the linkimage field would still output an image tag with source set to the sites root url. This was with views, using imagecache, and despite "Hide field if empty" was checked. I fixed it by adding to linkimagefield.module in function theme_linkimagefield_imagecache($element):
after this code:
Comment #3
pfrenssenDo you have an example of a use case when a variable is passed here that is not an array? I'd like to check what is going on then since I don't really agree with the patch. It suppresses the warning but in doing this it actually skips the code that is responsible for retrieving the file path, so it will result in an empty path in the image tag. I'd like to know if it is possible to retrieve the image somehow, perhaps it is passed in another part of the element. In any case if the image can not be generated correctly it should not output useless HTML as described by testertesters in comment #2.
Comment #4
sickness29 commentedDevelopment or support is not planned for D6. All D6-related issues are marked as outdated in a bunch.
Everyone can apply the patch above (not tested by the maintainers, tested by the community) to their D6 projects.
If the issue remains relevant for D10+ versions, merge requests with proposed solutions for a new module version (D10+) are welcome in a new follow-up issue.
Thanks!