TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

April 18, 2024, 02:15:20 AM

Login with username, password and session length
Members
  • Total Members: 3,885
  • Latest: Growner
Stats
  • Total Posts: 195,164
  • Total Topics: 21,219
  • Online today: 190
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 107
  • Total: 107

Fatal error: Allowed memory size of 33554432 bytes exhausted

Started by danyaeldemonic, February 23, 2010, 09:54:37 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

danyaeldemonic

I'm getting a long error message when attempting to upload a new clip to my site. I've had no problems up until now and the file size is within limits so I'm lost. I have this site professionally hosted and have TONS of space so that shouldn't be an issue
Any suggestions?
=======
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 8294400 bytes) in /mounted-storage/home106b/sub003/sc63357-LJEZ/xxx.com/Sources/TPcommon.php on line 84

GhostRider2110

Looks like a memory error from PHP.  I would check with your hosting provider to make sure they didn't make any changes to your php.ini.  An upgrade or something which reset things to default.  Or reduced your total memory allocation for some reason.  Would not be disk space related but memory related. --Mitch
Mitchell Baker AMA 7548 GSWA WB251 10th AF USSMA 358
Webmaster Terre Haute R/C Club http://www.thrcc.org
US Scale Master Midwest Region Manager http://www.ussma-midwest.org
Proud member of the 1/8th Air Force http://www.oneeighthairforce.org
CoffeeCup Software Ambassador Get 20% Off

danyaeldemonic


Lesmond

It is also possible to increase the memory limit to avoid this problem. you can create this by placing the following line in note pad and save as php.ini then up-load to your forum root.

memory_limit=16M

You should replace the '16' with whatever value is appropriate

beware that some host do not like you doing this

.


danyaeldemonic

#4
I sent a message to my host, who told me to try to alter the .htaccess file in my server..i assumed he meant the one within tp_downloads as thats where I'm having the issue. That didn't seem to work either. This wouldn't have anything to do with the size of the Avatar/Attachment folder?

GhostRider2110

I believe you would modify the .htaccess file in the root of you site that way it should handle anything below there.  It should not have anything to do with the site of the directory unless you are running out of disk space. But that should product a different error.  This is a memory error not disk space error. What they are telling you to do is pretty much the same as what Lesmond said only the implementation of you hosting provider is a little different.  What did they say do to, put something like this

php_value memory_limit 16M

in the .htaccess file? (16 just an example)

See-ya
Mitch
Mitchell Baker AMA 7548 GSWA WB251 10th AF USSMA 358
Webmaster Terre Haute R/C Club http://www.thrcc.org
US Scale Master Midwest Region Manager http://www.ussma-midwest.org
Proud member of the 1/8th Air Force http://www.oneeighthairforce.org
CoffeeCup Software Ambassador Get 20% Off

IchBin

He is already set at 32MB. What size of file are you uploading?

Skhilled

Actually, you should put what Les told you in a text file and name it php.ini and put it in the root folder of your forum.

Quotememory_limit 16M

GhostRider2110

Quote from: Skhilled on February 25, 2010, 02:03:38 PM
Actually, you should put what Les told you in a text file and name it php.ini and put it in the root folder of your forum.

Quotememory_limit 16M

Would that not depend on host the hosting provider has things setup?  I know with one of my providers, for a while we did use a php.ini file then we had to switch to using .htaccess files... 

--Mitch
Mitchell Baker AMA 7548 GSWA WB251 10th AF USSMA 358
Webmaster Terre Haute R/C Club http://www.thrcc.org
US Scale Master Midwest Region Manager http://www.ussma-midwest.org
Proud member of the 1/8th Air Force http://www.oneeighthairforce.org
CoffeeCup Software Ambassador Get 20% Off

Skhilled

Could be, but most would use php.ini. You should also check with them to make sure it is ok to use a php.ini file as it would override their settings. Some hosting do not allow this and state so in their TOS. ;)