Image resizer works on 1 sites but not on another site
Hi I have a very annoying bug with the image resizer.
I am developing 2 sites at the same time, using just about a full set of WA tools. The structure of sites is identical, only difference being re-skinning the css colour scheme (and the actual content is completely different).
on 1 site the image resize works on the other it doesn’t.
The site that doesn't work had to go live yesterday so I have had to create multiple size versions of the same images manually.
When I view the source code on the site that doesn’t work this is what it says ...
<img src="" alt="show correct alt text and revised height width are correct" height="149" width="220"> ... image width being resized from 800px wide
The alt text and resized vales are correct, but the src”” is blank.
On both sites, this is the resize source code, images being resized from 800 pixels wide to a 220 thumbnail and a 650 main image.... I have only copied the 220 code example below...
<?php
if(TRUE){ // Begin Cached Resized Image: ImageCacheInstance_1310290027823
ob_start();
?>
<img src="images/subfoldername/imagename.jpg" alt="image alt text" width="220" height="" />
<?php
echo(getCachedResizedImageHTML(ob_get_clean(), "_cache", "proportion", "", false));
} // End Cached Resized Image: ImageCacheInstance_1310290027823
?>
I have added a forward slash in the src, but I get the full size image
<?php
if(TRUE){ // Begin Cached Resized Image: ImageCacheInstance_1310290027823
ob_start();
?>
<img src="/images/subfoldername/imagename.jpg" alt="image alt text" width="220" height="" />
<?php
echo(getCachedResizedImageHTML(ob_get_clean(), "_cache", "proportion", "", false));
} // End Cached Resized Image: ImageCacheInstance_1310290027823
?>
The _cache folder permissions the same on both sites.
_cache 0777
images 0755
subfoldername
The only thing I can spot is that on the site that shows the resized image, the folder structure on the server is ...
_cache/images/subfoldername/proprortion/imageresizedfolder/imagename.jpg
Whereas on the site that doesn’t work only the images/ folder is created ... ie _cache/images/
The subfoldername and then proportion file structure doesn’t create itself.
Both sites are on the same server etc ... in effect everything is identical.
On the non-working site I have repeated the image resizer start->finish process several times, I have changed the cache folder / I have tried manually creating the folder etc etc etc .... I have 'characterset' checked the coding line for line, character for character to check for any typos. I have seriously tried ever possible combination to fix it, including starting from scratch etc etc
Words of assistance will be greatly appreciated. There is clearly a permissions / auto folder creation issue. However why does it work on 1 site but not the other ... both are identical in every shape from the html coding to the hosting structures etc etc etc. Both are on a dedicated server owned by myself, so there is no issue with 'your' host may not allow.
Thanks
Nathan