Advertisement

Fatal error: Allowed memory size of 8388608 bytes exhausted?

For Joomla! 1.5 Coding related discussions, please use: http://groups.google.com/group/joomla-dev-general
j_pablo_gn
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Sat Mar 15, 2008 9:42 am

Fatal error: Allowed memory size of 8388608 bytes exhausted?

Post by j_pablo_gn » Sat Mar 15, 2008 10:10 am

Hi there!!

I am trying with differents components, but today (I don't know why) when I was going to try with a new one I couldn't start, because Joomla! shows me a "fatal error"

I just did (as administrator): Installers -> Components

An Joomla! shows me this message:
"Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 6144 bytes) in C:\AppServ\www\joomla-1.0.14\administrator\includes\menubar.html.php on line 463"

As I cannot go the component maganer, I cannot uninstall any component, so I do not know where is the problem.

¿any idea about how to solve it or where is it comming from?

Gracias.
J. Pablo.
Last edited by pe7er on Sat Mar 15, 2008 3:06 pm, edited 1 time in total.
Reason: Please use a more descriptive subject for your messages.

Advertisement
User avatar
pe7er
Joomla! Master
Joomla! Master
Posts: 25083
Joined: Thu Aug 18, 2005 8:55 pm
Location: Nijmegen, Netherlands
Contact:

Re: Joomla explosion!!

Post by pe7er » Sat Mar 15, 2008 3:06 pm

Your PHP configuration at the server has a memory limit of 8 Mb, which is rather low.
I'd recommend to set it to 32 Mb.

How to?
Search the forum for "increase memory limit",
e.g.: http://forum.joomla.org/viewtopic.php?f ... t#p1129457
Kind Regards,
Peter Martin, Global Moderator
Company website: https://db8.nl/en/ - Joomla specialist, Nijmegen, Netherlands
The best website: https://the-best-website.com

j_pablo_gn
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Sat Mar 15, 2008 9:42 am

Re: Fatal error: Allowed memory size of 8388608 bytes exhausted?

Post by j_pablo_gn » Sun Mar 16, 2008 2:32 pm

I solve it, by writing down a line in "configuration.php" and "configuration.php-dist":
ini_mem('memory_limit','12M');

Thanks a lot, anyway.
J. Pablo.

User avatar
pe7er
Joomla! Master
Joomla! Master
Posts: 25083
Joined: Thu Aug 18, 2005 8:55 pm
Location: Nijmegen, Netherlands
Contact:

Re: Fatal error: Allowed memory size of 8388608 bytes exhausted?

Post by pe7er » Sun Mar 16, 2008 2:54 pm

Great! Thanks for sharing your solution!

PS: configuration.php-dist is not used.
It's just an example file that you can use if you don't use the webinstaller,
and code all configuration settings all by yourself,
and rename it to configuration.php to get it working.
Kind Regards,
Peter Martin, Global Moderator
Company website: https://db8.nl/en/ - Joomla specialist, Nijmegen, Netherlands
The best website: https://the-best-website.com

j_pablo_gn
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Sat Mar 15, 2008 9:42 am

Re: Fatal error: Allowed memory size of 8388608 bytes exhausted?

Post by j_pablo_gn » Sun Mar 16, 2008 7:39 pm

Hi,

do you know any component to do workflows over documents?, like "oworkflow" for example.
I am trying to do something to handle automaticly acts (technical documents that must be verified, aproved, etc.), but I am not able to do it with oworkflow... and I do not find any tutorial about this component.

Many thanks.
J. Pablo.

fitnage
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Sat Apr 05, 2008 3:35 pm

Re: Fatal error: Allowed memory size of 8388608 bytes exhausted?

Post by fitnage » Sat Apr 05, 2008 3:37 pm

ini_set('memory_limit','16M');


not ini_mem

Alibaba77
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Fri Jan 25, 2008 11:44 am

Re: Fatal error: Allowed memory size of 8388608 bytes exhausted?

Post by Alibaba77 » Fri May 16, 2008 8:58 am

j_pablo_gn wrote:I solve it, by writing down a line in "configuration.php" and "configuration.php-dist":
ini_mem('memory_limit','12M');

Thanks a lot, anyway.
J. Pablo.
which syntax do you use?
in which line/place did you write this line?
Can you maybe give us an extract of your configuration.php?

Thx
Alibaba77

fitnage
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Sat Apr 05, 2008 3:35 pm

Re: Fatal error: Allowed memory size of 8388608 bytes exhausted?

Post by fitnage » Fri May 16, 2008 11:49 am

at the top of configuration.php will work

Alibaba77
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Fri Jan 25, 2008 11:44 am

Re: Fatal error: Allowed memory size of 8388608 bytes exhausted?

Post by Alibaba77 » Sat May 17, 2008 6:23 am

fitnage wrote:at the top of configuration.php will work
thx for the info. But I still get an error:

Code: Select all

ini_mem('memory_limit','64M'); 
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /var/www/users/xxx/html/cms/configuration.php:2) in /var/www/users/xxx/html/cms/libraries/joomla/session/session.php on line 407
Here is the my configuration.php

