Error in blog.php file?

GK User
Mon Dec 14, 2015 4:06 am
I seem to be generating these 2 errors constantly:
[13-Dec-2015 14:54:17 America/Denver] PHP Notice: Undefined variable: item in /home4/provenc9/public_html/templates/tmpl_provencal/html/com_content/category/blog.php on line 67
[13-Dec-2015 14:54:17 America/Denver] PHP Notice: Trying to get property of non-object in /home4/provenc9/public_html/templates/tmpl_provencal/html/com_content/category/blog.php on line 67

these are the referenced lines of code:
Code: Select all
65  <?php $leadingcount=0 ; ?>
66          <?php if (!empty($this->lead_items)) : ?>
67          <div class="leading-<?php echo $leadingcount; ?><?php echo $item->state == 0 ? ' system-unpublished' : null; ?>"
68                         itemprop="blogPost" itemscope itemtype="http://schema.org/BlogPosting">             69 <?php foreach ($this->lead_items as &$item) : ?>
70               <?php
71               $this->item = &$item;
72               echo $this->loadTemplate('item');
73            ?>
74               <?php $leadingcount++; ?>
75            <?php endforeach; ?>
76          </div>
77          <?php endif; ?>


Any idea what is causing this error?
User avatar
Expert Boarder

GK User
Mon Dec 14, 2015 8:26 am
Warnings and Notices are not Errors.
Please check this documentation:
https://www.gavick.com/documentation/jo ... -error-fix
User avatar
Moderator


cron