Support Forums

Image upload problems

This is a discussion on Image upload problems within the Technical Support forums, part of the Technical Support Forums category; i am having the same problem, I am the only user right now because I'm still setting up my site. ...


Go Back   68 Classifieds Forums > Technical Support Forums > Technical Support

This topic is resolved.

If you have a similar issue that this thread does not address, open a new related support topic.

 
Thread Tools Display Modes
Old 10-29-2008, 05:26 PM   #1
Member
 
Join Date: Sep 2008
Posts: 42
Rep Power: 10
redstar is on a distinguished road
Default Image upload problems

i am having the same problem, I am the only user right now because I'm still setting up my site. When I go to upload a photo it starts transferring the file and then takes me to a blank page. I even tried skipping the image upload step and then going back and modifying the ad to insert an image, no luck
__________________
I'm learning
v4.1.5 - Designer edition - deepsea
redstar is offline  
Old 10-29-2008, 05:41 PM   #2
curmudgeon
 
Join Date: Mar 2006
Posts: 5,364
Rep Power: 135
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

Quote:
Originally Posted by redstar
i am having the same problem, I am the only user right now because I'm still setting up my site. When I go to upload a photo it starts transferring the file and then takes me to a blank page. I even tried skipping the image upload step and then going back and modifying the ad to insert an image, no luck
Your problem is different than the OP's. You problem, as I have discussed here before, is that images need to be uncompressed to be resized. It is very easy for an image to be under the pixel dimensions AND the file size dimensions set within 68C admin and yet still eat up more memory than your web host allows a PHP script to use and when this happens you get nothing but a blank white page.
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline  
Old 10-29-2008, 05:45 PM   #3
Member
 
Join Date: Sep 2008
Posts: 42
Rep Power: 10
redstar is on a distinguished road
Default photo error

this is the error i got while trying to upload a photo again,

"Error 500 - Internal server error
An internal server error has occured!
Please try again later."

there are a few people having this error right now....
__________________
I'm learning
v4.1.5 - Designer edition - deepsea
redstar is offline  
Old 10-29-2008, 05:48 PM   #4
Member
 
Join Date: Sep 2008
Posts: 42
Rep Power: 10
redstar is on a distinguished road
Default ...

Quote:
Originally Posted by Lhotch
Your problem is different than the OP's. You problem, as I have discussed here before, is that images need to be uncompressed to be resized. It is very easy for an image to be under the pixel dimensions AND the file size dimensions set within 68C admin and yet still eat up more memory than your web host allows a PHP script to use and when this happens you get nothing but a blank white page.
Ok, how do i uncompress the images?
__________________
I'm learning
v4.1.5 - Designer edition - deepsea
redstar is offline  
Old 10-29-2008, 06:08 PM   #5
curmudgeon
 
Join Date: Mar 2006
Posts: 5,364
Rep Power: 135
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

Quote:
Originally Posted by redstar
Ok, how do i uncompress the images?
You dont uncompress the images. A jpg image is a compressed image format. When an image gets uploaded, 68c needs to uncompres it, in memory, so that it can be resized and saved to disk.

Your web host has a predefined memory limit set as to how much memory your scripts can use. When a user uploads an image and 68C uncompresses it and it uses more memory than your web host allows the script stops functioning and you see a white screen.

If you get a server error like the above the image still likely consumed too much memory but there was at least enoughj left for the server to report an error.

You need to figure out the limit you host has defined and then in 68C admin enter pixel dimensions and file size limites that prevent the user from uploading files larger than your speific server config can handle.
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline  
Old 10-29-2008, 06:18 PM   #6
PHP Mechanic
 
 
Join Date: Nov 2007
Posts: 117
Rep Power: 17
cheesegrits has a spectacular aura about
Default

[edit - ooops, crossed in the post with LH]

Quote:
Originally Posted by redstar
Ok, how do i uncompress the images?
You can't. That's the problem. GIF's and JPEG's are compressed, period. What LH is telling you is tat when the server goes to resize them, it has to first convert the image to an uncompressed format in memory, resize, and convert back to the original format. This can chew up a lot of memory, and may well exceed the PHP memory limit on your server.

