Hello all,
I am having a few issues with my img.sizer plugin.
I have a couple of images that have been uploaded, when I view them via their full url they are seen nice and clear.
I have a stripped filename in a custom field. Just example.jpg. This file s located in images/uploads.
{exp:imgsizer:size src="/images/uploads/{gallery-image-source}" width="auto" alt="{title}" id="{entry_id}" class="thumb"}
My problem is however, when I pass my EE custom field to the imgsizer source the image url is not being placed in the outputted (EMPTY) when viewing the source code.
I am getting a couple of PHP errors, which I presume are throwing the plugin out…
Any thoughts would be appreciated.
Warning: Invalid argument supplied for foreach() in /home/blah/blah/system/plugins/pi.imgsizer.php on line 237 Notice: Undefined index: out_width in /home/blah/blah/system/plugins/pi.imgsizer.php on line 314 Notice: Undefined index: out_height in /home/blah/blah/system/plugins/pi.imgsizer.php on line 314 Warning: Invalid argument supplied for foreach() in /home/blah/blah/system/plugins/pi.imgsizer.php on line 237 Notice: Undefined index: out_width in /home/blah/blah/system/plugins/pi.imgsizer.php on line 314 Notice: Undefined index: out_height in /home/blah/blah/system/plugins/pi.imgsizer.php on line 314 Warning: Invalid argument supplied for foreach() in /home/blah/blah/system/plugins/pi.imgsizer.php on line 237 Notice: Undefined index: out_width in /home/blah/blah/system/plugins/pi.imgsizer.php on line 314 Notice: Undefined index: out_height in /home/blah/blah/system/plugins/pi.imgsizer.php on line 314
What do you have in your {gallery-image-source} field?
Here’s how I typically use it:
{exp:imgsizer:size src="{gallery_image}" width="284" height="125" alt="{title}"}
Inside of my {gallery_image} field, I insert it with “URL Only” so in the custom field it shows something like
https://ellislab.com/asset/images/ent-partner-logo/image.png
Same problems
Warning: Invalid argument supplied for foreach() in /system/plugins/pi.imgsizer.php on line 237 Notice: Undefined index: out_width in /system/plugins/pi.imgsizer.php on line 314 Notice: Undefined index: out_height in /system/plugins/pi.imgsizer.php on line 314
and image not showing, just alt text being displayed.
Ok, if you’re using
https://ellislab.com/asset/images/team-photo/example.jpg
in your custom field, you’ll have to change the imgsizer code and remove the “/images/uploads/” part.
With the “filedir_1” part in the custom field that will tell the site where to pull the image from, so when you view your source code, filedir_1 actually turns into something like http://www.domain.com/images/uploads. So if you use src=”/images/uploads/{custom-field}” what will actually be output is /images/uploads/http://www.domain.com/images/uploads/example.jpg which as you can see would give you some errors.
I am still getting errors.
Have tried using example.jpg as the {gallery-image-source}
{exp:imgsizer:size src="/images/uploads/{gallery-image-source}" width="auto" alt="{title}" id="{entry_id}" class="thumb"}
Have tried using { filedir_1 }example.jpg as the {gallery-image-source}
{exp:imgsizer:size src="{gallery-image-source}" width="auto" alt="{title}" id="{entry_id}" class="thumb"}
Have tried using example.jpg as the {gallery-image-source}
{exp:imgsizer:size src="https://ellislab.com/asset/images/team-photo/{gallery-image-source}" width="auto" alt="{title}" id="{entry_id}" class="thumb"}
All of which error and show nothing
Could it be an error in the plugin???
I have reverted to an older version of img:sizer and so far it appears to be working some what better. Atleast a thumbnail is actually showing now. Many Thanks for the help. I will be back in time, as I am determined to get the newer version working too.
Cheers
Help! My client’s site has been working fine for several weeks, but suddenly no images coded with the imgsizer plugin are displaying. Nothing’s changed as far as configs – just stopped working overnight! Any ideas? Urgent.
In debug mode I get: (0.039470) imgsizer.Error: /home/user/domains/mydomain.co.uk/public_html/images/sized/images/uploads/ is not writable please chmod 777
Already checked this, and it is writeable, and obviously been working fine all this time.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.