close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Error displayed if image file extension in uppercase

Thread began 11/04/2011 2:14 pm by nibo | Last modified 11/08/2011 9:47 am by Jason Byrnes | 3152 views | 5 replies |

nibo

Error displayed if image file extension in uppercase

I have just uploaded updates to a site from my local server to a development server and I got a lot of warning messages like:

Warning: imagejpeg() [function.imagejpeg]: Unable to open '/<snip>
Permission denied in ../CacheResize_Image.php on line 212

Some of the thumbnails generated by Image Resized were fine, but the others had the error message. I traced it to the fact that the images that were not displaying had an uppercase file extension (.JPG not .jpg).

I changed the file extension of the ORIGINAL file that I had uploaded (not the one in the image_cache folder) AND changed the file extension in the database record and refreshed the page. Now they work.

As I am using File Manager to upload the image that Image Resizer then uses to create the thumbnails, I would like to know if it's possible to force the uploaded file to have a lowercase extension. I have posted a question to the HTML Editor forum.

Sign in to reply to this post

Dani Chankhour

I posted a work around in the HTML Editor thread.

However i can't reproduce the issue where image image resizer does not work with upper case extension.

Is there a page where i can see the issue, or you can zip the file and attach it to the thread along with the image that is causing the issue and the image resizer file.

thanks.

Sign in to reply to this post

nibo

Hi Dani,

Thanks for the response.

As I have fixed all the problem image files there are no errors to see at the moment. I have added the strtolower() fix to the ulpoad.php file as you mentioned in the other thread, however I will revert to the original file and try uploading an image with an uppercase extensions and see what happens.

Both upper and lower case file extensions were working fine on my local Apache server so perhaps it's a setting on the other web server?

Sign in to reply to this post

Dani Chankhour

That is possible, although i have not heard of any setting on a Server that could affect lower/upper file extensions.

Let me know if you come across the issue again.

Sign in to reply to this post

nibo

I am seeing the error again. It's not in the same area of the site as before, but shows the same error message.

Warning: unlink(image_cache/assets/companies/proportion/logo_philjonesbass_w90_h68/logo_philjonesbass_07250315.jpg) [function.unlink]: Permission denied in /var/www/vhosts/dev.mydomain.com/httpdocs/webassist/caching/CachedResize_Image.php on line 269

Warning: imagejpeg() [function.imagejpeg]: Unable to open 'image_cache/assets/companies/proportion/logo_philjonesbass_w90_h68/logo_philjonesbass_07250215.jpg' for writing: Permission denied in /var/www/vhosts/dev.mydomain.com/httpdocs/webassist/caching/CachedResize_Image.php on line 207


This time it doesn't seem to be related to uppercase file extensions. There are only four images which always show the error. The other images display correctly.

Weirdly, on a different page set-up to show all available images for that section, the ones which normally don't show, do show. ???

Any thoughts very much appreciated.

Sign in to reply to this post

Jason ByrnesWebAssist

I have created a support ticket so we can look into this issue further.

To view and edit your support ticket, please log into your support history:
supporthistory.php

If anyone else is experiencing this same issue, please append to this thread.

Sign in to reply to this post

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