Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Error in Navitation.php is growing system.log very fast! 
 
ElectricAvenue
Jr. Member
 
Avatar
Total Posts:  20
Joined:  2012-02-01
 

Hi

I saw constantly this error on system.log. Every week the file goes to 20 GB.

2012-09-25T21:22:31+00:00 ERR (3): Warning: Missing argument 9 for Mage_Catalog_Block_Navigation::_renderCategoryMenuItemHtml(), called in /var/www/electricavenue.net/htdocs/app/code/local/Mage/Catalog/Block/Navigation.php on line 315 and defined in /var/www/electricavenue.net/htdocs/app/code/local/Mage/Catalog/Block/Navigation.php on line 227
2012-09-25T21:22:31+00:00 ERR (3): Notice: Undefined variable: rendermode in /var/www/electricavenue.net/htdocs/app/code/local/Mage/Catalog/Block/Navigation.php on line 293
2012-09-25T21:22:31+00:00 ERR (3): Notice: Undefined variable: rendermode in /var/www/electricavenue.net/htdocs/app/code/local/Mage/Catalog/Block/Navigation.php on line 295

Any ideas?

Attached Navigation.php

File Attachments
Navigation.php  (File Size: 15KB - Downloads: 12)
 
Magento Community Magento Community
Magento Community
Magento Community
 
Kangaroo
Jr. Member
 
Total Posts:  4
Joined:  2007-12-18
 

If you get anywhere with this issue, please keep us posted.

Thanks.

Kalman

 
Magento Community Magento Community
Magento Community
Magento Community
 
chiefair
Mentor
 
Avatar
Total Posts:  1848
Joined:  2009-06-04
 

Navigation.php is used on every page, so any error being thrown by it will hit the system.log. Since the functions in this file may be called multiple times per page view it can cause an exponential number of entries to be pushed into the system.log file.

Your problem is not in this file. Your problem comes from another process calling functions within the Navigation.php block. Something’s likely messed up in a template somewhere and it’s failing to pass the $rendermode variable in the function call. As Navigation.php doesn’t have an error handler for this missing item, you will have to search for the following function calls and find where the variable is missing from the call.

Function calls that expect $rendermode to be passed to them are:

protected function _renderCategoryMenuItemHtml($category, $level = 0, $isLast = false, $isFirst = false,
$isOutermost = false, $outermostItemClass = ‘’, $childrenWrapClass = ‘’, $noEventAttributes = false, $rendermode)

public function drawItem($category, $level = 0, $last = false, $rendermode)

Find where these are being used elswhere and why they’re not passing $rendermode

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top