close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Image resizer works on 1 sites but not on another site

Thread began 8/13/2011 10:29 am by Nathan69474 | Last modified 8/18/2011 1:53 pm by Nathan69474 | 1024 views | 2 replies

Nathan69474

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

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...