BUG when accesing from Phoca Galery Tree

Phoca Gallery - image gallery extension
mnejko
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 17 Jul 2008, 19:26

BUG when accesing from Phoca Galery Tree

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

Re: BUG when accesing from Phoca Galery Tree

Post 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
If you find Phoca extensions useful, please support the project
Post Reply