 | |  | | | Classifieds How do I...? Wondering how to do something in Classifieds? |
August 21st, 2006, 02:32 AM
|
#21 (permalink)
| | Member Verified Customer
Join Date: Jul 2006
Posts: 100
|
Thats nice to hear, I just got the impression that you saw no need for this.
|
| |
September 3rd, 2006, 03:36 PM
|
#22 (permalink)
| | Member Verified Customer
Join Date: Jul 2006
Posts: 100
|
I got a report from a user that he got this error while uploading an image: Fatal error: Allowed memory size of 15728640 bytes exhausted (tried to
allocate 7936 bytes) in /kunder/baatplassen.no/www/p/image-inc.php on line
106
The image was only 124kb, but 1984x1488px.
I did som testing and apparently this is a generic problem. After reducing it to 1000px width it uploaded without any problems, even if filesize was increased.
After my testing all images that failed are stored at the server....
|
| |
September 3rd, 2006, 03:43 PM
|
#23 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,685
|
They will always be in your uploads directory if your PHP upload fails
|
| |
September 3rd, 2006, 04:18 PM
|
#24 (permalink)
| | Member Verified Customer
Join Date: Jul 2006
Posts: 100
|
No comment to the problem I describe??
|
| |
September 4th, 2006, 05:18 AM
|
#26 (permalink)
| | Member Verified Customer
Join Date: Jul 2006
Posts: 100
|
Thanks, that seems to have solved the problem.
Strange as the file was only 124kb. If the image width was 1000px I could upload a 1MB image without getting this problem.
Is it possible to say how big the image can be (in pixels) with the 32MB setting you refered to?
|
| |
September 4th, 2006, 10:29 AM
|
#27 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,685
|
No your using GD2 and GD2 uses PHP memory so there is no rhyme or reason to the error as it all depends on the memory needed to upload. If there is not enough GD2 crashes PHP
|
| |
September 4th, 2006, 03:39 PM
|
#28 (permalink)
| | Member Verified Customer
Join Date: Jul 2006
Posts: 100
|
Ok. But how do I set up PPC and server to be sure to avoid getting PHP crashes during upload?
|
| |
September 4th, 2006, 05:01 PM
|
#29 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,685
|
Edit your PHP settings and give it more memory and no timeout or use Imagemagick as your processor.
This is a universal issue with any upload process with you try uploading larger files with GD2
|
| |
November 2nd, 2006, 02:56 PM
|
#30 (permalink)
| | Member Verified Customer
Join Date: Nov 2004
Posts: 62
|
I'm upgrading some sites today and never knew about this nasty little glitch that left files behind. We have over 2gbs of lost and disconnected images and it's going to take ages to sort through all these folders, one by one and delete them from the mix.
Sure would be a good feature to have,  or even a way to know that the file needed to be fixed, without bumping into it via a thread like this.
Other than that, it was the smoothest upgrade I've done yet.
|
| |
November 15th, 2006, 04:17 PM
|
#31 (permalink)
| | Member Verified Customer
Join Date: Nov 2005
Posts: 116
| Quote:
Originally Posted by daxter We have a number of images from deleted ads stored in our data folders.
Did a test and images files are not deleted when deleting an image from an ad, or when the ad itself is deleted.
As far as I can tell there are no tools to delete these orphaned image files? | This is scary. Has this ever been resolved? Do the images just pile up on the server?
|
| |
November 24th, 2006, 09:16 PM
|
#32 (permalink)
| | Member Verified Customer
Join Date: Nov 2005
Posts: 116
|
Anybody?
|
| |
November 25th, 2006, 03:11 PM
|
#33 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,685
|
The massive overload it would require to write a recursive script like this as Michael has posted since people have asked about this in Photopost for quite a while and the sheer number of queries makes it something your not going to see offered by our company anytime soon.
|
| |
November 25th, 2006, 09:07 PM
|
#34 (permalink)
| | Member Verified Customer
Join Date: Nov 2005
Posts: 116
| Quote:
Originally Posted by Chuck S The massive overload it would require to write a recursive script like this as Michael has posted since people have asked about this in Photopost for quite a while and the sheer number of queries makes it something your not going to see offered by our company anytime soon. | What do you recommend as a method to keep one's server from filling up with images? How would you go about deleting unwanted and outdated files?
|
| |
November 26th, 2006, 02:22 PM
|
#35 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,685
|
well if permissions are correct on the server there should be no unwanted files thats the immediate answer. I would begin to wonder if you persistently suffer from files not being deleted when we issue an unlink command in the script why this happens that is going to help you more than anything understanding why the server is not allowing it.
As far as cleaning up not much you can do except manually but classifieds is not hard unless your site is real busy. You can close your site for a few days or a week make sure your using your expire cron and then delete all ads till you get down to a point where you know only these are left and clean out files from the data directories except the few ads.
|
| | |
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 11:32 AM. | |