The Joomla! Forum ™





Post new topic Reply to topic  [ 8 posts ] 
Author Message
PostPosted: Sun Aug 06, 2006 8:02 am 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Wed Jun 07, 2006 3:04 pm
Posts: 210
Location: Ireland
After adding a new component [J! 1.0.10] in backend, I get:

Code:
Fatal error: Allowed memory size of 10485760 bytes exhausted (tried to allocate 42 bytes) in /srv1/www/my_site.org/subdomains/www/administrator/modules/mod_fullmenu.php on line 176


when running com_installer (Menu: Installers->Components). It happened after I added a new component. I found similar threads, where users experienced that after adding i.e. new menu. In my case all other admin functions works well and the new component works as well perfectly.

It's obvious what is happenning - some script failure or leak causes to recursively read smth. and floods memory, but I have no idea how to analyze it and fix it.
I belive there should be some way to consolidate database, which might/should help, but I didn't find such a function...

--------------------------------------
UPDATE: I've just found, that on the row 176 in mod_fullmenu.php is a start of loop:
Code:
foreach ($comps as $row) {

and the $comps is defined on line 173:
Code:
$comps = $database->loadObjectList();   // component list

--------------------------------------

Any suggestions?

_________________
Oak


Last edited by Robin on Wed Nov 15, 2006 6:32 am, edited 1 time in total.

Top
 Profile  
 
PostPosted: Tue Aug 08, 2006 3:12 pm 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Wed Jun 07, 2006 3:04 pm
Posts: 210
Location: Ireland
I found a little cheaty way around:

instead of calling:
http://www.my_great_website.org/administrator/index2.php?option=com_installer&element=component

which is what menu item "Installerd -> Components" do, I manually call:
http://www.my_great_website.org/administrator/index3.php?option=com_installer&element=component

The index3.php omitts menu, which is causing flooded memory. So I didn't solved the problem, just got around... I tried to add anti-flood code into /administrator/modules/mod_fullmenu.php (using counter and if>200 condition), but it didn't help, as it is caused some error in LoadModuleList() function even before it gets into the mentioned file...

Still looking for a wise advice...

Oak

_________________
Oak


Top
 Profile  
 
PostPosted: Mon Aug 14, 2006 2:10 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Mon Aug 14, 2006 2:00 pm
Posts: 7
I received a similar error - when trying to modify the main menu. 

"Fatal error:  Allowed memory size of 83888608 bytes exhausted (tried to allocate 51200 bytes) in /usr/home//htdocs/joomola/administrator/includes/admin.php on line 305"


I am also having problems with MySQL and seeing the Joomla tables.  When trying to access the database called "website" (the one that holds the Joomla infomation), I receive an error - and none of the tables are listed.  The error is:

SQL query: 
SELECT COUNT(*) AS num
FROM 'website'. 'jos_banner'
MySQL said:
#1017 - Can't find file: 'jos_banner.MYI' (errno:2)

I am not a PHP expert, so am not sure where to begin.  Any help is greatly appreciated!

Karen S.


Top
 Profile  
 
PostPosted: Mon Aug 14, 2006 2:21 pm 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Wed Jun 07, 2006 3:04 pm
Posts: 210
Location: Ireland
Karen S wrote:
"Fatal error:  Allowed memory size of 83888608 bytes exhausted (tried to allocate 51200 bytes) in /usr/home//htdocs/joomola/administrator/includes/admin.php on line 305"


Yes, main menu [modification] is another place where this happens (could see it in this forum in different threads). How does your page look like? Do you have messed admin menu items all over screen?
If you do, I bet it will work when you use http://www.xxxxx.com/index3.php?option= ... ponentName instead of index2.php which is used when you click on menu item (index3.php ommitts menu). It worked for me couple of times, than it stopped working as well...

I think it might be a fault in DOMIT XML parser, possibly related to menu items (in backend).

Karen S wrote:
#1017 - Can't find file: 'jos_banner.MYI' (errno:2)


Ithink this is serious, as the jos_banner.MYI is MySQL file where the table is stored. I'd conact your provider's tech. support and report this, requiring explanation.

Regards,

_________________
Oak


Top
 Profile  
 
PostPosted: Mon Aug 14, 2006 4:26 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Mon Aug 14, 2006 2:00 pm
Posts: 7
Thanks for the quick reply.

My menu looks ok - no items all over the screen.  I called my web service provider and they told me that the # of bytes we were allocated is their max on shared hosting plans.  He said it appears to be something in the php for the menu file that isn't clearing out, as I can access other items with no error.  Will need to continue to dig for answers.


As for the jos_banner.myi file - they said I need to reload this table to my site.  However, I'm not sure how to obtain it.  Is this something my template provider will need to send me?

Thanks for your assistance.
Karen


Top
 Profile  
 
PostPosted: Mon Aug 14, 2006 5:57 pm 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Wed Jun 07, 2006 3:04 pm
Posts: 210
Location: Ireland
As for the memory - it's a "leak" - loop has wrongly set conditions so it want's to continue forever, however stops when available memory is flooded. In my case, I was even able to identify where it happened, but now why due to "logical syntax" they use...

with jos_*.MYI file - what they told you doesn't sound properly. If you had the table before, the file should be existing. Anyway, if you want to fix it, you can create an empty table (if it's acceptable in your case) using i.e. phpmyadmin, a tool which is available on almost all hostservers.
Nobody distributes any MYI files, they are useless to most of the people anyway, because you wouldn't have access rights to /var/mysql/... where they are stored...

Rergards,

_________________
Oak


Top
 Profile  
 
PostPosted: Tue Nov 14, 2006 1:42 pm 
User avatar
Joomla! Master
Joomla! Master
Offline

Joined: Thu Aug 18, 2005 10:41 am
Posts: 15729
Q&T Note; Status > Under Review, Impact > Medium

Sending note to Dev/Q&T list to ask for a check.

_________________
Regards Robin

http://www.linkedin.com/in/robinmuilwijk - http://twitter.com/i_robin


Top
 Profile  
 
PostPosted: Wed Nov 15, 2006 6:31 am 
User avatar
Joomla! Master
Joomla! Master
Offline

Joined: Thu Aug 18, 2005 10:41 am
Posts: 15729
I have had some feedacak from several developers; they aware of the issue and it seems DOMIT is the culprit in this story. Unfortunately we can not fix this, in Joomla! 1.5 this has already been replaced by a new class (JSimpleXML).

In the mean time you can use the workaround to add available memory for php so it can handle the xml parsing.

Closing this report as known issue. 

_________________
Regards Robin

http://www.linkedin.com/in/robinmuilwijk - http://twitter.com/i_robin


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



Who is online

Users browsing this forum: No registered users and 0 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® Forum Software © phpBB Group