To find out for sure, you need to check your server error logs, which should be available to you thru ftp or your control panel. As you server is throwing a 500 'internal server error', it should also have logged a more useful error message into your error logs. If LH is right, this will probably be a warning about "failed to allocate XXXX bytes of memory" or some such.

If this is the case, the only solution is to either reduce the max upload size you allow, or have your host up your PHP memory limit (although you may be able to do this yourself, depending on your host setup, either by modifying your php.ini, or with an override in an htaccess file). If in doubt, call your host support.

Lastly ... can you avoid thread hijacking in future, unless you are 100% sure you have the same problem as the original poster? Hijacking just makes it harder for the OP and support folk to discuss the original problem the thread was created for.

-- hugh
cheesegrits is offline  
Old 10-31-2008, 07:41 AM   #7
Member
 
Join Date: Sep 2008
Posts: 42
Rep Power: 10
redstar is on a distinguished road
Thumbs down not ok

Quote:
Originally Posted by Lhotch
You need to figure out the limit your host has defined and then in 68C admin enter pixel dimensions and file size limites that prevent the user from uploading files larger than your speific server config can handle.
My hosting co is 1and1 and they are incompetent donkeys. I was on the phone with one the other day for two hours for something that should have taken five minutes. They suck so bad.

I am on the phone now with a real @#$%! and she is telling me that I have unlimited storage and memory and it's not a problem with my hosting but with this "third party software" now what?
__________________
I'm learning
v4.1.5 - Designer edition - deepsea
redstar is offline  
Old 10-31-2008, 08:07 AM   #8
Member
 
Join Date: Sep 2008
Posts: 42
Rep Power: 10
redstar is on a distinguished road
Unhappy errr

ok, i finally showed this fool my screen so she could read your post
and see what you said. she's like ohh what's the maximum memory?
Oh it's 20m, that's what i told her 3 times, but obviously she has a hearing
impairment but can halfway read.

So it's 20m for the max memory size per pic, how do i change this in admin?
Is it under image settings, the maximum kbytes an image can be?
__________________
I'm learning
v4.1.5 - Designer edition - deepsea
redstar is offline  
Old 10-31-2008, 08:46 AM   #9
curmudgeon
 
Join Date: Mar 2006
Posts: 5,364
Rep Power: 135
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

Quote:
Originally Posted by redstar
ok, i finally showed this fool my screen so she could read your post
and see what you said. she's like ohh what's the maximum memory?
Oh it's 20m, that's what i told her 3 times, but obviously she has a hearing
impairment but can halfway read.

So it's 20m for the max memory size per pic, how do i change this in admin?
Is it under image settings, the maximum kbytes an image can be?
The "memory_limit" is set in the php.ini, if your on shared hosting then you most likely cant change that value from 20meg to something larger.

All you can do is go into admin of 68C and set the max image upload file size and file dimensions so that your site will only accept images that are under 20mg when uncompressed.

Then its a good idea to add text to the checkout template for the step where images are uploaded and let customers know about the pixel dimensions you have set. You can also add the image upload size details to the package text and any FAQ you have describing your packages etc.
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline  
Old 10-31-2008, 12:29 PM   #10
PHP Mechanic
 
 
Join Date: Nov 2007
Posts: 117
Rep Power: 17
cheesegrits has a spectacular aura about
Default

Note that the PHP memory_limit is not just for the image, it's for the currently running script. Which includes 68c iself, and all it's other memory requirements.

20MB is a very low limit. The default for a PHP5 install has been 64MB for a while now. Some of the larger standard forum or CMS systems, like vBulletin or Joomla!, will barely run at all in 20MB.

If they won't up your limit, and they really have such bad support ... I'd seriously consider voting with my feet and moving to a different host.

-- hugh
cheesegrits is offline  
Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Checkout image upload problems cheesegrits Technical Support 12 10-29-2008 10:48 PM
More image upload questions 0273302733 Technical Support 10 08-11-2008 12:44 PM
What file to upload image? outlook Technical Support 4 06-25-2008 12:40 AM
Image upload problems flowerauction Technical Support 4 05-14-2008 07:38 PM


All times are GMT -4. The time now is 11:31 AM.


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