test
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • baud Friend
    #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 Moderator
    #695249

    Hi,

    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

    Ninja Lead Moderator
    #750528

    Hi,

    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

    baud Friend
    #695360

    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.

    baud Friend
    #750601

    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.

    Ninja Lead Moderator
    #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

    Ninja Lead Moderator
    #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

Viewing 7 posts - 1 through 7 (of 7 total)

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