Joomla! Discussion Forums



It is currently Mon Nov 23, 2009 4:56 pm (All times are UTC )

 


Forum rules

Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.



Post new topic Reply to topic  [ 8 posts ] 
Author Message
Posted: Fri Apr 14, 2006 11:14 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Apr 14, 2006 7:25 am
Posts: 6
Hey there,

Joomla beginner here. It's been going really smooth barring a couple of fuckups, but I've found my way out so far.

Here's the latest -


Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 40 bytes) in /var/www/html/joomla/includes/domit/xml_domit_lite_parser.php on line 78


It happens when I click on Menu>mainmenu.

Thanks in advance.


Top
  E-mail  
 
Posted: Fri Apr 14, 2006 2:39 pm 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Fri Aug 19, 2005 2:26 am
Posts: 1791
Location: Lancaster, Lancashire, United Kingdom
Hi,

Your server has a limiit on memory usage, and your Joomla installation is exceeding the limit.
What have you installed that is particularly intensive?
Go to the /administrator/ backend and unpublish any recently added modules.
You might first try running phpMyAdmin and seeing if you can't optimise the database - this might reduce load.
On the structure tab - click the 'select all' under the list of tables, and in the drop down select box click repair.
Do the same again and this time click 'optimise'.

Dean.

_________________
Dean Marshall - Mambo and Joomla Consultant
Dean Marshall Consultancy Limited - http://www.deanmarshall.co.uk/


Top
   
 
Posted: Sat Apr 15, 2006 8:26 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Apr 14, 2006 7:25 am
Posts: 6
I suspected so to begin with. I had deleted/uninstalled many modules and components that wasn't required but this is still happening.

This is happening only I click on "mainmenu", everything else is working totally fine. "mainmenu" has entries going more than the first page of 30 items. Could there be a preset limit for that in the db?

I get a 500 internal server error if I don't get that fatal error mentioned in the first post btw.

I'm going to go to my phpmyadmin page sometime this weekend.


Top
  E-mail  
 
Posted: Sat Apr 15, 2006 5:39 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Apr 14, 2006 7:25 am
Posts: 6
DeanMarshall wrote:
Hi,

Your server has a limiit on memory usage, and your Joomla installation is exceeding the limit.
What have you installed that is particularly intensive?
Go to the /administrator/ backend and unpublish any recently added modules.
You might first try running phpMyAdmin and seeing if you can't optimise the database - this might reduce load.
On the structure tab - click the 'select all' under the list of tables, and in the drop down select box click repair.
Do the same again and this time click 'optimise'.

Dean.


Hey Dean,

I've removed a lot of modules and components like I said above. I even cleared those rows from the database.

The repair and optimise went off peacefully but I still get

"error 500" or 

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 41 bytes) in /var/www/html/joomla/includes/domit/xml_domit_lite_parser.php on line 134


when I try going to "mainmenu" from the admin backend panel.

I'm actually using the same db as the existing one thats used by phpbb, btw. In all there are 83 tables, 995901 records and 37 MB. This is one db. There's another test db worth 30 tables - unused. So 2 out of 5 allowed DBs are in use.

So what do I do here next?


Last edited by eugenicscum on Sat Apr 15, 2006 6:20 pm, edited 1 time in total.

Top
  E-mail  
 
Posted: Sat Apr 15, 2006 7:25 pm 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Fri Aug 19, 2005 2:26 am
Posts: 1791
Location: Lancaster, Lancashire, United Kingdom
The error 500 is an entirely different beast from the memory error.
The memory error is best solved by raising the memory limit in php.ini - if you have access to, and control or, this file.
You may be able to override this setting in .htaccess - I am not sure, its not really my field - although I dabble.

Did you recently enable SEF Urls - is that related in any way?
Checking server logs should prove useful, see if you can see what the 500 errors are about.
It could simply be that the memory limit is being hit early and the error output is coming before the http headers are sent, causing the server to see 'illegal' output. Then again it could be something different.

As I said, raising the memory limit is the 'easiest' option.

Dean

_________________
Dean Marshall - Mambo and Joomla Consultant
Dean Marshall Consultancy Limited - http://www.deanmarshall.co.uk/


Top
   
 
Posted: Sun Apr 16, 2006 6:27 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Apr 14, 2006 7:25 am
Posts: 6
DeanMarshall wrote:

The error 500 is an entirely different beast from the memory error.
The memory error is best solved by raising the memory limit in php.ini - if you have access to, and control or, this file.


I should mail my webspace provider about this then?

Quote:
You may be able to override this setting in .htaccess - I am not sure, its not really my field - although I dabble.


Some htaccess king please see this and help!


Quote:
Did you recently enable SEF Urls - is that related in any way?


YES! If I remember correctly I enabled SEF urls 2-3 days back and I'm pretty sure this problem started to happen during the same time. I've disabled it right now but the problem persists.

Quote:
Checking server logs should prove useful, see if you can see what the 500 errors are about.
It could simply be that the memory limit is being hit early and the error output is coming before the http headers are sent, causing the server to see 'illegal' output. Then again it could be something different.

As I said, raising the memory limit is the 'easiest' option.

Dean


Here's what I dug out yesterday

/joomla/administrator/index2.php?option=com_menumanager
[Sat Apr 15 13:23:53 2006] [error] [client 59.92.206.208] Premature end of script headers: php-script, referer:

/joomla/administrator/index2.php?option=com_menumanager
[Sat Apr 15 13:23:54 2006] [error] [client 59.92.206.208] File does not exist:

/home/virtual/site181/fst/var/www/html/favicon.ico
[Sat Apr 15 13:24:06 2006] [error] [client 59.92.206.208] Allowed memory size of 8388608 bytes exhausted (tried to allocate 10 bytes), referer:

/joomla/administrator/index2.php?option=com_menumanager
[Sat Apr 15 13:24:06 2006] [error] [client 59.92.206.208] Premature end of script headers: php-script, referer: /joomla/administrator/index2.php?option=com_menumanager
[Sat Apr 15 13:24:07 2006] [error] [client 59.92.206.208] File does not exist:


I have to get this fixed urgently. Thanks a ton for the help!


Top
  E-mail  
 
Posted: Sun Apr 16, 2006 11:16 am 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Fri Aug 19, 2005 2:26 am
Posts: 1791
Location: Lancaster, Lancashire, United Kingdom
File does not exist is fairly categoric.
It looks like you have a missing file, perhaps something went wrong during FTP upload.
Another possibility is that your .htaccess is 'redirecting' the call to the wrong location.

Adding this line to your .htaccess file  should increase memory limits
php_value memory_limit 16M

Dean

_________________
Dean Marshall - Mambo and Joomla Consultant
Dean Marshall Consultancy Limited - http://www.deanmarshall.co.uk/


Top
   
 
Posted: Wed Jun 21, 2006 8:32 pm 
User avatar
Joomla! Intern
Joomla! Intern
Offline

Joined: Tue Nov 29, 2005 5:55 am
Posts: 72
Location: New York
This topic may have been posted over 45 days ago, but DeanMarshall's answer was still helpful to me.

I couldn't get in Main Menu, on the admin back end. Probably due to a recent VirtueMart install.

I simplified my config as much as possible, then DeanMarshall wrote an easy fix is going to .htaccess (see above) and adding the line below.

php_value memory_limit 16M

I just added it to the very last line of .htaccess, clicked save and got in main menu.

_________________
Two hydrogen atoms meet. One says "I've lost my electron." The other says "Are you sure?" The first replies "Yes, I'm positive."


Top
  E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

Quick reply

 



Who is online

Users browsing this forum: bardius, davisjm29 and 14 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group