-
AuthorPosts
-
October 3, 2015 at 8:21 pm #695074
In my category blog the headlines of the individual articles are missing and I get the following error message:
Warning: Creating default object from empty value in /var/www/web1421/html/paris/templates/ja_charity/html/com_content/category/blog_item.php on line 63
I haven’t changed anything in the blog_item.php so not sure why the error comes up.
Any ideas?
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
October 5, 2015 at 4:52 am #695249Hi,
This is a bug from our problem and I fixed the problem on your site with the solution below
Open templates/ja_charity/html/com_content/category/blog_item.php file
from
if (isset($item->rating_sum) && $item->rating_count > 0) {
$item->rating = round($item->rating_sum / $item->rating_count, 1);
$item->rating_percentage = $item->rating_sum / $item->rating_count * 20;
} else {
if (!isset($item->rating)) $item->rating = 0;
if (!isset($item->rating_count)) $item->rating_count = 0;
$item->rating_percentage = $item->rating * 20;
}
to
if (isset($this->item->rating_sum) && $this->item->rating_count > 0) {
$this->item->rating = round($this->item->rating_sum / $this->item->rating_count, 1);
$this->item->rating_percentage = $this->item->rating_sum / $this->item->rating_count * 20;
} else {
if (!isset($this->item->rating)) $this->item->rating = 0;
if (!isset($this->item->rating_count)) $this->item->rating_count = 0;
$this->item->rating_percentage = $this->item->rating * 20;
}
Now, you can see it’s working fine on your site
Regards
1 user says Thank You to Ninja Lead for this useful post
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
October 5, 2015 at 4:52 am #750528Hi,
This is a bug from our problem and I fixed the problem on your site with the solution below
Open templates/ja_charity/html/com_content/category/blog_item.php file
from
if (isset($item->rating_sum) && $item->rating_count > 0) {
$item->rating = round($item->rating_sum / $item->rating_count, 1);
$item->rating_percentage = $item->rating_sum / $item->rating_count * 20;
} else {
if (!isset($item->rating)) $item->rating = 0;
if (!isset($item->rating_count)) $item->rating_count = 0;
$item->rating_percentage = $item->rating * 20;
}
to
if (isset($this->item->rating_sum) && $this->item->rating_count > 0) {
$this->item->rating = round($this->item->rating_sum / $this->item->rating_count, 1);
$this->item->rating_percentage = $this->item->rating_sum / $this->item->rating_count * 20;
} else {
if (!isset($this->item->rating)) $this->item->rating = 0;
if (!isset($this->item->rating_count)) $this->item->rating_count = 0;
$this->item->rating_percentage = $this->item->rating * 20;
}
Now, you can see it’s working fine on your site
Regards
1 user says Thank You to Ninja Lead for this useful post
October 5, 2015 at 10:16 am #695360Thank you. That fixed the error message. I’m still clueless though why the article title is not displayed. I set it to show in the menu settings but it doesn’t come up.
October 5, 2015 at 10:16 am #750601Thank you. That fixed the error message. I’m still clueless though why the article title is not displayed. I set it to show in the menu settings but it doesn’t come up.
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
October 6, 2015 at 3:42 am #695497<em>@baud 495729 wrote:</em><blockquote>Thank you. That fixed the error message. I’m still clueless though why the article title is not displayed. I set it to show in the menu settings but it doesn’t come up.</blockquote>
Hi,
I set Show title option under Preis, Regeln category to Use Global and Show title option under Article Options from Article Manager to Show.
Now you can see it’s showing the title article under blog and article.
Thanks
1 user says Thank You to Ninja Lead for this useful post
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
October 6, 2015 at 3:42 am #750693<em>@baud 495729 wrote:</em><blockquote>Thank you. That fixed the error message. I’m still clueless though why the article title is not displayed. I set it to show in the menu settings but it doesn’t come up.</blockquote>
Hi,
I set Show title option under Preis, Regeln category to Use Global and Show title option under Article Options from Article Manager to Show.
Now you can see it’s showing the title article under blog and article.
Thanks
1 user says Thank You to Ninja Lead for this useful post
-
AuthorPosts
This topic contains 7 replies, has 2 voices, and was last updated by Ninja Lead 9 years, 1 month ago.
We moved to new unified forum. Please post all new support queries in our New Forum