Main
Index
Search
Posts
Who's
Online
Log
In

Home: Discontinued/Classic Products: Instant Website: Realty/Listings/Auto:
Internal server error on large image upload

 

 


willydoit
User

May 20, 2009, 9:11 AM

Post #1 of 4 (2738 views)
Shortcut
Internal server error on large image upload Can't Post

During testing I have discovered an issue where we get an internal server error when uploading large images, the images fall within the parameters set in the admin section and also within the default 2mb php limit which I believe is set by the server.

I cannot tell whether the internal error is being created during the upload or the resizing of the image and only seems to affect larger images. Thus far I have done limited testing as to what level the issue starts or whether it relates to file size or image dimensions however I would be interested to get feedback on other image experiences as the ability to handle large image uploads with Instant website performing the image reduction was a huge plus point to us as many of our clients do not have the ability or software to reduce the images prior to upload.

When the internal server error occurs the error is displayed within the window created to manage the upload and the only way out of it is to close the browser down which means all the prior data input for the account is lost unless it was saved prior to uploading the images.

Are there any known limitations regarding to image filesize or dimensions? It may be a problem with the hosting server (shared hosting so could be a processing timeout issue if the software uses a lot of processing power to resize the image) however I am sure their knee jerk reaction will be to blame the scripts Unsure

Having done some more testing I hjave discovered that the crash occurs due to the image dimensions, not the file size a 1.8mb image at 2048 pixels wide is fine but a 400k image at 3648 pixels wide will cause an internal server error as the software allows us to set a max file size but not a max dimension size this could be a big problem for us with some clients who just want to be able to take their image on their digital camera and upload to the site, any advice would be appreciated, or feedback to ascertain whether it is a hosting issue or a limitation of the resizing software.

Thanks in advance.


(This post was edited by willydoit on May 20, 2009, 10:22 AM)


ross
Staff / Moderator


May 21, 2009, 8:55 AM

Post #2 of 4 (2712 views)
Shortcut
Re: [willydoit] Internal server error on large image upload [In reply to] Can't Post

Hi there

Thanks for posting!

The program itself won't really mind how large the images are so if you are getting internal server errors, it's likely going to be server related. I am thinking it's all just timing out. Even though your image is smaller than the max file size and dimensions, it's possible the connection to your server isn't fast enough to let the upload finish.

What you can do is try contacting your webhost and asking them to increase the amount of time PHP scripts have to run on your server.

Let me know what they have to say and if that actually solves the problem.

Thanks!
-----------------------------------------------------------
Cheers,
Ross Fairbairn - Product Specialist
support@interactivetools.com

Hire me!  Save time by getting our experts to help with your project.
Template changes, advanced features, full integration, whatever you
need. Whether you need one hour or fifty, get it done fast with
Priority Consulting: http://www.interactivetools.com/consulting/



willydoit
User

May 21, 2009, 9:16 AM

Post #3 of 4 (2706 views)
Shortcut
Re: [ross] Internal server error on large image upload [In reply to] Can't Post

Thanks Ross,

Our hosts have suggested that we create a php.ini file and add something to increase the memory limit and have also asked if we could try moving our PHP parameters in to a php.ini file, I have to admit that I havent a clue what they are looking for here, should we be looking for any parameters for a php.ini file within the confines of the instant realty software? I assumed that these instructions would refer to how the server is configured to run php rather than contain anything specific to individual scripts, but as I say I dont have a clue.

If anyone could point me in the direction of a default or suitable php.ini script it would be helpful. It all takes me back to my childhood, you think you have life sorted and then someone goes and invents something called left and rightUnsure

Thanks in advance


ross
Staff / Moderator


May 25, 2009, 5:41 AM

Post #4 of 4 (2457 views)
Shortcut
Re: [willydoit] Internal server error on large image upload [In reply to] Can't Post

Hi there.

Thanks for the update!

You are on the right track with this one. The php.ini file your host mentioned is something you use to change how PHP runs on your server. It isn't specific to one script. It would effect all PHP scripts running on your site.

Could you ask your webhost for an example of what it would need to be. These kind of things can be formatted a bit different for each server as I think different options can be turned on and off by the host.

Thanks!
-----------------------------------------------------------
Cheers,
Ross Fairbairn - Product Specialist
support@interactivetools.com

Hire me!  Save time by getting our experts to help with your project.
Template changes, advanced features, full integration, whatever you
need. Whether you need one hour or fifty, get it done fast with
Priority Consulting: http://www.interactivetools.com/consulting/