close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Image Resizer "Notice" on first resize of new image

Thread began 3/28/2013 8:06 am by Andrew Read | Last modified 3/28/2013 12:59 pm by Christopher West | 1826 views | 9 replies |

Andrew Read

Image Resizer "Notice" on first resize of new image

Every time I upload a new image, my testing server (stricter error and notice reporting than normal) reports the following error.

Notice: Use of undefined constant resize_smaller -  assumed 'resize_smaller' in LOCATION\CachedResize_Image.php on  line ###
Sign in to reply to this post

Jason ByrnesWebAssist

in the webassist\caching\CachedResiz e_Image.php file, change line 164:

php:
if (!$this.resize_smaller && $this->width < $this->new_width && $this->height < $this->new_height)    {



to:

php:
if (!$this->resize_smaller && $this->width < $this->new_width && $this->height < $this->new_height)    {
Sign in to reply to this post

Christopher WestCommunity Expert

Oddly enough I only started to get this same error message on my local host after I had changed code to the location of the uploaded images..but that was a fairly straightforward process that wouldnt have effected imagecache...I even deleted the the webassist imagecache php folder and reapplied the server behaviour, deleted all the _notes folders and the cache folder on the localhost...but still get this issue..the only other part of my system that is different is either the latest databridge revision and the WAMP software (I used to use WampServer now Im using XAMPP). I havent had time to investigate this issue but i am interested to find out any details of why its happening :)

Chris

Sign in to reply to this post

Jason ByrnesWebAssist

did you see my previous reply?

in the webassist\caching\CachedResiz e_Image.php file, change line 164:

php:
if (!$this.resize_smaller && $this->width < $this->new_width && $this->height < $this->new_height)    {


to:

php:
if (!$this->resize_smaller && $this->width < $this->new_width && $this->height < $this->new_height)    {
Sign in to reply to this post

Andrew Read

By the timestamps it looks like he was typing while you were posting. :D

Sign in to reply to this post

Christopher WestCommunity Expert

yes when I posted my question I noticed Jason had replied to yours while I was typing (note to self..I must type faster) ;-)

Chris

Sign in to reply to this post

Jason ByrnesWebAssist

no worries, just wanted to make sure there was a reply to your question so you would get a notice.

Sign in to reply to this post

Christopher WestCommunity Expert

Thats all good Jason. curious though..As I wrote in my original post this issue only occured only after I changed folders (so changed code) updated the webassist extensions and changed to a different wamp environment (I did all 3 at different times) and only noticed this error after so I am unsure which would have effected this issue as before never had problems with imagecache.

Chris

Sign in to reply to this post

Andrew Read

It's not an "Error" it is a "Notice", so it was probably always happening.. but your new testing server has a higger reporting state set. You may not have been seeing "Notices" reported at all before. :)

Sign in to reply to this post

Christopher WestCommunity Expert

Thanks Andrew, that makes sense..I must admit I do prefer XAMPP then WampServer...however I do feel the longer I use XAMPP in one session Im sure it slows down...but im just nip-picking now lol


Chris

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