[Closed] JSite Fatal Error

More
13 years 6 months ago - 13 years 6 months ago #1 by Matt
[Closed] JSite Fatal Error was created by Matt
Hi There -

I'm getting the following error message from Joomdle:

Fatal error: Class 'JSite' not found in /home/XXXX/public_html/administrator/components/com_joomdle/helpers/content.php on line 1124

I've done some digging and this seems to be related to the CBSubs user plugin created for displaying Joomdle courses and the JSite::getMenu() command in Joomdle helper. I know you can't debug CB, but I was wondering if you had any suggestions for what may be causing this conflict.

Thanks for any help you can give.

-Matt
Last edit: 13 years 6 months ago by Chris.
The topic has been locked.
More
13 years 6 months ago #2 by Matt
Replied by Matt on topic JSite Fatal Error (SOLVED)
Was able to figure it out for any one that needs it.

In Joomla 2.5+ I needed to change
Code:
$menu = &JSite::getMenu();

in com_joomdle/helpers/content.php to:
Code:
$app = JFactory::getApplication(); $menu = $app->getMenu();

This appears to have fixed my problem.
The topic has been locked.
More
13 years 6 months ago #3 by Antonio Durán
Replied by Antonio Durán on topic JSite Fatal Error (SOLVED)
Thanks for the tip, I will take a look at it for a possible inclussion i next release.
The topic has been locked.