com_content helpers route.php line 106
-
- Joomla! Apprentice
- Posts: 44
- Joined: Mon Sep 22, 2008 4:43 am
com_content helpers route.php line 106
Hi,
what this error is about ?
Warning: Invalid argument supplied for foreach() in /home/components/com_content/helpers/route.php on line 106
I've checked the file, so I understood, it could have something to do with items or articles, deleted almost everything, teste only with one or two, deleted menu items, etc
*I've created my own template, but I belive I didnt left any importat JDOC statement behind. I remember I wasnt using the "head" once, but it was solved, and the error was kind a diferent of this one.
This is happening while using "Latest News" module! I started by trying to use a free one called News Show GK, that was giving this error also!
Any help is appreciated!
what this error is about ?
Warning: Invalid argument supplied for foreach() in /home/components/com_content/helpers/route.php on line 106
I've checked the file, so I understood, it could have something to do with items or articles, deleted almost everything, teste only with one or two, deleted menu items, etc
*I've created my own template, but I belive I didnt left any importat JDOC statement behind. I remember I wasnt using the "head" once, but it was solved, and the error was kind a diferent of this one.
This is happening while using "Latest News" module! I started by trying to use a free one called News Show GK, that was giving this error also!
Any help is appreciated!
-
- Joomla! Apprentice
- Posts: 44
- Joined: Mon Sep 22, 2008 4:43 am
-
- Joomla! Apprentice
- Posts: 5
- Joined: Fri Dec 19, 2008 5:50 pm
Re: com_content helpers route.php line 106
Hello,
I'm also havin this "com_content/helpers/route.php on line 106" problem. I don't understand the whole "http://joomlacode.org/gf/project/joomla ... m_id=12724" code. Could anyone please help me out in this one? I have just a little idea about writting code, so please give me a non-coder solution.
Thanks in advance.
I'm also havin this "com_content/helpers/route.php on line 106" problem. I don't understand the whole "http://joomlacode.org/gf/project/joomla ... m_id=12724" code. Could anyone please help me out in this one? I have just a little idea about writting code, so please give me a non-coder solution.
Thanks in advance.
- ianmac
- Joomla! Virtuoso
- Posts: 4784
- Joined: Sat Sep 24, 2005 11:01 pm
- Location: Toronto, Canada
Re: com_content helpers route.php line 106
The issue mentioned was fixed last October. The issue you are experiencing, I believe, is a different issue. Can you try creating a menu item that points to an article and see if that fixes the problem?CarlitosWay wrote:Hello,
I'm also havin this "com_content/helpers/route.php on line 106" problem. I don't understand the whole "http://joomlacode.org/gf/project/joomla ... m_id=12724" code. Could anyone please help me out in this one? I have just a little idea about writting code, so please give me a non-coder solution.
Thanks in advance.
I believe something has already been filed for this.
Ian
-
- Joomla! Apprentice
- Posts: 5
- Joined: Fri Dec 19, 2008 5:50 pm
Re: com_content helpers route.php line 106
Wow!!
Problem solved! I have to have an article published as a menu item (not only created). Thats not what I actually wanted, but it's ok. I hope the Joomla developers try to get rid of this issue in the next version.
Thanks a lot!
Charly
Problem solved! I have to have an article published as a menu item (not only created). Thats not what I actually wanted, but it's ok. I hope the Joomla developers try to get rid of this issue in the next version.
Thanks a lot!
Charly
-
- Joomla! Fledgling
- Posts: 3
- Joined: Sat Dec 06, 2008 2:52 pm
Re: com_content helpers route.php line 106
There is a very easy solution for this problem:
- 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)
- 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)
-
- Joomla! Fledgling
- Posts: 1
- Joined: Sun Sep 19, 2010 8:41 pm
Re: com_content helpers route.php line 106
thank you, i think i found the final solution to that problem
-
- Joomla! Apprentice
- Posts: 7
- Joined: Wed Apr 22, 2009 6:02 am
Re: com_content helpers route.php line 106
works like a dream!
OP
OP
- RustyJoomla
- Joomla! Explorer
- Posts: 409
- Joined: Wed Aug 01, 2007 12:08 am
- Location: UK
- Contact:
Re: com_content helpers route.php line 106
Great work! Thank you!DannyRitiu wrote:There is a very easy solution for this problem:
- 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)
-
- Joomla! Apprentice
- Posts: 21
- Joined: Thu Dec 30, 2010 10:34 am
Re: com_content helpers route.php line 106
Done, Thank youDannyRitiu wrote:There is a very easy solution for this problem:
- 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)
-
- Joomla! Apprentice
- Posts: 24
- Joined: Sun Feb 22, 2009 5:38 pm
Re: com_content helpers route.php line 106
I am having the same problem and tried the solution but now I am getting this error:
Parse error: syntax error, unexpected T_VARIABLE in /home2/socialsa/public_html/components/com_content/helpers/route.php on line 101
Parse error: syntax error, unexpected T_VARIABLE in /home2/socialsa/public_html/components/com_content/helpers/route.php on line 101
-
- Joomla! Apprentice
- Posts: 24
- Joined: Sun Feb 22, 2009 5:38 pm
Re: com_content helpers route.php line 106
Ok... I figured out what the problem was, I had a link to the Home page but unpublished it until I finished my front page article and had a different link set to default. I just did not realize it would cause so many problems.
- indigosparcs
- Joomla! Apprentice
- Posts: 6
- Joined: Sun Mar 27, 2011 1:31 pm
Re: com_content helpers route.php line 106
Thanks alot this saved my day...DannyRitiu wrote:There is a very easy solution for this problem:
- 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)
-
- Joomla! Fledgling
- Posts: 1
- Joined: Tue Mar 31, 2009 5:21 am
- Location: http://www.linuxtuts.net
Re: com_content helpers route.php line 106
I know this is an old thread, but
Thanks a million,
P.S.Joomla 1.7.3
EDIT: its on line 136 now though.
make it look like this...
Peace..............
Still works.DannyRitiu wrote:
There is a very easy solution for this problem:
- 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)
Thanks a million,
P.S.Joomla 1.7.3
EDIT: its on line 136 now though.
make it look like this...
Code: Select all
if ($items!=null) foreach ($items as $item)
-
- Joomla! Apprentice
- Posts: 18
- Joined: Sat Feb 04, 2012 9:49 pm
Re: com_content helpers route.php line 106
Thank you ! Worked like a charm ! I installed a social plugin (facebook, chrome, tweeter, etc.) for k2 and I had this error. Now everything is OK thanks to you !DannyRitiu wrote:There is a very easy solution for this problem:
- 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)
-
- Joomla! Fledgling
- Posts: 1
- Joined: Sun Feb 26, 2012 2:47 pm
-
- Joomla! Fledgling
- Posts: 1
- Joined: Tue Mar 06, 2012 7:39 pm
Re: com_content helpers route.php line 106
Hi. This fix worked for me, too. However, now Facebook doesn't show the item title or text when sharing the stories, or the url's, from the site. Could this be a side-effect of the fix, or is something else causing this problem?
(On Edit): When Facebook renders the url, it just shows my site name as the title and site description where text should show. The images are showing, and the FB links created work for me, but others report that the facebook links aren't working.
Please advise & Thanks.
(On Edit): When Facebook renders the url, it just shows my site name as the title and site description where text should show. The images are showing, and the FB links created work for me, but others report that the facebook links aren't working.
Please advise & Thanks.