 | |  | | | Classifieds Suggestions Have an idea to make Classifieds even better? |
February 18th, 2013, 12:13 PM
|
#1 (permalink)
| | Member Verified Customer
Join Date: May 2003 Location: Spring Branch, Texas
Posts: 391
| Upload Size Error
Our biggest support issue with Classifieds is that when someone uploads a photo or group of photos that is too large the program simply fails to produce an ad. Many times the user is shown a blank page, or they are just sent back to the ad details and upload pages or sometimes they are taken back to the index page and they assume there must be some kind of moderation delay.
It would be a real help if the program could simply yield a "Images too large, etc" error message instead of the current ambiguous failure.
|
| |
February 18th, 2013, 02:54 PM
|
#2 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,683
|
Nothing we can do about either issue.
1. BLANK PAGE
You are using GD2 and as such GD2 is part of PHP when you upload a huge image and get a white page well that means the PHP process on your server has shut down as a result that means our program is not running so you refresh your page to restart PHP and your restarting the scripting so there is nothing to do there.
2. If you upload an image that is too large and your ad is processed but the image is nowhere to be found on that ad that means your image you tried to upload is over your PHP max image size allowed normally 2MB which means your server will drop it before your image even gets to us so we just normally process an ad that has no image since ads do not have to have images.
In both cases your talking about a process on the server which comes before the coding. There are threads on this support site that explain how to give more memory to PHP or alter the max upload filesize.
|
| |
February 18th, 2013, 02:59 PM
|
#3 (permalink)
| | Member Verified Customer
Join Date: May 2003 Location: Spring Branch, Texas
Posts: 391
|
Is there some routine that could determine the size of the images that are being uploaded to stop the upload process by telling the user his images are too large? Like if he left out a required piece of info in a form.
|
| |
February 18th, 2013, 03:21 PM
|
#4 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,683
|
Not if the server shuts down before our code can work which is what I was saying.
I can research GD issues but last time I checked there is not much you can do which is why i always suggest people use Imagemagick to process images.
|
| |
February 25th, 2013, 06:23 PM
|
#5 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,683
|
one thing I will do in 8.3 is if the user is using GD2 I will add an ini_set line to increase PHP memory.
|
| |
February 25th, 2013, 08:39 PM
|
#6 (permalink)
| | Member Verified Customer
Join Date: May 2003 Location: Spring Branch, Texas
Posts: 391
|
We increased ours in PHP.ini to 25megs. It was a 2megs.
|
| |
February 25th, 2013, 08:50 PM
|
#7 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,683
|
at two megs most anything would crash the default for a new php that is unaltered is 8mb most sites run at least 32mb though. I suggest minimum when using GD of 72M or 84M
|
| |
February 25th, 2013, 10:07 PM
|
#8 (permalink)
| | Member Verified Customer
Join Date: May 2003 Location: Spring Branch, Texas
Posts: 391
|
I also switched to ImageMagick at the same time I upped the max upload size.
|
| |
February 26th, 2013, 05:25 AM
|
#9 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,683
|
yes imagemagick is not prone to stealing PHP memory as it is a server level application whereas GD2 is part of PHP.
|
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -5. The time now is 04:29 PM. | |