Installation Error News J30

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Sun Mar 17, 2013 2:51 am
Reply with quote
Report this post
Parse error: syntax error, unexpected end of file in /home/malaysi2/public_html/news/modules/mod_weather_gk4/mod_weather_gk4.php on line 3

I received error mesg above. Can any mod admin pls help and guide me how to fix this..tq
I have disable error reporting through index page and admin and try to install the template for at least 5 times but still no luck. Help ok
User avatar
Junior Boarder

GK User
Sun Mar 17, 2013 9:07 am
Reply with quote
Report this post
How do i repair edit this PHP file below

<?php

/**
* Gavick Weather GK4 - main file
* @package Joomla!
* @ Copyright (C) 2009-2011 Gavick.com
* @ All rights reserved
* @ Joomla! is Free Software
* @ Released under GNU/GPL License : http://www.gnu.org/copyleft/gpl.html
* @version $Revision: GK4 1.0 $
**/

// access restriction


defined('_JEXEC') or die('Restricted access');
if(!defined('DS')){
define('DS',DIRECTORY_SEPARATOR);
}
// Loading helper class
require_once (dirname(__FILE__).DS.'helper.php');
// initialize the module and get the XML data

$helper = new GKWHelper($params);
$helper->getData();
// try to parse the data

try{
$helper->parseData();
} catch (Exception $e) {
// use backup
$helper->useBackup();
// parse the backup data
$helper->parseData();
}


// render the module output
$helper->renderLayout();


/*eof*/
User avatar
Junior Boarder

GK User
Sun Mar 17, 2013 11:07 am
Reply with quote
Report this post
Problem solved and i only put ?> at the end of the code above [no more error] but the GK weather doesnt appear or work any more on the new install template, why? link here to see: http://www.news.malaysianreview.com

One more question how do you delete or convert all demo content, if possible?
Thank You
User avatar
Junior Boarder

teitbite
Mon Mar 18, 2013 5:29 pm
Reply with quote
Report this post
Hi

This is really strange. Noone else has reported this issue and I've installed it just now and do not see it either. Please maybe try install this module separately.
User avatar
Moderator


cron