Phoca Gallery Image Module - RenderAdmin

Phoca Gallery modules - modules for Phoca Gallery extension
jcoltonj32001
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 03 Apr 2013, 02:08

Phoca Gallery Image Module - RenderAdmin

Post by jcoltonj32001 »

I have installed Phoca Gallery Image Module on my Joomla 3.0.3 Installation, and i cannot access any of the settings when i create a new gallery image module.

I navigate to "Module Manager" > "Phoca Gallery Image Module" (this is a new module) and it displays some of the content but at the bottom gives the following error message:

Code: Select all

Fatal error: Call to undefined method PhocaGalleryRenderAdmin::CategoryTreeOption() in /home/content/65/7881465/html/modules/mod_phocagallery_image/models/fields/phocagallerycategory.php on line 45
here is the contents of that file (phocagallerycategory.php):

Code: Select all

<?php

/*

 * @package		Joomla.Framework

 * @copyright	Copyright (C) 2005 - 2010 Open Source Matters, Inc. All rights reserved.

 * @license		GNU General Public License version 2 or later; see LICENSE.txt

 *

 * @component Phoca Component

 * @copyright Copyright (C) Jan Pavelka www.phoca.cz

 * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License version 2 or later;

 */

defined('_JEXEC') or die();

if (! class_exists('PhocaGalleryLoader')) {

    require_once( JPATH_ADMINISTRATOR.DS.'components'.DS.'com_phocagallery'.DS.'libraries'.DS.'loader.php');

}

phocagalleryimport('phocagallery.render.renderadmin');



class JFormFieldPhocaGalleryCategory extends JFormField

{

	protected $type 		= 'PhocaGallery';



	protected function getInput() {

		

		$db = &JFactory::getDBO();



       //build the list of categories

		$query = 'SELECT a.title AS text, a.id AS value, a.parent_id as parentid'

		. ' FROM #__phocagallery_categories AS a'

		. ' WHERE a.published = 1'

		. ' ORDER BY a.ordering';

		$db->setQuery( $query );

		$phocagallerys = $db->loadObjectList();

	

		// TODO - check for other views than category edit

		$view 	= JRequest::getVar( 'view' );

		$catId	= -1;

		if ($view == 'phocagalleryc') {

			$id 	= $this->form->getValue('id'); // id of current category

			if ((int)$id > 0) {

				$catId = $id;

			}

		}

		

		$tree = array();

		$text = '';

		$tree = PhocaGalleryRenderAdmin::CategoryTreeOption($phocagallerys, $tree, 0, $text, $catId);

		array_unshift($tree, JHTML::_('select.option', '', '- '.JText::_('COM_PHOCAGALLERY_SELECT_CATEGORY').' -', 'value', 'text'));

		

		return JHTML::_('select.genericlist',  $tree,  $this->name, 'class="inputbox"', 'value', 'text', $this->value, $this->id );

	}

}

?>
Any help would be greatly appreciated!! :)
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9435
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: Phoca Gallery Image Module - RenderAdmin

Post by Benno »

Hi,
as you can see in Phoca Download Section, there is no Joomla! v3.0.3 Phoca Gallery Image Module available yet.
https://www.phoca.cz/download/category/8 ... age-module

Kind regards,
Benno
jcoltonj32001
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 03 Apr 2013, 02:08

Re: Phoca Gallery Image Module - RenderAdmin

Post by jcoltonj32001 »

Gotcha! I just figured id ask to see if there was a work around or anything! Thank you so much :)

P.S. I would like to take this opportunity to say thank you for such a great set of components, mods, and plugins! Truly spectacular!
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9435
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: Phoca Gallery Image Module - RenderAdmin

Post by Benno »

You're welcome!
....and thank Jan. He is the developer (the only developer) of all this stuff....

Kind regards,
Benno
fbl@cyberset.com
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 20 Aug 2013, 03:39

Re: Phoca Gallery Image Module - RenderAdmin

Post by fbl@cyberset.com »

We received the same error on Joomla 3.
The installed phoca version is 4.0.2 and we are using the latest phoca gallery plugin.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48386
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca Gallery Image Module - RenderAdmin

Post by Jan »

Hi, if you are using the plugin, update the plugin to 4.0.3 version:
https://www.phoca.cz/download/category/1 ... ery-plugin
Jan
If you find Phoca extensions useful, please support the project
Post Reply