Menu Error

8 years 1 month ago #168318 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
Moderators: beatnantkrileon
Time to create page: 0.353 seconds
Facebook Twitter Google LinkedIn