Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • aliart Friend
    #204655

    Hi

    I’m having a repeated error in the error_log of my Joomla 3.4 site :

    PHP Notice: Undefined variable: date in …/public_html/arabic/templates/ja_teline_v/html/layouts/joomla/content/info_block/date.php on line 18

    code is:

    [PHP]<?php
    /**
    * @package Joomla.Site
    * @subpackage Layout
    *
    * @copyright Copyright (C) 2005 – 2014 Open Source Matters, Inc. All rights reserved.
    * @license GNU General Public License version 2 or later; see LICENSE.txt
    */

    defined(‘JPATH_BASE’) or die;
    $item = $displayData[‘item’];
    $params = $displayData[‘params’];
    $date_field = $params->get (‘show_date_field’);
    $item->date_field = ‘date’;
    ?>
    <dd class=”published”>
    <i class=”icon-calendar”></i>
    <time datetime=”<?php echo JHtml::_(‘date’, $date, ‘c’); ?>” itemprop=”datePublished”>
    <?php echo @$item->displayDate; ?>
    </time>
    </dd>[/PHP]

    any idea please ?
    Thanks

    phong nam Friend
    #563162

    Which version of Teline V are you using? my date.php file look like so

    <?php
    /**
    * @package Joomla.Site
    * @subpackage Layout
    *
    * @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved.
    * @license GNU General Public License version 2 or later; see LICENSE.txt
    */

    defined('JPATH_BASE') or die;
    $item = $displayData['item'];
    $params = $displayData['params'];
    $date_field = $params->get ('show_date_field');
    $date = $item->$date_field;
    ?>
    <dd class="published">
    <i class="icon-calendar"></i>
    <time datetime="<?php echo JHtml::_('date', $date, 'c'); ?>" itemprop="datePublished">
    <?php echo $item->displayDate ?>
    </time>
    </dd>

    In this case, you can try to replace the php code like my code above or follow this post to hide the php warning message

    Thanks

    aliart Friend
    #563198

    Hi Leo,

    i replaced your code with mine and now no article is shown, with this error:

    Fatal error: Cannot access empty property in /home/shafaaq/public_html/arabic/templates/ja_teline_v/html/layouts/joomla/content/info_block/date.php on line 14

    i checked that thread and i think it’s an other issue because it’s different file and error.
    please cheack this link for example:

    http://arabic.shafaaq.com/index.php/news/kurdistan-news/88986-2015-01-04-16-55-34.html

    Teline v verstion : 1.0.0
    T3 verstion: 2.4.3

    thanks

    phong nam Friend
    #563206

    Hi there,

    I’m using latest Teline V version 1.0.2 and T3 version 2.4.5. Please revert back the code to get rid of the error message in front-end. If possible, please update your Teline V template to the newest version then recheck.

    NOTE: If you dont want to update to newest Teline V 1.0.2, just go to Global configuration then set the Error reporting to NONE.

    Thank you

    aliart Friend
    #563354

    hi leo,

    i updated the T3 plugin to 2.4.5, while the downloaded Teline V 1.0.2 could not be installed ! , i got an error :

    ” Error No file selected. Unable to find install package ” , why?

    phong nam Friend
    #563372

    <em>@aliart 463780 wrote:</em><blockquote>hi leo,

    i updated the T3 plugin to 2.4.5, while the downloaded Teline V 1.0.2 could not be installed ! , i got an error :

    ” Error No file selected. Unable to find install package ” , why?</blockquote>

    Please check this post http://www.joomlart.com/forums/topic/error-no-file-selected-unable-to-find-install-package/

    Joomla! Doc: https://docs.joomla.org/J3.x:Extension_won't_install/en

    Thank you

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

This topic contains 6 replies, has 2 voices, and was last updated by  phong nam 9 years, 8 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum