View Full Version : Upload problems - again.....
March 18th, 2006, 11:56 AM
When I or any other users try to upload any pictures an error message showing:
Fatal error: Allowed memory size of 50331648 bytes exhausted (tried to allocate 10000 bytes) in /var/www/html/PhotoPost/image-inc.php on line 115
- is displayed. Now I've been here before and have inserted:
error_reporting (E_ALL ^ E_NOTICE);
In fact the first time it happened I set 32M, and it worked. this time I increased it, but it still won't work.
The file I'm trying to upload is about 330Kb, there have been sucessful uploads of over 1Mb on the same installation recently without problem.
What do I do? This is just the latest in a long string of Photopost problems, I use it as an addon to VBulletin which has always run fine.
March 18th, 2006, 03:04 PM
Try clearing out your uploads directory of all directories and files and try again.
If you want to not have any memory errors my suggestion would be to use ImageMagick as the memory issues come from the use of GD which is part of PHP.
March 19th, 2006, 09:43 AM
I am having a similar issue when I go to upload a photo:
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 2400 bytes) in /SERVERPATH/gallery/image-inc.php on line 115
Chuck, when you say, try clearing out the uploads directory, you saying to delete all the photo's which have been uploaded. I can't afford to do that.
March 19th, 2006, 10:19 AM
I cleared out the uploads directory which had 3 stalled images in it, but it made no difference.
TunerNetwork - the uploads is an inbetween stage where images are stored before you decide where it's going to go and click on "process". In my case it contained images that were uploaded but not displayed due to the php memory error. You can see them if you FTP into the file and then download any onto your desktop for viewing.
I contacted my host and it turns out I have Image Magick installed there anyhow. So I made the changes and things are working fine now. Thanks for the pointer Chuck.
March 19th, 2006, 11:41 AM
Yes clearing the uploads directory does not delete photos that have been uploaded. That would be the data directory. ;) You can clear the uploads directory should you have uploads that have failed and are clogging the process up.
March 19th, 2006, 01:38 PM
ok, i will delete the folders in the "uploads" directory. I will also check with my host and see if Image magik is installed. i will let you know, thanks for the help guys
March 19th, 2006, 02:05 PM
i deleted the folders in the uploads directory, still no dice. I either get that previously mentioned error, or just a white screen and it stops loading when I attempt to upload a photo. I am running gd2 but...
Do i have to change something in that image-inc.pho file?
March 19th, 2006, 02:08 PM
Well this is posted in many many threads here if using GD2 you can do the edit meantioned here to give more memory to PHP
March 19th, 2006, 03:04 PM
define( 'THIS_SCRIPT', "uploadphoto" );
Ok this worked. Is this a Temporary Fix, or do I have to have the server host correct something on the backend so it doesnt happen again. Again, I appreciate your support in this, just a pain when everything is running fine and an error pops up. Cheers!
March 19th, 2006, 03:36 PM
Well GD is part of your PHP and as such uses up PHP's memory. What happens if on larger files GD uses the PHP memory up and as such PHP on your server shuts down. The edit I provided increases the memory some. Imagemagick does not use PHP memory so if your server has it it is always best to use it.
March 19th, 2006, 09:54 PM
thanks chuck, ill ask my server host about this!
March 23rd, 2006, 07:11 PM
Ok Chuck, riddle me this,lol. server host says Imagemagik is installed, so in the admin portion of the photopost, I turn imagemagik on.
I test upload a photo, and get the following:
Error creating thumbnail! Error code: 127
"/usr/bin/X11/mogrify" +profile "*" -size 100x75 -quality 100 -geometry 100x75 -unsharp 10 '/SERVERPATH/forum/gallery/data/500/thumbs/JDMSteve038.jpg'
March 23rd, 2006, 07:34 PM
The path your telling Photopost mogrify is located is incorrect. Ask your host the exact location of mogrify
March 24th, 2006, 08:39 PM
Fixed! Thanks again Master! lol
vBulletin® v3.8.1, Copyright ©2000-2014, Jelsoft Enterprises Ltd.