- Posts: 10
COMMUNITY FORUM
- Forum
- K2 Community Forum
- English K2 Community
- "/components/com_content/helpers/route.php on line 106" error
"/components/com_content/helpers/route.php on line 106" error
- Mike Taylor
-
Topic Author
- Offline
- New Member
Less
More
14 years 5 months ago #90304
by Mike Taylor
"/components/com_content/helpers/route.php on line 106" error was created 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.
- william white
-
- Offline
- Platinum Member
Less
More
- Posts: 3722
14 years 5 months ago #90305
by william white
Replied by william white on topic "/components/com_content/helpers/route.php on line 106" error
If the page is rendering correctly try going to Global settings - server tab
and turn error reporting to none. The warning may go away.
and turn error reporting to none. The warning may go away.
Please Log in or Create an account to join the conversation.
- Mike Taylor
-
Topic Author
- Offline
- New Member
Less
More
- Posts: 10
14 years 5 months ago #90306
by Mike Taylor
Replied by Mike Taylor on topic "/components/com_content/helpers/route.php on line 106" error
Thank you, but that didn't work.
Still getting the errors on the page.
Still getting the errors on the page.
Please Log in or Create an account to join the conversation.
- Arvind Ragunathan
-
- Offline
- New Member
Less
More
- Posts: 4
14 years 5 months ago #90307
by Arvind Ragunathan
Replied by Arvind Ragunathan on topic "/components/com_content/helpers/route.php on line 106" error
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)
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
-
Topic Author
- Offline
- New Member
Less
More
- Posts: 10
14 years 5 months ago #90308
by Mike Taylor
Replied by Mike Taylor on topic "/components/com_content/helpers/route.php on line 106" error
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)
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
-
Topic Author
- Offline
- New Member
Less
More
- Posts: 10
14 years 5 months ago #90309
by Mike Taylor
Replied by Mike Taylor on topic "/components/com_content/helpers/route.php on line 106" error
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)
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.
- Forum
- K2 Community Forum
- English K2 Community
- "/components/com_content/helpers/route.php on line 106" error