I am uploading photos in the weblog with the “File” field. It places the images in images/uploads/ and in that directory plus the main images directory I have the “sized” folder set to 777.
I’d guess it was a permissions issue if you just moved to a production server.
Do you have images/uploads/sized/images & /uploads/sized/images/uploads set to 777 as well? Also try deleting or changing the permissions of any “sized” images images in those folders.
If your webhost runs php as a cgi, search for more info on additional restrictions php as cgi has.
site: http://www.montanakaimin.com/dev/
So here’s my code
{if image01 != ""}
<a href="http://{title_permalink=">_{exp:imgsizer:size src="http://www.montanakaimin.com/dev/images/kaimin/{image01}" auto="100"}_</a>
{/if}
This conditional worked fine until I added the imgsizer tag - now it seems the tag is executed even when the field ‘image01’ is empty. I assume EE is executing the imgsizer tag before checking the conditional - is there any reason why this should be the case? What can I do to stop this from happening?
This generates the following error, which can currently be seen at the top of my home page:
Warning: getimagesize() [function.getimagesize]: Read error! in /www/pmh4018/public_html/dev/mksys/plugins/pi.imgsizer.php on line 151
Thanks much!
PS EE version 1.6.8 imgsizer version 2.5.6
I set my folders to 777 logged in through ssh and still can’t get it to work.
here is what I am using…
{exp:imgsizer:size src="images/uploads/{store_picture2}" height="55" alt="Test Image" id="test image" class="class="microsite_pic_border"}
The picture does not display and no error.
BUT if I put this…
{exp:imgsizer:size src="{store_picture2}" height="55" alt="Test Image" id="test image" class="class="microsite_pic_border"}
I get this error… Warning: mkdir() [function.mkdir]: SAFE MODE Restriction in effect. The script whose uid is 10033 is not allowed to access /var/www/vhosts/shanesribshack.com/httpdocs/images/uploads/sized/images/uploads/ owned by uid 48 in /var/www/vhosts/shanesribshack.com/httpdocs/INNcommand/plugins/pi.imgsizer.php on line 205
ANY IDEAS?
Also something else I don’t understand is the folder path that the error is calling… When I upload an image in the weblog it goes to images/uploads and in that directory I created the sub folder “sized”. Where is the sized/images/uploads coming from… Is that created by the imgsizer plugin?
Thanks!
Hey I have installed the plugin as described but it doesn’t appear in the plug-in manager. what I’m doing wrong? I’m using EE 2.0 PB. Also there are 2 plugins directories wich confuse me. Thanks a lot!
Same here!!
I’ve uploaded it into the plugins directory and created the /sized/ directory with 777 permissions, but can’t figure out how to install this, any advice please?
I have nGen and FieldFrame set up and apparently working well. I am using them to upload product photos so that each product can have it’s own slideshow.
On the product listing page, I need to display all the products along with ONE thumbnail for each.
Here is the code that I am using to display the FULL size image for each item:
{exp:weblog:entries weblog="forsale" orderby="date" sort="desc" disable="member_data|trackbacks|categories"}
<div class="homedata">
/images/uploads/forsale/{PhotoGroup limit=
</div>
{/exp:weblog:entries}
I cannot seem to figure out a way to get Image Sizer to work in this scenario. I have made the “sized’ directory and set it to allow writing.
Does anyone have any ideas?
Ok figured out my problem that was throwing the error…
Warning: mkdir() [function.mkdir]: SAFE MODE Restriction in effect. The script whose uid is 10033 is not allowed to access /var/www/vhosts/shanesribshack.com/httpdocs/images/sized/images/uploads/ owned by uid 48 in /var/www/vhosts/shanesribshack.com/httpdocs/INNcommand/plugins/pi.imgsizer.php on line 205
Just logged into my server and found that it was set to “Safe-mode” on and turned it off and now it works like a charm.
NOW… is possible to put imgsizer inside of a href?
Updating from Image Sizer 2.1.2 to 2.5.6 fails and causes EE Plugin Manager to go blank I’ve just updated from 1.6.7 to 1.6.8 and, now, going through extensions, modules, plugins, etc. to be sure I have most recent versions. Previous version installed for Image Sizer was 2.1.2. No matter how I do it - via the CP or manually - 2.5.6 causes the cp plugin manager screen to go blank. Copy back 2.1.2 - all is well. 2.5.6 - and screen goes blank again.
I’m getting exactly the same problem. Brand new install of EE 1.6.8 and 2.5.6 (not the EE 2.0 version) just kills the plugin page. Anyone got any tips? Or 2.5.5?
Thanks!
Can I get Image Sizer to write the cached images on another server instead of the server where EE is installed?
I’m using S3+Cloudfront to store and deliver images but I want the cached versions to stay on S3, not on my server. Otherwise it’d be a bit pointless to use S3 and Cloudfront if the images are going to be served from my server.
Not sure if that made sense. :lol:
btw, using EE 2.0.
This is probably a dumb question, but here goes 😊
Once I size an image with imgsizer how can I access that resized image elsewhere after it has been created the first time?
For Example:
<a href="http://{exp:imgsizer:size">link</a>
<!-- elsewhere in the template -->
{my newly resized image}
Just running this for the first time with EE2 and imgsizer2.6 but simply getting the following error on loading the page..
A PHP Error was encountered Severity: Warning Message: mkdir() [function.mkdir]: Permission denied Filename: imgsizer/pi.imgsizer.php Line Number: 200
there is a ‘sized’ directory under the main ‘images’ dir with 777 permissions.
sorry if it has been brought up before.. I did try to read most of the pages, honest 😊
Just running this for the first time with EE2 and imgsizer2.6 but simply getting the following error on loading the page..A PHP Error was encountered Severity: Warning Message: mkdir() [function.mkdir]: Permission denied Filename: imgsizer/pi.imgsizer.php Line Number: 200there is a ‘sized’ directory under the main ‘images’ dir with 777 permissions. sorry if it has been brought up before.. I did try to read most of the pages, honest 😊
It looks like your permissions probably are not correct. The directory need to be 777 but should also match your owner and group. I had a similar problem when apache create the folder structure for me under the sized folder and had to adjust those folders to match the rest of my permissions. Remember that imagesizer will match the path of the image you are resizing by recreating the directory (from the root) structure within the ‘sized’ folder. For example if the image you are resizing is located at:
/images/uploads/my_image.jpg
then image sizer will want to put the resized image in the following location.
/images/sized/images/uploads/my_image.jpg
all of those folders within the sized directory need to have the same permissions.
Hope that makes sense.
Same here in EE 2
A PHP Error was encountered Severity: Warning Message: mkdir() [function.mkdir]: Permission denied Filename: imgsizer/pi.imgsizer.php Line Number: 200
A PHP Error was encountered Severity: Warning Message: Cannot modify header information - headers already sent by (output started at /var/www/domain/htdocs/test.de/systemfolder/core/Exceptions.php:166) Filename: core/Common.php Line Number: 421
Aller permissions are the same also owner and group…
Just running this for the first time with EE2 and imgsizer2.6 but simply getting the following error on loading the page..It looks like your permissions probably are not correct. The directory need to be 777 but should also match your owner and group. I had a similar problem when apache create the folder structure for me under the sized folder and had to adjust those folders to match the rest of my permissions. Remember that imagesizer will match the path of the image you are resizing by recreating the directory (from the root) structure within the ‘sized’ folder. For example if the image you are resizing is located at: /images/uploads/my_image.jpg then image sizer will want to put the resized image in the following location. /images/sized/images/uploads/my_image.jpg all of those folders within the sized directory need to have the same permissions. Hope that makes sense.A PHP Error was encountered Severity: Warning Message: mkdir() [function.mkdir]: Permission denied Filename: imgsizer/pi.imgsizer.php Line Number: 200there is a ‘sized’ directory under the main ‘images’ dir with 777 permissions. sorry if it has been brought up before.. I did try to read most of the pages, honest 😊
Eventually got this working by using the base_path tag to hard code in my ‘sized’ directory.
I am actually running EE2 in a subdirectoy, don’t know if that should make any difference.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.