Problem with v 1.5.0 of Latest News Plus Date on inherited site

No all that is in that file is the following;

<?php
/**
* @version $Id: mod_latestnews.php 9764 2007-12-30 07:48:11Z ircmaxell $
* @package Joomla
* @copyright Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
* @license GNU/GPL, see LICENSE.php
* Joomla! is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/

// no direct access
defined('_JEXEC') or die('Restricted access');

// Include the syndicate functions only once
require_once (dirname(__FILE__).DS.'helper.php');

$list = modLatestNewsHelperPlusDate::getList($params);
require(JModuleHelper::getLayoutPath('mod_latestnewsplusdate'));
11 years 10 months ago #7 by Mark

Please Log in or Create an account to join the conversation.

Mmm okay it's clear now that that variable is non exist so you need to add it's definition somewhere in default.php with the following line,
global $my;

just place it let's say in line 28 just right above this,
$document=& JFactory::getDocument();

and see if that helps.
11 years 10 months ago #8 by erwinschro

Please Log in or Create an account to join the conversation.

That seemed to fix the first error, now I only have the second error showing, ie
Notice: Trying to get property of non-object in /clientdata/apache-www/t/o/tontinefibres.com.au/www/modules/mod_latestnewsplusdate/tmpl/default.php on line 160

So thanks for your help on the foirst error, any ideas on how to fix the second error?
11 years 10 months ago #9 by Mark

Please Log in or Create an account to join the conversation.

More information in case this helps, I notice on the news page the date is not showing on every news irem, and the large date icon is showing as DATE_FORMAT_L5
Does this provide anyone with a clue?
11 years 10 months ago #10 by Mark

Please Log in or Create an account to join the conversation.

Regarding the notice on line 160, try to edit that and change this part
$my->gid

to
$user->gid

but note that this definition must be there too. If it's not exist then you must add it
$user    =& JFactory::getUser();


So sorry but I can't help you further with another error/notice. That's far I can help as we're no longer support it...(unless you want to hire us to fix that for your client - that's a different story).
11 years 10 months ago #11 by erwinschro

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum