PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > PhotoPost Support > PhotoPost Classifieds Support > Classifieds Bug Reports

Classifieds Bug Reports Post any problems you may be having with Classifieds here.

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old December 19th, 2010, 06:22 PM   #1 (permalink)
Member
Verified Customer
 
Join Date: Feb 2007
Posts: 110
Ad with too large image fails without error.

I had a complaint from a member who had previously placed several ads that their most recent ad wasn't going through.

The symptom was that they would fill out the upload form completely and click submit, the browser would act like it was uploading the ad and pictures, but then "time out" and immediately redirect to the first step of the place an ad process. This required them to fill in all the information again before another attempt. No error messages at all.

I created a test ad with a large (larger than 4mb) image and saw the same behavior.

I couldn't find any problems and other ads were being placed. The member later reported they discovered that the problem was using too large an image, after they resized the image everything went well.

Shouldn't there be some message to the user about "image too large", and let them fix that problem without re-entering all ad information?

Version 4.1 with GD2 and "Maximum PHP file upload size?" was set to 4000 and I've since changed it to 6199. Max PHP upload size on server is 256.
damon18 is offline   Reply With Quote
Old December 19th, 2010, 06:32 PM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,667
The maximum allowed file upload in most any PHP install by default is 2mb. Unless you alter your PHP settings on the server you are not going to get past that.

If the image is too big the server will drop it

As far as a white page timeout that can happen too on large images using GD2 its very common. You can try this suggestion but you are still bound by my discussion about the image size and php's restriction on max filesize.

http://www.photopost.com/forum/1258964-post2.html
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old December 19th, 2010, 06:52 PM   #3 (permalink)
Member
Verified Customer
 
Join Date: Feb 2007
Posts: 110
In the first post I mention that my PHP max file upload is set to 256mb.

I'm not getting a white page when the upload fails, (unless classifieds is hiding it) the user is redirected back to the first step in the place an ad process.
damon18 is offline   Reply With Quote
Old December 19th, 2010, 07:17 PM   #4 (permalink)
Member
Verified Customer
 
Join Date: Feb 2007
Posts: 110
My original question wasn't about upload limits or settings, I wasn't having any issues uploading images inside the limits I had set.

The problem was the lack of error message to the user and the fact that all the input work was lost when the "too large" upload failed.

Some better testing of the images and better error handling was what I was hoping for.
damon18 is offline   Reply With Quote
Old December 19th, 2010, 08:29 PM   #5 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,667
As I explained if your uploading an image larger than your server's PHP settings allow then it drops the file and does not even get to the software to even process. Your error has to do with the server not software.

You can do the tweak I linked to raise your PHP memory without altering the server php settings as thats allowed through an ini_set line. I brought this up because you said something about a timeout.

You do not set PHP max file upload in the software if thats what you are getting at with the 256mb thing. This is a server setting in your php.ini file. if you view your PHPINFO under admin look down and fine the max upload filesize bet your going to see it is 2mb. The setting in admin suppose to be whatever your PHPINFO setting is. raising that is not going to override server permissions. Your server settings determine what is allowed. Therefore if it is 2mb you will not be allowed to upload any file over 2mb.

You would have to edit your servers php settings to change this.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old December 20th, 2010, 05:00 PM   #6 (permalink)
Member
Verified Customer
 
Join Date: Feb 2007
Posts: 110
Never mind. It is either that you are not reading my posts, or I am not typing in English.

You keep talking about the default 2mb server limit when I have told you twice that on the server my upload_max_filesize is set to 256M.

I've also mentioned in the first post that I don't have any trouble uploading images up to 4mb.

So why are you insisting that my server has a 2mb limit?

In fact (as I mentioned earlier) I've raised the Photopost Classifieds setting in "Upload Options" all the way to 6199 and was able to upload a 6mb image, but using a 6.5mb image wipes out the upload.

Now, very few are going to try uploading images larger than 6mb (for now), so my problems are kind of solved, but many of your users are indeed stuck with a 2mb limit. I've shown that the problem I describe is not caused by server limits but caused by the error handling in classifieds.

My suggestion, if you are interested, is to improve the user experience by finding a way to maintain the data entered in uploadproduct.tmpl in the case where the upload fails for any reason.

I'm out.
damon18 is offline   Reply With Quote
Old December 20th, 2010, 06:14 PM   #7 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,667
well the error your describing as I posted a few times seemed to suggest the file is not making it to the classifieds to process which is what I focused on.

Now if your server allows larger files and your file is over the php limit in upload options you should indeed get a message. I just tried on my site and I get a message.

This is the code in uploadproduct.php

Code:
Content visible to verified customers only.
It shows that if the filesize is smaller than the server limit so we can process it yet we stat it and it is larger than the setting you put in upload options for the max php filesize you will get a message and the upload process dies.

Code:
Content visible to verified customers only.
That is the message phrase I am referring to and that message with the image name is the message I got on my site.

we can only issue an error if the image gets to our code to process any such error. If your process is timeing out that seems to indicate some server timeout which is essentially restarting your script on the server and would explain your behavior. Now obviously I have not seen your site or been given information to look into it so I can only respond based on the information given here.

Your server error logs might give more indication of what might be an issue as well.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Image url showing + no watermark on large image dfosx Photopost Pro How Do I...? 11 November 9th, 2007 07:13 AM
Autoscaling large images fails viperok Photopost Pro Bug Reports 5 October 28th, 2007 06:02 PM
Downloading large movie files fails. Telnoi Installs and Upgrade - vBulletin 3.0.X 6 July 15th, 2005 07:50 AM
No Error on image upload - too large sbb Photopost Pro Installation & Upgrades 16 June 18th, 2005 07:37 AM
Image upload error if file too large pilot Classifieds Bug Reports 3 April 8th, 2005 04:16 PM


All times are GMT -5. The time now is 11:59 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0