close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Possible Bug

Thread began 10/14/2010 7:29 am by Dave Buchholz | Last modified 2/11/2011 1:55 pm by Jason Byrnes | 1941 views | 9 replies |

Dave BuchholzBeta Tester

Possible Bug

Playing with Image Resizer today on a new site and I set the folder to hold the resize images as "_image_cache" as I like to have these type of folders at the top of the folder tree in Dreamweaver. The folder did not get created and I had to create it myself and apply the necessary permissions.

Using CS5 on Snow Leopard (latest version all patches applied)

Sign in to reply to this post

Jason ByrnesWebAssist

I am not able to reproduce the problem, I am also using snow leopard in DW CS5.

I set the cache folder name to "_image_cache" and it was created without an issue.


do you have any other specifics you can offer. Does it happen with other folder names? or only with a leading underscore?

Sign in to reply to this post

Dave BuchholzBeta Tester

Jason,

I only tried this once, I'll see if I can reproduce this again and come back to you

Sign in to reply to this post

Jason ByrnesWebAssist

OK thanks.

Sign in to reply to this post

danny405167

Image resizer cannot resize an image when I used my mac and cs5

Jason, I too have Snow Leopard and CS5 but when ever I try to re-size an image with image resizer I get the following error

Warning: mkdir(): Permission denied in /Users/danny6995/Development/bfc/webassist/caching/CachedResize_Image.php on line 229 Warning: 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/Los_Angeles' for 'PST/-8.0/no DST' instead in /Users/danny6995/Development/bfc/webassist/caching/CachedResize_Image.php on line 257 Warning: imagepng(): Unable to open '../../image_cache/Ornamental_Iron/fencing/images/fit/003_w236_h153/003_01080321.png' for writing: No such file or directory in /Users/danny6995/Development/bfc/webassist/caching/CachedResize_Image.php on line 212

If I resize the image with a pc and cs4, I get what I am suppose to. If I copy the files created with cs4 and pasted them to my root dir in my mac, the image resizes with no errors.

Also, I noticed that on my mac the cache_images folder is not created. Furthermore; the error above is stating that my folder is protected and is not because it works when I used the files created in CS4. Also the time on my 3 month mac is with the correct time.

I notice that in cs5 the CacheResize_Image file has 421 lines but in cs4 it has 485 lines.

Attached Files
cache folders.zip
Sign in to reply to this post

Jason ByrnesWebAssist

the error is saying that the permisions are not allowing folders to be crteated in the image_cache folder by the script.

In dreamweaver, set the files panel to Testing Server view, then right click the image_cache folder and select Set Permisions.

set the permissions to allow Read Write Access for the Owner , User / Group and Evewrybody users.


the second error is saying that the timezone is not set correctly in the PHP.ini file.

you need to set the date.timezone setting in the php.ini.


see the following for a list of excepted timezones:
timezones.php

Sign in to reply to this post

danny405167

Is the cache_images folder created automatically by Imagerisizer or I am suppose to create it? In my mac the cache_images folder is not created. When I create the folder it has permission for read and write. In fact all of my folders have a permission for read and write.

I never had to do the this step on my PC "In dreamweaver, set the files panel to Testing Server view, then right click the image_cache folder and select Set Permisions". Is if just for macs?

The following error: "the second error is saying that the timezone is not set correctly in the PHP.ini file". This is confusing because if my time zone was incorrectly, then my files created by Imageresizer in a pc with cs4 should not worked but they do.

Last question, why does the CachedResize_Image has more line codes in cs4 then cs5. Is it because different os and cs version?

Sign in to reply to this post

Jason ByrnesWebAssist

For the most part, that folder should get created automatically, if it does not get created automatically, then you will need to create it manually.

it's not so much a mac versus pc issue. The problem is that the code is trying to create the folder, but it does not have sufficient permissions to do so.

are you testing the files you create with the pc on the same testing server as the files you create with the mac?

I can only tell what the error message means. It is a php configuration issue.


For the size difference, it could be that you have the 1.01 beta version installed on the PC and the 1.00 release version installed on the mac

Sign in to reply to this post

danny405167

This is what I have

At work I have a DELL with WINDOWS 7 Pro, CS4 and Imageresizer 1.0.0. The php server is PHP Version 5.2.12 and APACHE 2.2.

At home MAC i3 with SNOW LEOPARD, CS5 and Imageresizer 1.0.0. The php server is 5 something and I think I am runing APACHE 2.2.

Sign in to reply to this post

Jason ByrnesWebAssist

so you are using 2 diferent testing servers, on one testing server the php.ini file is set correctly, on the other testing server the php.ini file is not.

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