Page 1 of 1

JSite error and fix for Phoca Gallery Plugin

Posted: 28 Mar 2012, 04:17
by eglescout
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:

Code: Select all

$menu = &JSite::getMenu();
$app = JFactory::getApplication('site');
$view = JRequest::getCmd('view');
I have changed it and got it working. Lines 41-44 now look like this:

Code: Select all

$app = JFactory::getApplication('site');
$menu  = $app->getMenu();
$view = JRequest::getCmd('view');
I hope this helps!

Re: JSite error and fix for Phoca Gallery Plugin

Posted: 02 Apr 2012, 21:34
by Jan
Hi, thank you for this guide, I will fix it for next version.

Jan