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

Phoca Gallery - image gallery extension
vhellers
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 21 Jul 2010, 11:56

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

Post 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.
Last edited by vhellers on 10 Aug 2011, 08:41, edited 1 time in total.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49190
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

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

Post by Jan »

Hi, can I see the live site?
If you find Phoca extensions useful, please support the project
vhellers
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 21 Jul 2010, 11:56

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

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

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

Post 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
If you find Phoca extensions useful, please support the project
vhellers
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 21 Jul 2010, 11:56

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

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

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

Post 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?
If you find Phoca extensions useful, please support the project
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49190
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

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

Post 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:
If you find Phoca extensions useful, please support the project
vhellers
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 21 Jul 2010, 11:56

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

Post by vhellers »

Hye,

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

Thank you for all :twisted: .
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49190
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

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

Post by Jan »

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