Keyword

"/components/com_content/helpers/route.php on line 106" error

  • Mike Taylor
  • Mike Taylor's Avatar Topic Author
  • Offline
  • New Member
More
13 years 10 months ago #90304 by Mike Taylor
Hi,When I try to use a K2 item for my Front Page I get the following error:Warning: Invalid argument supplied for foreach() in /home/computec/public_html/components/com_content/helpers/route.php on line 106When I set it to a normal Joomla article it works.Why doesn't my K2 item give this error when set for front page?TIA,MT

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

More
13 years 10 months ago #90305 by william white
If the page is rendering correctly try going to Global settings - server tab
and turn error reporting to none. The warning may go away.

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

  • Mike Taylor
  • Mike Taylor's Avatar Topic Author
  • Offline
  • New Member
More
13 years 10 months ago #90306 by Mike Taylor
Thank you, but that didn't work.

Still getting the errors on the page.

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

More
13 years 10 months ago #90307 by Arvind Ragunathan
Hi,

Found this solution in joomla forum which worked for me: forum.joomla.org/viewtopic.php?f=199&t=330536

- Edit the file components/com_content/helpers/route.php
- Insert a new line between line 99 and line 100
- In the new line write: $items = null;
- Now on line 107, before the statement foreach($items as $item) write: if ($items!=null)

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

  • Mike Taylor
  • Mike Taylor's Avatar Topic Author
  • Offline
  • New Member
More
13 years 10 months ago #90308 by Mike Taylor
Hi,

I will try this and let you know the results.

Thank you very much!




Arvind Ragunathan said:Hi,
Found this solution in joomla forum which worked for me: forum.joomla.org/viewtopic.php?f=199&t=330536

- Edit the file components/com_content/helpers/route.php
- Insert a new line between line 99 and line 100
- In the new line write: $items = null;
- Now on line 107, before the statement foreach($items as $item) write: if ($items!=null)

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

  • Mike Taylor
  • Mike Taylor's Avatar Topic Author
  • Offline
  • New Member
More
13 years 10 months ago #90309 by Mike Taylor
Thanks Arvind! That seems to have worked.

MT

Mike Taylor said:Hi,
I will try this and let you know the results.

Thank you very much!




Arvind Ragunathan said:Hi, Found this solution in joomla forum which worked for me: forum.joomla.org/viewtopic.php?f=199&t=330536

- Edit the file components/com_content/helpers/route.php
- Insert a new line between line 99 and line 100
- In the new line write: $items = null;
- Now on line 107, before the statement foreach($items as $item) write: if ($items!=null)

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


Powered by Kunena Forum