JSite error and fix for Phoca Gallery Plugin
Posted: 28 Mar 2012, 04:17
First of all, thank you Phoca for a wonderful photo gallery extension!
Version Numbers
Joomla: 2.5.3
Phoca Gallery: 3.1.5
Phoca Gallery Plugin: 3.1.2
Issue: I received a fatal error while trying to save a k2 item in the administrative part of the Joomla site.
Fatal error: Class 'JSite' not found in /home/content/47/2869047/html/plugins/content/phocagalleryslideshow/phocagalleryslideshow.php on line 41
Lines 41-44 looked like this:
I have changed it and got it working. Lines 41-44 now look like this:
I hope this helps!
Version Numbers
Joomla: 2.5.3
Phoca Gallery: 3.1.5
Phoca Gallery Plugin: 3.1.2
Issue: I received a fatal error while trying to save a k2 item in the administrative part of the Joomla site.
Fatal error: Class 'JSite' not found in /home/content/47/2869047/html/plugins/content/phocagalleryslideshow/phocagalleryslideshow.php on line 41
Lines 41-44 looked like this:
Code: Select all
$menu = &JSite::getMenu();
$app = JFactory::getApplication('site');
$view = JRequest::getCmd('view');
Code: Select all
$app = JFactory::getApplication('site');
$menu = $app->getMenu();
$view = JRequest::getCmd('view');