Keyword

SOLVED: Undefined View in module route.php

  • Tom Groehlich
  • Tom Groehlich's Avatar Topic Author
  • Offline
  • New Member
More
11 years 8 months ago - 11 years 8 months ago #109849 by Tom Groehlich
SOLVED: Undefined View in module route.php was created by Tom Groehlich
Hi folks,
maybe this helps anyone who run in the same problem.

After Installing K2 2.6.5 I get some weird errors like

undefined index: bla bla ... in /components/com_k2/helpers/route.php in line 174

After some research I found a solution in a Kuena forum (which i don't use anyway :-)

It seems that you first have to check on empty values before using it on an if statement - therefore I chanced the following form:
if ($item->query['view'] == 'itemlist' && $item->query['task'] == '')
{
  ...other code ...
}
to
if ( !empty($item->query['view']) ) {
        if ($item->query['view'] == 'itemlist' && $item->query['task'] == '')
                {
                   ...other code ...
                }
}

Since I'm NOT a php programmer, I hope this is a valid approach - should be changed on K2 code a bit as well ..

Please Log in or Create an account to join the conversation.

More
11 years 5 months ago #109850 by Scott
Man , thank you very much !
I've encounter this bug too...
I've using J3.0 and K2.6.5
And this error keeps showing on the K2 content module

And your method just FIX IT perfect !
Thanks ! again

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum