Page 1 of 1

BUG when accesing from Phoca Galery Tree

Posted: 17 Jul 2008, 19:40
by mnejko
Hello,

I've install Phoca Galery, add Category, insert images in Category. Also I have Phoca Galery Tree module.
When I click on Category in Galery tree I get this notice :
_________
Notice: Trying to get property of non-object in xxxxx\components\com_phocagallery\views\category\view.html.php on line 214
_________

After looking at line 214, the code is :

$this->_addBreadCrumbs($category, isset($menu->query['id']) ? $menu->query['id'] : 0, $display_cat_name_breadcrumbs);

and $menu is deffined as :
$menus = &JSite::getMenu();
$menu = $menus->getActive();


I think that problemm is that there is NO ACTIVE menu when I'm accessing from Galery tree.

Good work Phoca team.
Regards,
M.

Re: BUG when accesing from Phoca Galery Tree

Posted: 18 Jul 2008, 21:27
by Jan
Phoca Gallery tree menu doesn't have own Itemid (because it is a module) so it tries to find some in menu. Add some menu link to Phoca Gallery component (categories view), so Phoca Gallery Tree module can find the Itemid...

Jan