Code: Select all

ini_mem('memory_limit','64M');
<?php
class JConfig {
	var $offline = '0';
	var $editor = 'tinymce';
	var $list_limit = '50';
	var $helpurl = 'http://help.joomla.org';
	var $debug = '0';
	var $debug_lang = '0';
	var $sef = '1';
	var $sef_rewrite = '1';
	var $sef_suffix = '0';
	var $feed_limit = '20';
......
}
?>
Any suggestions?

thx
Alibaba77

fitnage
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Sat Apr 05, 2008 3:35 pm

Re: Fatal error: Allowed memory size of 8388608 bytes exhausted?

Post by fitnage » Sat May 17, 2008 12:33 pm

below the php start


<?php
ini_set

Alibaba77
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Fri Jan 25, 2008 11:44 am

Re: Fatal error: Allowed memory size of 8388608 bytes exhausted?

Post by Alibaba77 » Sat May 17, 2008 7:14 pm

fitnage wrote:below the php start


<?php
ini_set
great. thx fitnage for telling me that ini_mem ist wrong. ini_set works fine. THX!!

User avatar
ircmaxell
Joomla! Ace
Joomla! Ace
Posts: 1926
Joined: Thu Nov 10, 2005 3:10 am
Location: New Jersey, USA
Contact:

Re: Fatal error: Allowed memory size of 8388608 bytes exhausted?

Post by ircmaxell » Sun May 18, 2008 6:00 am

you may not want to put it in configuration.php... The next time you edit global configuration, it'll delete that line... I'd suggest putting it in /index.php and /administrator/index.php...
Anthony Ferrara - Core Team - Development Coordinator - Bug Squad - JSST

http://moovum.com/ - The Bird is in the air! Get Mollom Anti-Spam on your Joomla! website with Moovur...
http://www.joomlaperformance.com For All Your Joomla Performance Needs

larzette
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Fri Jun 06, 2008 8:33 am

Re: Fatal error: Allowed memory size of 8388608 bytes exhausted?

Post by larzette » Mon Jun 30, 2008 8:24 am

THE TWENTY STEPS

Regarding: Fatal error: Allowed memory size of x bytes exhausted" error message" while trying to install 3rd party JoomlaFCK editor (not unique to this plugin)

1) Non-technical "for Dummies" and "complete idiot" webmastering wife "Larzette" is creating a website using Joomla 1.5, using Macintosh, using Safari, using MAMP on local Mac. TinyMCE 2.0 not wrapping correctly in some articles, so wife searched for 3rd party editor. Wife found out about JoomlaFCK and tried to install it. It failed, got "Fatal error: Allowed memory size of x bytes exhausted" error message (but later found this first install had left pieces behind preventing re-install--see below). Wife tried to install using Firefox: same error message. Wife tried to install using Camino: same error message. :o Wife had screaming-meemies/hissy-fit/temper tantrum >:( , tore hair out, gave up. :( "Just walk slowly away from your Mac." Left room, played with cats, handed off whole mess to software engineer "wizard" husband.

2) Husband started from scratch. His words: Tried install.

3) Got error message.

4) Google search on "Fatal error: Allowed memory size of x bytes exhausted".

