close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Image resizer

Thread began 11/11/2014 9:34 am by russb335115 | Last modified 11/11/2014 11:18 am by Jason Byrnes | 1524 views | 9 replies |

russb335115

Image resizer

I'm getting an error on my results page when I applied the image resized. Here is the error:

/homepages/19/d403739231/htdocs/antronix/webassist/caching/CachedResize_Image.php on line 283

Here is the page:

http://s403739248.onlinehome.us/antronix/antronix-Products-Drop-Passives-Splitters.php

When I use the filter to get results the error above shows just above the image and the images aren't resizing

Sign in to reply to this post

Jason ByrnesWebAssist

the error:

  Strict Standards: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for 'EST/-5.0/no DST'  



This is a php server issue.

The host should be able to update the php.ini file for you to set the default timezone to prevent that error from occurring. It happens if the default time zone is not set in the php.ini.


alternativly, you can add the following at line 1 of the results page:

<?php 
date_default_timezone_set('America/New_York');
?>



but it is best to set the default time zone in the php.ini file so you won't have to keep setting it in other files.

The list of valid timezones is here...

http://www.php.net/manual/en/timezones.php

Sign in to reply to this post

russb335115

Awesome that got ride of the error but it seems like the image resized isn't working.

Sign in to reply to this post

Jason ByrnesWebAssist

looks like it is working to me. if i view the image source, the path is:

image_cache/images/products/fit/CMC2002LC-A_w200_h181/CMC2002LC-A_09021119.jpg

that is the path to the resized image.

Sign in to reply to this post

russb335115

See PM

Sign in to reply to this post

Jason ByrnesWebAssist

they both look the same size to me.

Sign in to reply to this post

russb335115

I think I'm not explaining it correctly. So the image is in a image holder which is what the image resized is attached to. the image holder is part of a repeat region (from the results page) but the second image holder is larger that the first when they should be the same. Plus the second image lost the formation which has a 10px right margin.

Sign in to reply to this post

Jason ByrnesWebAssist

your image tag does not specify the width or height attributes.

image resizer determines the width and eight for the resized image based on the width and heigh attributes set in the image tag.

with no width or height, it does not know what size to recreate the images at.

Sign in to reply to this post

russb335115

Oh, I thought it could also work off of the style sheet. I will put the attribute in the tag.

Thanks,

Sign in to reply to this post

Jason ByrnesWebAssist

No, it won't look at the css, only the width and height in the image tag.

Sign in to reply to this post
loading

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...