?
avatar infograf768
infograf768
1 Feb 2015

Display a contact on frontend after making sure that display articles is set to show.
The user linked to that contact should have at least created one article.

Results:
31-Jan-2015 15:24:34 UTC] PHP Notice: Undefined property: stdClass::$catid in /Applications/MAMP/htdocs/trunkgitnew/components/com_contact/views/contact/tmpl/default_articles.php on line 20
[31-Jan-2015 15:24:34 UTC] PHP Notice: Undefined property: stdClass::$language in /Applications/MAMP/htdocs/trunkgitnew/components/com_contact/views/contact/tmpl/default_articles.php on line 20

The line concerned is

<?php echo JHtml::_('link', JRoute::_(ContentHelperRoute::getArticleRoute($article->slug, $article->catid, $article->language)), htmlspecialchars($article->title, ENT_COMPAT, 'UTF-8')); ?>

This apparently happens because of this PR
#5276

I guess it needs a similar code change introduced in pagenavigation.php in
Hackwar@0d3ef7c

i.e. in the contact model getContactQuery method

avatar infograf768 infograf768 - open - 1 Feb 2015
avatar jissues-bot jissues-bot - change - 1 Feb 2015
Labels Added: ?
avatar infograf768
infograf768 - comment - 1 Feb 2015

Changing $article->catid to $article->catslug solves the $catid Notice, but I could not find any way to correct the issue with $article->language)

avatar wilsonge
wilsonge - comment - 1 Feb 2015

Please try the fix in #5937

avatar wilsonge wilsonge - close - 1 Feb 2015
avatar wilsonge wilsonge - close - 1 Feb 2015
avatar wilsonge wilsonge - change - 1 Feb 2015
Status New Closed
Closed_Date 0000-00-00 00:00:00 2015-02-01 16:24:39

Add a Comment

Login with GitHub to post a comment