PHP Notice when displaying article

Phoca Documentation - creating documentation in Joomla! CMS
deepmill
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 24 Feb 2011, 11:33

PHP Notice when displaying article

Post by deepmill »

I've install the latest, I've running J1.6
when I click on an article it display but also the following message:

Notice: Trying to get property of non-object in E:\domains\h\hs2actionalliance.org\user\htdocs\joomla\components\com_content\router.php on line 4

is it a setting somewhere?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48041
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: PHP Notice when displaying article

Post by Jan »

Hi, set itemid in parameters of the phoca documentation. If you are using SEF maybe there can be problem with the url, settings menu link (it can be in hidden menu group, so the menu link will be not displayed) and copying the Itemid (id of menu link) should solve this.

See:
https://www.phoca.cz/documents/16-joomla ... -in-joomla

there is info how to hide menu link in hidden menu group.

Jan
If you find Phoca extensions useful, please support the project
deepmill
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 24 Feb 2011, 11:33

Re: PHP Notice when displaying article

Post by deepmill »

thanks for the reply - but I've upgraded to your latest release RC2 ? its different as it dispalys files instead of articles - but that's what I wanted.
deepmill
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 24 Feb 2011, 11:33

Re: PHP Notice when displaying article

Post by deepmill »

duhh. stupid me - I downloaded the file compnent (which is brill)
but I do need the document one - I'll check what you're said and update (if I can follow the instructions ;-) - its all good
can the buttons be customised? (my site uses marron and dark blue for buttons)
deepmill
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 24 Feb 2011, 11:33

Re: PHP Notice when displaying article

Post by deepmill »

Hi JAn,
I'm sorry but I can't follow your instructions for correcting this.
I created a menu and in that menu created a link to the phoca documention (cat view) but there is no entry in the module
so I create a menu module and pointed it to the hidden menu etc...
but I still get the Notice.

see link
http://www.hs2aa.com/joomla/index.php/n ... s-articles

and click on ay of the entries...

thanks for the hlep so far...
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48041
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: PHP Notice when displaying article

Post by Jan »

Hi, really no idea what can be wrong. I cannot explain it better as I have explained it in the articles about SEF in Joomla! so maybe try to check all three articles if everything is set like described there :idea:

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