View Full Version : No Longer able to upload pictures
April 22nd, 2005, 09:27 PM
I am using
vbulletin version 3.0.7 with
on a Yahoo server
PHP Version 4.3.6
and had my site up, and was able to upload pictures, as were other members, I was able to upload as a regestered user etc, I had an email from one of our users stating unable to upload, and indeed this is true.. Now I'm not able to upload pictures either...the page is http://www.cropperscorral.com/photopost/index.php
and the initial upload screen appears, can select photos, message that images are being processed, then ... I lose the photopost menu and I'm left with the vbulletin menu.
Your help is appreciated
April 23rd, 2005, 07:27 AM
Well looks to me like php memory is running out and stopping the script
Try this in bulkupload.php find this
underneath add this
April 23rd, 2005, 10:27 AM
This appears to have fixed the problem of letting the administrator upload, but I'm still having difficulties with the registered users. Sign in ok, get to my photo gallery image upload, and the Preparing to process image list appears, and then.. photopost disappears from the screen, and I'm left with the vbulletin menu bar.. It appears to be intermittent, in that I was able to upload an image once as registered user, but have difficulty consistently doing, and have not been ever able to do it with one user. I've uploaded her pictures for her, but have not been able to get her account to work.
April 23rd, 2005, 01:05 PM
Clear their uploads directories
April 23rd, 2005, 10:19 PM
This seemed to help (clearing the upload directory, which is /tmp/"usernumber",
when using Yahoo
but I continue to have the problem of intermittent loading, some of the users are placing - in their file names, and I fixed this, and some were trying to upload files greater than 2500x2500 size, so I increased the pixel number to 6000x6000, and also turned off the resizing feature, still having problems. I'm presently autorepairing the database..
Any thoughts as to other parameters that need to be changed?
April 23rd, 2005, 10:51 PM
I changed the max image pixel size down to 1500X1500 without change in apparent function and changed the autoresize back to yes.. Repaired database (did not appear to have problem).. Still having problems..
My scripts log has alot of the following,
PHP Fatal error: Allowed memory size of 25165824 bytes exhausted (tried to allocate 10056 bytes) in /photopost/image-inc.php on line 84
[24-Apr-2005 02:55:20] PHP Fatal error: Allowed memory size of 25165824 bytes exhausted (tried to allocate 2514 bytes) in /photopost/image-inc.php on line 84
The biggest file that I see that the user tried to upload was 2530X3384 with a jpg size of 661 KB...
It appears that the autoresize is not working?, or do I need to increase the
(presently at 24M)..is that possible?
Smaller files do appear to load
Your help appreciated
April 24th, 2005, 07:49 AM
You can try that. I would set your max filesize in usergroup permissions down some also
April 24th, 2005, 09:04 AM
Where is that? I thought that was what the max width/height was in photopost. (no control over depth of palette etc, just pixels).
In vbulletin under usergroup manager, attachment permissions,
I see a
Space (in bytes) that a user's total attachment usage may consume (Set to 0 to not have a limit)
(which I thought would represent the total amount of space used by all attachment uploads am I mistaken?)
The vbulletin help states:
Space (in bytes) that a user's total attachment usage may consume
Members of this group cannot exceed this amount of space for all of the attachments they post. Enter a byte amount.
1048576 bytes = 1 megabyte
April 24th, 2005, 09:35 AM
In our product admin usergroup permissions editor is the max filesize and diskspace options
April 24th, 2005, 10:23 AM
Changed, saved, but when updated, the upload file size limit then becomes the disk space limit.. I changed again and refreshed, did it again, then changed and just saved, do you need to refresh?
April 24th, 2005, 11:53 AM
What version of Photopost are you using? I would upgrade to 5.03
April 24th, 2005, 01:24 PM
I believe that I did upgrade to 5.03 (from 5.02).. Was there a particular module this was in to check on?
April 24th, 2005, 01:28 PM
I would redownload and make sure you have the current vb3.php file from 503
April 24th, 2005, 06:28 PM
Redownloaded, and replaced existing vb3.php file in forums subdirectory, no apparent change, except for now changing allowed files to upload from 0 (unlimited) to 1
April 24th, 2005, 07:01 PM
Now reset permissions and save
April 24th, 2005, 08:45 PM
When I refresh, it moves the max file size to the disk space limit, I've changed the settings back, is this anything to be concerned about?
August 5th, 2006, 09:26 PM
I am getting the same error Rhonda was:
Fatal error: Allowed memory size of 25165824 bytes exhausted (tried to allocate 10056 bytes) in /var/www/html/photopost/image-inc.php on line 84
I have not touched Photopost since the install back in December of last year, no mods or anything. It has been doing fine up until just the last week or so.
PHP Memory limit is set to 24M
Running version 5.30
A user is trying to upload seven images of about 100Kb each, which is well within the allowed filesize. There is no limit on diskspace for him. I have used a non-admin account of mine to upload and am getting the same problem. However, as the admin, I am able to upload with no problems.
August 6th, 2006, 10:35 AM
Only thing you can do is whats outlined in this thread. Raise the memory limit if your using gd2 or you can switch to imagemagick if you have it on the server.
August 10th, 2006, 12:30 AM
I had been running gd2 and had the memory limit set to 24M and this worked fine for the last eight months.
Per your comment above, I just switched to the imagemagick and this was the result:
Error creating thumbnail! Error code: 127
"/usr/bin/X11/mogrify" +profile "*" -size 150x112 -quality 70 -geometry 150x112 -unsharp 10 '/var/www/html/photopost/data/500/thumbs/HPIM1122.JPG'
I guess what I don't understand is what might have caused this to start happening just recently? There have been no changes to the underliying forum softare or new mods. Actually, Photopost was the last mod I made and up until now has been working quite nicely. I will double check with my host provider to be sure he has changed nothing recently.
Any idea why I can upload as the Admin but no one else can upload? I would have thought the memory issues in PHP would affect everyone including the admin?
August 10th, 2006, 07:44 AM
Raise the PHP memory limit and try clearing the uploads directory.
August 10th, 2006, 10:09 PM
I left the memory as is but deleted all the subdirectories in the /uploads directory except for the /uploads/1 subdirectory. That seems to have fixed it. Thanks.
Can you briefly explain why those directories are created and if there is a way to have them removed automatically? Or, is this something I will just need to do every now and then?
August 11th, 2006, 07:54 AM
If your using GD2 and the upload stops from memory being exhausted the file is left in the uploads directory and then a user tries to upload again and makes the proper bigger cause there is now two files.
You either need to periotically clean out uploads directory but the raising of PHP memory is the correct course of action so that uploads can process or try installing and using Imagemagick which is not dependent on PHP memory.
vBulletin® v3.8.1, Copyright ©2000-2014, Jelsoft Enterprises Ltd.