Notice Category list and Category blog

Rate this topic: Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.
GK User
Wed Mar 12, 2014 2:12 pm
Reply with quote
Report this post
Hi Dear Team,

How to fix this notice ( without change the Error Reporting parameters in config ;) )

for example for Category list

Notice: Undefined property: stdClass::$language in C:\wamp\www\templates\gk_news2\html\com_content\category\default_articles.php on line 100


This line :
Code: Select all
<a href="<?php echo JRoute::_(ContentHelperRoute::getArticleRoute($article->slug, $article->catid, $article->language)); ?>"> 


In Joomla 2.5 this line doesn’t cause notice, but in Joomla 3 yes


I tried to add
Code: Select all
“$returnURL = JRoute::_(ContentHelperRoute::getArticleRoute($article->slug, $article->catid, $article->language));”


But nothing change


If I replace by this
Code: Select all
<a href="<?php echo JRoute::_(ContentHelperRoute::getArticleRoute($article->slug, $article->catid)); ?>">


The error disappear but, I 'm afraid that could make a problem for the language ? :?

Can you help me

Thank you
User avatar
Senior Boarder

GK User
Wed Mar 12, 2014 6:52 pm
Reply with quote
Report this post
You should disable PHP notice Messages because this setting is recommended by Joomla installer, more details how to do it you will find at gavick.com/documentation
User avatar
Platinum Boarder

GK User
Wed Mar 12, 2014 8:31 pm
Reply with quote
Report this post
Are you a robot ? Repeat always some kind of sentence, without read what I said ? :shock:

I said without change Error Reporting , I know about Joomla installer and is not my question

Always a problem for have an answer with you guys.

Either you ask the website link or you ask to change the Error Reporting............That is your only answer :evil:

Yours templates have always a lot of error and it’s impossible to have an answer

I'm asking me, how we can work with your templates, it’s very very disappointing and discouraging
User avatar
Senior Boarder

GK User
Thu Mar 13, 2014 3:22 pm
Reply with quote
Report this post
Our templates have the same requirements as Joomla! and if it is recommended setting to disable display_errors option we also recommend this setting. I've enabled error_reporting and visited the view which you mention » screenshot

and I don't have any errors, what is more I've checked whether the $article->language returns some result and yes by default this value is set to '*". Maybe one your articles just have wrong language settings or you have imported content from J!2.5 installation?
User avatar
Platinum Boarder


cron