Results 1 to 10 of 10
-
11-20-2010, 11:20 PM #1Web Hosting Guru
- Join Date
- Aug 2007
- Posts
- 263
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 24 by
1 of my client website always got this error.
may i know how to fix it?
-
11-20-2010, 11:23 PM #2Web Hosting Master
- Join Date
- Sep 2010
- Location
- /usr/bin/fail
- Posts
- 859
increase memory_limit in your php.ini should cure it.
-
11-20-2010, 11:24 PM #3Web Hosting Industry Expert
- Join Date
- Dec 2007
- Location
- Indiana, USA
- Posts
- 19,196
█ Michael Denney - MDDHosting.com - Proudly hosting more than 37,700 websites since 2007.
█ Ultra-Fast Cloud Shared and Pay-By-Use Reseller Hosting Powered by LiteSpeed!
█ cPanel • Free SSL • 100% Uptime SLA • 24/7 Support
█ Class-leading support that responds in minutes, not days.
-
11-20-2010, 11:24 PM #4Web Hosting Guru
- Join Date
- Aug 2007
- Posts
- 263
now is as below:
memory_limit = 128M ; Maximum amount of memory a script may consume (128MB)
-
11-20-2010, 11:29 PM #5Web Hosting Master
- Join Date
- Sep 2010
- Location
- /usr/bin/fail
- Posts
- 859
you might try doubling that given that your file size is 33megs, but I assume that once its uploaded something is trying to either convert or compress the file similar to the way wordpress does when you upload a file.
128megs was enough for me on my system when uploading up to a 15 meg jpg image so you might need a little more..
-
11-20-2010, 11:48 PM #6Web Hosting Guru
- Join Date
- Aug 2007
- Posts
- 263
I have double it to 256M.
But it seen like remain same. Is it script problem?
-
11-20-2010, 11:59 PM #7Web Hosting Master
- Join Date
- May 2008
- Location
- Melbourne, Australia
- Posts
- 10,629
Sounds like poor coding to myself, a good script would not require excessive use of memory. You could try increasing it to 512MB as a test, though, not something I would highly recommend.
██ l Dedigeeks • Shared • Wordpress • Dedicated • Established 2006
██ l Leading AUSTRALIAN Hosting Provider • Sydney & Melbourne Datacentres
██ l cPanel/WHM • R1Soft Backups • 24/7/365 Support • SMS Hosting Alerts*
██ l www.dedigeeks.com • Managing Director • Service Superstars
-
11-20-2010, 11:59 PM #8Corporate Member
- Join Date
- Feb 2008
- Location
- Houston, Texas, USA
- Posts
- 3,262
The script itself could be settings the value. Search your directory for a php.ini file or ini_set('memory_limit', xxx) like this:
Code:grep memory_limit -r /home/ex_dir/public_html |grep ini_set
Code:find /home/ex_dir/public_html -type f -name 'php.ini'
Joe / UNIXYUNIXy - Fully Managed Servers and Clusters - Established in 2006
Server Management - Unlimited Servers. Unlimited Requests. One Plan!
cPanel Varnish Plugin -- Seamless SSL Caching (Let's Encrypt, AutoSSL, etc)
Slow Site or Server? Unable to handle traffic? Same day performance fix: joe@unixy
-
11-21-2010, 12:00 AM #9Web Hosting Industry Expert
- Join Date
- Dec 2007
- Location
- Indiana, USA
- Posts
- 19,196
If I'm not mistaken WordPress does actually set the memory_limit itself, I forget which file (and I don't have a console handy at the moment to check).
At any rate, you can either just comment the line out or adjust it in the file.█ Michael Denney - MDDHosting.com - Proudly hosting more than 37,700 websites since 2007.
█ Ultra-Fast Cloud Shared and Pay-By-Use Reseller Hosting Powered by LiteSpeed!
█ cPanel • Free SSL • 100% Uptime SLA • 24/7 Support
█ Class-leading support that responds in minutes, not days.
-
11-21-2010, 12:35 AM #10Web Hosting Master
- Join Date
- Sep 2010
- Location
- /usr/bin/fail
- Posts
- 859
The file that WP uses is the wp-settings.php file.
Not sure if he is using WP as his script but there might be a similar item in his script to do it as well.
Similar Threads
-
Fatal error: Allowed memory size
By sanjai1977 in forum Programming DiscussionReplies: 3Last Post: 05-08-2010, 03:34 PM -
Allowed Memory Size of ___ bytes exhausted
By Necroist in forum Hosting Security and TechnologyReplies: 3Last Post: 04-05-2006, 11:08 AM -
php - Fatal Error: Memory size exhausted
By Georgecooldude in forum Programming DiscussionReplies: 7Last Post: 08-22-2004, 10:34 AM -
Allowed memory size of 8388608 bytes exhausted.....
By Jet Blast in forum Programming DiscussionReplies: 6Last Post: 08-07-2004, 05:22 AM -
Fatal error: Allowed memory size
By Ivan23 in forum Programming DiscussionReplies: 4Last Post: 02-05-2003, 10:48 PM