5) Went to page http://forum.joomlaworks.gr/index.php?t ... 5.msg12928 .

6) Followed answer, linked to http://www.tech-recipes.com/php_program ... ps777.html .

7) Used Mac's Spotlight to find php.ini file on Mac.

8) Found several, chose one located in php5 config directory.

9) Edited with BBEdit [wife uses TextEdit for these things].

10) Searched for memory_limit. Changed 8 to 12.

11) Tried again.

12) Got timeout error.

13) Looked in php.ini and changed max_execution_time from 30 to 120.

14) Received "already installed" errors (due of wife's previous-installation-where-it-left-pieces).

15) Tried removing all files with name JoomlaFCK.

16) Still received errors.

17) Tried un-install with Joomla. Received errors about manifest not found.

18) Unzipped installer file and manually placed various pieces where I removed empty folders.

19) Was finally able to un-install and then re-install.

20) Made sure JoomlaFCK was enabled, while the other three editors were disabled. JoomlaFCK not showing up. Enabled TinyMCE 2.0. Now JoomlaFCK showing up. Evidently two editors must be enabled for JoomlaFCK to show up when editing an article. Husband ended here. ;D

----------
21) Wife is back. Wife begged husband to document what he just did to accomplish JoomlaFCK install. Husband couldn't understand why wife asked him to write it down. Wife explained "for others in this fix." Husband relented and wrote down the 20 steps. Wife thanked husband. Husband left. Wife here typing this.

22) Husband said that Joomla has to get better at recognizing pieces left from previously "failed" or "aborted" installation attempts of 3rd party components. Part of problem was that husband couldn't un-install the first "failed" install because pieces were somewhere and Joomla saw that there were pieces there and said "You don't need to install JoomlaFCK because JoomlaFCK is installed already" -- which wasn't because only pieces of a previous attempt were there. Joomla didn't say "Oh, I found some pieces of a previous install -- what do you want me to do with them? un-install the pieces? Yes or No. We'd have said "Yes, un-install the pieces." Without such a feature, was stuck in limbo not being able to un-install or re-install. Fragments from previous install prevented a 2nd re-install because it thought it was already installed; the pieces prevented an un-install and couldn't re-install until all the pieces were gone. An infinite loop. What a mess. ???

23) Husband was able to figure it out. Webmaster wife is happy :D but bald. After all this, wife asked "Does JoomlaFCK have a "wrap text" button? —— the whole reason for this journey {probably not}.

24) Wife's opinion is that these two file changes should be mentioned, by Joomla.org and such, up front right after a person installs Joomla on a local host server!!!

25) How is a non-technical "Dummy" webmaster such as wife supposed to deal with all this programming stuff? This part of Joomla is N_O_T user-friendly. This sort of mumbo-jumbo could dissuade people from adopting Joomla, seriously!!!

Does anyone understand this stuff? I don't.

Gotta go do laundry.

Larzette, the :geek: Dummy

wardy83
Joomla! Intern
Joomla! Intern
Posts: 80
Joined: Tue Jul 17, 2007 8:13 am

Re: Fatal error: Allowed memory size of 8388608 bytes exhausted?

Post by wardy83 » Fri Aug 15, 2008 10:17 am

Just to confirm to anyone...

place ini_set('memory_limit','64M'); just below the <?php at top of page in /index.php and adminsitrator/index.php.

works a treat even in 1.5.6

B271
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Sun Aug 31, 2008 6:50 pm

Re: Fatal error: Allowed memory size of 8388608 bytes exhausted?

Post by B271 » Wed Sep 03, 2008 12:52 pm

Just a note - I was getting this error when I tried to add a new user to CB through the backend on the user admin page. I added ini_set('memory_limit','64M'); to the index.php and administrator/index.php files, but still got the error. When I looked at the url, I discovered it was index2.php. So I added the line of code to administrator/index2.php and that solved the problem. I noticed that there is also an administrator/index3.php. So to be on the safe side, I added it to that file too :D

Thanks for the help!

islets
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Sat Aug 30, 2008 5:04 pm

Re: Fatal error: Allowed memory size of 8388608 bytes exhausted?

Post by islets » Mon Sep 08, 2008 1:52 am

