JSite error and fix for Phoca Gallery Plugin

Phoca Gallery plugins - plugins for Phoca Gallery extension
eglescout
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 28 Mar 2012, 04:04

JSite error and fix for Phoca Gallery Plugin

Post 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!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48676
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: JSite error and fix for Phoca Gallery Plugin

Post by Jan »

Hi, thank you for this guide, I will fix it for next version.

Jan
If you find Phoca extensions useful, please support the project
Post Reply