-
AuthorPosts
-
March 14, 2015 at 8:08 am #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 ?
Thanksphong nam Friendphong nam
- Join date:
- May 2015
- Posts:
- 3779
- Downloads:
- 1
- Uploads:
- 587
- Thanks:
- 499
- Thanked:
- 974 times in 888 posts
March 16, 2015 at 1:37 am #563162Which 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
March 16, 2015 at 5:55 am #563198Hi 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.3thanks
phong nam Friendphong nam
- Join date:
- May 2015
- Posts:
- 3779
- Downloads:
- 1
- Uploads:
- 587
- Thanks:
- 499
- Thanked:
- 974 times in 888 posts
March 16, 2015 at 6:37 am #563206Hi 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
March 17, 2015 at 4:57 am #563354hi 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 Friendphong nam
- Join date:
- May 2015
- Posts:
- 3779
- Downloads:
- 1
- Uploads:
- 587
- Thanks:
- 499
- Thanked:
- 974 times in 888 posts
March 17, 2015 at 7:48 am #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
1 user says Thank You to phong nam for this useful post
-
AuthorPosts
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