I have been developing a Joomla site locally (Mac OS X with XAMPP) and I've also been getting this error. Most recently it happened while trying to edit the Super Administrator user.

I've attempted all of the suggested solutions mentioned in this thread but the problem persists. I don't mean to hijack the topic but if anyone has another idea for solving the problem I would greatly appreciate it.

hazlcha
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Tue Sep 09, 2008 10:14 pm

Re: Fatal error: Allowed memory size of 8388608 bytes exhausted?

Post by hazlcha » Tue Sep 09, 2008 10:17 pm

Same here, absolutely nothing seems to work on this frustrating problem.

User avatar
pe7er
Joomla! Master
Joomla! Master
Posts: 25083
Joined: Thu Aug 18, 2005 8:55 pm
Location: Nijmegen, Netherlands
Contact:

Re: Fatal error: Allowed memory size of 8388608 bytes exhausted?

Post by pe7er » Tue Sep 09, 2008 11:49 pm

Could you both check the current memory_limit in your Joomla website?
(in 1.5: Help > System Info > PHP Information)

If you used some of the methods here to increase the memory limit
but PHP Information says something else,
then there might be some other place where the memory limit is specified too...
Kind Regards,
Peter Martin, Global Moderator
Company website: https://db8.nl/en/ - Joomla specialist, Nijmegen, Netherlands
The best website: https://the-best-website.com

sunnyjey
Joomla! Apprentice
Joomla! Apprentice
Posts: 18
Joined: Sun Mar 25, 2007 7:52 am

Re: Fatal error: Allowed memory size of 8388608 bytes exhausted?

Post by sunnyjey » Wed Oct 08, 2008 2:45 am

I has similar problem 2 minutes back. I was quite panic to see this error message on my site

but when i inserted this simple code in the index files, everything started working again.

Thank you.

Code: Select all

place ini_set('memory_limit','64M'); just below the <?php at top of page in /index.php and adminsitrator/index.php.

kukujang
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 156
Joined: Sun Mar 30, 2008 2:54 pm

Re: Fatal error: Allowed memory size of 8388608 bytes exhausted?

Post by kukujang » Sat Oct 11, 2008 6:54 am

Thank you for details. but i'm not clear for memory_limit . :-\

bers
Joomla! Apprentice
Joomla! Apprentice
Posts: 14
Joined: Fri Sep 12, 2008 1:29 pm

Re: Fatal error: Allowed memory size of 8388608 bytes exhausted?

Post by bers » Sat Oct 11, 2008 8:11 pm

"Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 6144 bytes) in C:\AppServ\www\joomla-1.0.14\administrator\includes\menubar.html.php on line 463"

Solution:

Added the line: “ini_set('memory_limit','40M');” (make it the second line in the file (just below “<?php”))in the following files:

index.php and the index2.php file in the main Joomla root folder, AND,
to the index.php, index2.php, and the index3.php (if you have a 2 and 3) files under the Administrator folder

Used FTP Client

the "40M" in the new added line is the memory size limit listed in my php info under Joomla backend "help". You can make it a different number
Thanks to all the post above that told me how to go this!! :D

Bers

MrSilverman
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Sun Oct 19, 2008 1:56 pm

Re: Fatal error: Allowed memory size of 8388608 bytes exhausted?

Post by MrSilverman » Sun Oct 19, 2008 2:24 pm

I increase memory limit in httpd.conf. As for me, this is the best solution.
You can find any program you want in this Software list
Need crack, keygen and serial for some soft? Try to search here

bers
Joomla! Apprentice
Joomla! Apprentice
Posts: 14
Joined: Fri Sep 12, 2008 1:29 pm

Re: Fatal error: Allowed memory size of 8388608 bytes exhausted?

Post by bers » Mon Oct 20, 2008 2:56 am

MrSilverman , can you give more detail for us newbes? Where is this httpd.conf file found?

Thanks,

Bers

User avatar
brad
Joomla! Master
Joomla! Master
Posts: 13272
Joined: Fri Aug 12, 2005 12:38 am
Location: Australia
Contact:

Re: Fatal error: Allowed memory size of 8388608 bytes exhausted?

