Page 1 of 1

[solved] Undefined index: catid in... router.php on line 177

Posted: 29 Jul 2011, 09:34
by vhellers
Hye,

I have an error on my home page :

Code: Select all

Notice: Undefined index: catid in [...]/components/com_phocagallery/router.php on line 177
I don't understand because I have this error only on my home page where I don't have album, only menu to the album. And I have this menu on all the pages of my website, but on other page, I don't have this error.

I have tried all I can on phocagallery admin without success.

When I look in router.php on ligne 177, I see only comments.

I was in v3, and the update to 3.01 don't resolve the probleme.

Thank you for your help and sorry for my english.

Re: Notice: Undefined index: catid in ... router.php on line

Posted: 30 Jul 2011, 15:40
by Jan
Hi, can I see the live site?

Re: Notice: Undefined index: catid in ... router.php on line

Posted: 30 Jul 2011, 17:05
by vhellers
Hye,

The problem come from the line :

Code: Select all

if(isset($query['view']) && $query['view'] != 'user') {
    $segments[] = $query['catid'];
}
If I put

Code: Select all

if(isset($query['view']) && $query['view'] != 'user') {
    //$segments[] = $query['catid'];
}
the problem don't appear.

The live site is there (I've let the error).

Re: Notice: Undefined index: catid in ... router.php on line

Posted: 03 Aug 2011, 14:57
by Jan
Ok, I will take a look at it.


Maybe try to check the sef settings on your site and try to recheck this:
https://www.phoca.cz/documents/16-joomla ... -in-joomla
Jan

Re: Notice: Undefined index: catid in ... router.php on line

Posted: 04 Aug 2011, 15:13
by vhellers
Hye,

If I put SEF at OFF, I haven't this probleme.

I had read the article, but I have only two phoca module : phocagallery et phocamap and I have menu link published for each.

I don't understand.

Thank you for your help.

Re: Notice: Undefined index: catid in ... router.php on line

Posted: 04 Aug 2011, 17:38
by Jan
Hmmm, then seems like there is some problem while creating the SEF link as the SEF link does not include any information about the category :idea: Do you use standard SEF without prefixes?

Re: Notice: Undefined index: catid in ... router.php on line

Posted: 04 Aug 2011, 22:12
by Jan
I have addes some clause which can hide the warning in 3.0.2 but does not solve the problem with SEF :idea:

Re: Notice: Undefined index: catid in ... router.php on line

Posted: 10 Aug 2011, 08:39
by vhellers
Hye,

With the 3.0.2 I don't have the warning, it's ok for me :| .

Thank you for all :twisted: .

Re: [solved] Undefined index: catid in... router.php on line

Posted: 12 Aug 2011, 23:15
by Jan
Ok