Menu Error

12 years 8 months ago #168318 by kidshopefoundation
Menu Error was created by kidshopefoundation
I am new to Joomla CB and I get the following error with the Funlite template whenever I click the Register or Forgot Login links.

******
Notice: Trying to get property of non-object in C:\wamp\www\community\templates\funlite\index.php on line 46
Call Stack
# Time Memory Function Location
1 0.0011 694248 {main}( ) ..\index.php:0
2 0.2441 22528272 JSite->render( ) ..\index.php:49
3 0.2443 22529048 JDocumentHTML->parse( ) ..\application.php:250
4 0.2443 22529048 JDocumentHTML->_fetchTemplate( ) ..\html.php:306
5 0.2445 22529536 JDocumentHTML->_loadTemplate( ) ..\html.php:460
6 0.2455 22768296 require( 'C:\wamp\www\community\templates\funlite\index.php' ) ..\html.php:405
***

This is the line of code --
-- >> $currentMenuID = JSite::getMenu()->getActive()->id;

When I comment out this line of code everything works fine.

Wondering why and how to proceed.

Sandy

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.236 seconds

Facebook Twitter LinkedIn