Previous Thread
Next Thread
Print Thread
Hop To
Joined: Jan 2004
Posts: 193
S
sb
Offline
member
member
S Offline
Joined: Jan 2004
Posts: 193
We have a member trying to UL a photo to the gallery and they are getting this error:
Fatal error: Out of memory (allocated 35127296) (tried to allocate 10716 bytes) in /homepages/26/d222149051/htdocs/sites/christians-in-recovery.org/www/members/forums/libs/image.inc.php on line 78

What is the problem and how do we fix it?

Thank you.


Joined: Feb 2007
Posts: 1,294
Likes: 2
Veteran
Veteran
Joined: Feb 2007
Posts: 1,294
Likes: 2
What size in Bytes is the file?

Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
It's stating that it's over your 35mb filsize limit by 10k; the fix would be upgrading your php memory limit...


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Jun 2006
Posts: 693
Addict
Addict
Joined: Jun 2006
Posts: 693
I'm getting this error too -

Fatal error: Out of memory (allocated 1835008) (tried to allocate 98304 bytes) in E:\forums\libs\html.inc.php on line 1908

How do I upgrade the PHP memory limit?


Lisa Shea, owner, BellaOnline.com
BellaOnline Website
BellaOnline Forums - UBB since Apr 2002 - 58,000 members / 850,000 posts
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
That's a bit of an odd place to be getting the error if you're running a stock 7.5.3 install, since that is just where it sets up any custom bbcodes you might have for the markup panel. So that appears to be coming from the new post screen, which really shouldn't be taking that much memory.

Are you personally getting that error? If so, what were you trying to do at the time?

If you really need to up the memory, then you'll find this in your server php.ini file, and it's the: memory_limit setting you're looking for.

Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
I donno, the memory limit looks kind of low... I have mine set to 32M in my config, hers looks like it's 1.8M lol


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Jun 2006
Posts: 693
Addict
Addict
Joined: Jun 2006
Posts: 693
Yes I definitely personally getting it, and yes it was on a new post screen. I was trying to make a post.

I'll go look for that now, thanks!


Lisa Shea, owner, BellaOnline.com
BellaOnline Website
BellaOnline Forums - UBB since Apr 2002 - 58,000 members / 850,000 posts
Joined: Jun 2006
Posts: 693
Addict
Addict
Joined: Jun 2006
Posts: 693
Hmmm I went into my php.ini and it says

memory_limit = 128M ; Maximum amount of memory a script may consume (128MB)


So doesn't that mean I'm allocating 128mb? That should be high enough, yes?

this is in c:\program files\php


Lisa Shea, owner, BellaOnline.com
BellaOnline Website
BellaOnline Forums - UBB since Apr 2002 - 58,000 members / 850,000 posts
Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
That should be too high really; the error message says that it allocated 1835008 bytes which is 1.8mb; is there sufficient free resources on the machine?


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Jun 2006
Posts: 693
Addict
Addict
Joined: Jun 2006
Posts: 693
Yes the server always has free memory and lots of free processing power. I wonder if it's an incremental thing where the longer the forum is up the more confused things get. To be off like that does seem a bit confusing smile

I just upped the limit to 256M and also kicked up the processing times from 60s to 90s and am rebooting. Let's see how that helps! I probably should also reboot the server every week or so to give it a fresh start.

The machine does get slower as time goes on. The only two things running on this machine are the forums and mail, since the forums send a lot of mail out it makes sense to have them in the same place. Mail is MailEnable which I also use on a different server for my other sites, and I've never had any issue with MailEnable. So I don't think it's interfering with the memory. Both do use MySQL.


Lisa Shea, owner, BellaOnline.com
BellaOnline Website
BellaOnline Forums - UBB since Apr 2002 - 58,000 members / 850,000 posts
Joined: Dec 2003
Posts: 6,562
Likes: 78
Joined: Dec 2003
Posts: 6,562
Likes: 78
Okay waiting on your server to reboot today. I finally get
Quote
Fatal error: Out of memory (allocated 2621440) (tried to allocate 98304 bytes) in ubbthreads.inc.php on line 1305


Blue Man Group
There is no such thing as stupid questions. Just stupid answers

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
Is UBB.threads still going?
by Aaron101 - 04/01/2022 8:18 AM
Who's Online Now
2 members (2 invisible), 721 guests, and 156 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240501)