Post by brad » Mon Oct 20, 2008 3:03 am

bers wrote:MrSilverman , can you give more detail for us newbes? Where is this httpd.conf file found?

Thanks,

Bers
Talk to your host or server admin.

MrSilverman
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Sun Oct 19, 2008 1:56 pm

Re: Fatal error: Allowed memory size of 8388608 bytes exhausted?

Post by MrSilverman » Mon Oct 20, 2008 6:09 am

bers, my httpd.conf lands at /etc/httpd/conf/httpd.conf. But if you use standart hosting (not dedicated server), this path may be different. By the way, hosting admins may disable editing httpd.conf :(
You can find any program you want in this Software list
Need crack, keygen and serial for some soft? Try to search here

bers
Joomla! Apprentice
Joomla! Apprentice
Posts: 14
Joined: Fri Sep 12, 2008 1:29 pm

Re: Fatal error: Allowed memory size of 8388608 bytes exhausted?

Post by bers » Tue Oct 21, 2008 2:21 pm

Thanks Brad and MrSilverman for your help.

Bers

Reba
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Thu Oct 02, 2008 3:34 pm

Re: Fatal error: Allowed memory size of 8388608 bytes exhausted?

Post by Reba » Wed Oct 22, 2008 3:17 pm

bers wrote: Solution:

Added the line: “ini_set('memory_limit','40M');” (make it the second line in the file (just below “<?php”))in the following files:

index.php and the index2.php file in the main Joomla root folder, AND,
to the index.php, index2.php, and the index3.php (if you have a 2 and 3) files under the Administrator folder

Used FTP Client

the "40M" in the new added line is the memory size limit listed in my php info under Joomla backend "help". You can make it a different number
Thanks to all the post above that told me how to go this!! :D

Bers
For the record, I added this line to all five (!) of my index.php files and so far it's working - thank you thank you!

Quick question: when I check my PHP Core Configuration in the backend, it now says that the Local Value is 40MB (great!) but Master Value is still 8MB. Will this pose a problem down the road? Does the master value need to be changed somehow/somewhere too? Or is that just a record of the default value, as a comparison for backend administrators?

User avatar
Gamechaser
Joomla! Apprentice
Joomla! Apprentice
Posts: 40
Joined: Tue Oct 28, 2008 1:26 pm
Location: Unknown
Contact:

Re: Fatal error: Allowed memory size of 8388608 bytes exhausted?

Post by Gamechaser » Wed Oct 29, 2008 1:28 pm

Alibaba77 wrote:
j_pablo_gn wrote:I solve it, by writing down a line in "configuration.php" and "configuration.php-dist":
ini_mem('memory_limit','12M');

Thanks a lot, anyway.
J. Pablo.
which syntax do you use?
in which line/place did you write this line?
Can you maybe give us an extract of your configuration.php?

Thx
Alibaba77
The syntax is PHP like the rest of the Joomla! core.
http://www.tutorializeme.co.cc <-- Tutorialize Me
http://www.gamechaser.net <-- Gamechaser.net

User avatar
perko
Joomla! Intern
Joomla! Intern
Posts: 64
Joined: Tue Feb 21, 2006 1:59 pm
Contact:

Re: Fatal error: Allowed memory size of 8388608 bytes exhausted?

Post by perko » Sat Jan 17, 2009 11:34 pm

thank you,

works great added: ini_set('memory_limit','40M'); to my index, index2 and index3 files in root and admin.

as for solution 2.

I have dedicated but have no folder httpd/ inside etc/ folder.
http://www.makarska-travel.info Accommodation Makarska Apartments
http://www.makarska-accommodation.com Apartments Makarska

emagin
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 136
Joined: Sun Sep 11, 2005 7:46 pm
Location: san francisco, ca usa

Re: Fatal error: Allowed memory size of 8388608 bytes exhausted?

Post by emagin » Tue Feb 10, 2009 11:59 pm

I just added this to my configuration.php file (J 1.5.9) and it removes the mem exceeded error in /administrator access.
Seems simpler than modding all your index.php files, which might get overwritten by an update.
Of course I'd test this as I only had an issue my my admin access

Advertisement

Return to “Joomla! 1.5 Coding”