Page 1 of 1

Phoca Gallery Image Module - RenderAdmin

Posted: 03 Apr 2013, 02:21
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!! :)

Re: Phoca Gallery Image Module - RenderAdmin

Posted: 04 Apr 2013, 15:43
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

Re: Phoca Gallery Image Module - RenderAdmin

Posted: 04 Apr 2013, 21:27
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!

Re: Phoca Gallery Image Module - RenderAdmin

Posted: 04 Apr 2013, 22:48
by Benno
You're welcome!
....and thank Jan. He is the developer (the only developer) of all this stuff....

Kind regards,
Benno

Re: Phoca Gallery Image Module - RenderAdmin

Posted: 20 Aug 2013, 03:43
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.

Re: Phoca Gallery Image Module - RenderAdmin

Posted: 21 Aug 2013, 18:27
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