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? 😊
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.
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
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
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.