We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Img Sizer problem

Development and Programming

pushloop's avatar
pushloop
422 posts
16 years ago
pushloop's avatar pushloop

A student of mine has a problem with the Img Sizer plugin, which I believe is the result of their testing site being located inside a sub-directory on the server. I expect it to work one the site goes online, but it would be nice making it work when testing…

Their server path to their images folder looks like this:

/hsphere/local/home/mediesko/tulegatan.se/ee4/images/bilder/

The error they encounter looks like this:

Could not create a cach directory! Please manually create the cache directory 
/hsphere/local/home/mediesko/tulegatan.se/images/sized/ee4/images/bilder/ with 777 permissions

Notice the error within the error message?

/images/sized/ee4/images/bilder/

should just be

/ee4/images/sized/

Of course they have created the cache dir with 777 permissions. They have also tried overriding the base cache and base url with no luck.

Is this a known bug or something local? 😊

       
Jason Morehead's avatar
Jason Morehead
454 posts
16 years ago
Jason Morehead's avatar Jason Morehead

What version of the plugin is being used? The most recent version – 2.5.5 – changed how files were organized on the server. However, you can change where it’s being pointed to using the plugin’s “base_path” and “base_cache” parameters. You can find more info in the plugin’s documentation.

       
pushloop's avatar
pushloop
422 posts
16 years ago
pushloop's avatar pushloop

I believe it’s the latest version as they just downloaded it. And as I stated above both base_path and base_cache has been modified in various ways but with no luck. Changing the paths did indeed change things, but we were unable to modify it in a way that worked.

       
Jason Morehead's avatar
Jason Morehead
454 posts
16 years ago
Jason Morehead's avatar Jason Morehead

D’oh… sorry I totally glossed over that part of your message.

I ran into a similar issue when I implemented ImgSizer, but fiddling with the those two parameters worked for me.

Do you have the same issue if you use the previous version (2.1)?

       
pushloop's avatar
pushloop
422 posts
16 years ago
pushloop's avatar pushloop

I don’t know if they have tried it. You wouldn’t happen to have a download link for that version by any chance?

       
Jason Morehead's avatar
Jason Morehead
454 posts
16 years ago
Jason Morehead's avatar Jason Morehead

You can find it at the very bottom of the ImgSizer page.

http://www.lumis.com/page/imgsizer/

       
pushloop's avatar
pushloop
422 posts
16 years ago
pushloop's avatar pushloop

Great! I will ask them to give it a try tomorrow. Thanks for your help so far.

       
pushloop's avatar
pushloop
422 posts
16 years ago
pushloop's avatar pushloop

Sorry for taking so long to reply.

My students have tried using the old plugin, but that didn’t do the trick either.

Also, another student have run into a new problem with the latest version of the plugin - when installing it, it breaks the plugin manager page in the CP. When browsing to it a blank page is shown. This appears to be related only to the imgsizer plugin, as other new plugins installed afterwards have worked fine, including the 2.1 version of imgsizer.

What would Jesus do?

/A

       
lumis's avatar
lumis
119 posts
16 years ago
lumis's avatar lumis

if you need to use base_path and base_cache base_path= make sure it is the full server path the install of EE src=”” would then be the continuation of that path to the image file. and base_cache= make sure it is the full server path from server root to where you want the cache directory structure to be created.

{exp:imgsizer:size width="600" src="/images/bilder/image_file_name.jpg" base_path="/hsphere/local/home/mediesko/tulegatan.se/ee4/" base_cache="/hsphere/local/home/mediesko/tulegatan.se/ee4/images/sized/"}

so base_path+src would add up to where the image is. /hsphere/local/home/mediesko/tulegatan.se/ee4/images/bilder/image_file_name.jpg

as far as the plug-in page not loading in the CP make sure the plug in is uploaded as askii or not corrupted or partial during upload

       
Tuscany's avatar
Tuscany
1 posts
16 years ago
Tuscany's avatar Tuscany

I had the exact problem as pushloop until i saw lumis’s convection to your code. Thank you.

       
daithi's avatar
daithi
38 posts
15 years ago
daithi's avatar daithi

Just a bump and a thank you — this solution also worked for me. Phew!

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.