PDA

Zobacz pełną wersję : Problem w związku z szablonem Joomla 1.5 : Call to a membet function get()



tuksiarz
08-07-2011, 00:18
Witam

Po zainstalowaniu szablonu, strona nie chce się załadować. Wyświetla jedynie tło i czarny napis na górze


Fatal error: Call to a member function get() on a non-object in /home/virtualki/74306/templates/mx_joofree4_j1.6/index.php on line 58


Plik index.php z tego adresu to:

<?php
defined('_JEXEC') or die('Restricted access');
echo '<?xml version="1.0" encoding="utf-8"?'.'>'; ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>" >
<head>
<?php

JHTML::_('behavior.mootools');
$app = JFactory::getApplication();
$templateparams = $app->getTemplate(true)->params;
$editor=false;
if(JRequest::getVar('option','')=='com_content'&&JRequest::getVar('layout','')=='edit')$editor=true ;
if(JRequest::getVar('option','')=='com_weblinks'&&JRequest::getVar('layout','')=='edit')$editor=true ;

$showCustomTop = (bool) $this->countModules('position-1');
$showCustomTop += (bool) $this->countModules('position-2');
$showCustomTop += (bool) $this->countModules('position-3');

$customTopWidth = "";
if($showCustomTop == 1)
{
$customTopWidth = 'style="width:860px; background-image: none"';
}
else if($showCustomTop == 2)
{
$customTopWidth = 'style="width:428px; background-image: none"';
}
else if($showCustomTop == 3)
{
$customTopWidth = 'style="width:280px"';
}

?>
<jdoc:include type="head" />
<link href="<?php echo $LiveSiteUrl ?>templates/<?php echo $this->template?>/css/setts.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template;?>/css/template_css.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template;?>/css/menu.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template;?>/css/custom_elements.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template;?>/css/typo.css" type="text/css" />
<!--[if IE]>
<link href="templates/<?php echo $this->template ?>/css/ieonly.css" rel="stylesheet" type="text/css" />
<![endif]-->
<!--[if lte IE 6]>
<link href="templates/<?php echo $this->
template ?>/css/ie6fix.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template;?>/javascript/pngfix.js"></script>
<script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template;?>/javascript/fixthis.js"></script>
<script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template;?>/javascript/menu-fix.js"></script>

<![endif]-->

</head>

<body class="mx_joofree4">
<div class="mx">
<div class="mx-top">
<?php if($templateparams->get('show-logo',1)) : ?>
<div class="mx-logo">
<a href="index.php" class="logo"></a>
</div>
<?php endif; ?>
<?php if($this->countModules('user3')) : ?>
<div class="top_right">
<jdoc:include type="modules" name="user3" />
</div>
<?php endif; ?>
</div>
<div class="background">
<div class="wrapper">
<div class="mx-box">
<div class="mx-box-floating">
<?php if($this->countModules('mainmenu')) : ?>
<div class="mx-menu <?php echo ($templateparams->get('show-logo',1))? '' : 'mx-menu-large' ?>">
<jdoc:include type="modules" name="mainmenu" style="" />
</div>
<?php endif; ?>
</div>
</div>

<!-- START FLASH HEADER -->

<?php if($templateparams->get('show-header',1)) : ?>
<?php if (JRequest::getVar('view') == 'featured') : ?>
<div id="header">
<object type="application/x-shockwave-flash" data="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template?>/images/header.swf" width="894" height="260">
<param name="wmode" value="transparent" />
<param name="movie" value="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template?>/images/header.swf" />
</object>
</div>
<?php endif; ?>
<?php else: ?>
<div id="header">
<object type="application/x-shockwave-flash" data="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template?>/images/header.swf" width="894" height="260">
<param name="wmode" value="transparent" />
<param name="movie" value="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template?>/images/header.swf" />
</object>
</div>
<?php endif; ?>
<!-- END FLASH HEADER -->
<div class="mx-content">

<?php if($this->countModules('left')) : ?>
<div class="left-column">

<jdoc:include type="modules" name="left" style="module" />

</div>
<?php endif; ?>

<div class="center-column" id="center<?php echo ($this->countModules('left'))? '-right' : '';echo ($this->countModules('right')&&!$editor)? '-left' : ''; ?>">
<jdoc:include type="message" />

<?php if($this->countModules('user1')) : ?>

<jdoc:include type="modules" name="user1" style="module_content" />

<?php endif; ?>

<jdoc:include type="component" />

<?php if($this->countModules('user2')) : ?>

<jdoc:include type="modules" name="user2" style="module_content" type="bottom_elements" />

<?php endif; ?>

</div>
<?php if($this->countModules('right')&&!$editor) : ?>
<div class="right-column">
<jdoc:include type="modules" name="right" style="module" />
</div>
<?php endif; ?>

</div>

<?php if($showCustomTop): ?>
<div class="customhtml">
<?php if($this->countModules('position-1')): ?>
<div class="box1" <?php echo $customTopWidth; ?>>
<jdoc:include type="modules" name="position-1" style="xhtml" />
</div>
<?php endif; ?>
<?php if($this->countModules('position-2')): ?>
<div class="box2" <?php echo $customTopWidth; ?>>
<jdoc:include type="modules" name="position-2" style="xhtml" />
</div>
<?php endif; ?>
<?php if($this->countModules('position-3')): ?>
<div class="box3" <?php echo $customTopWidth; ?>>
<jdoc:include type="modules" name="position-3" style="xhtml" />
</div>
<?php endif; ?>
</div>
<?php endif; ?>
</div>
</div>
<div class="footer-background"></div>
<div class="bottom-site">
<div class="bottom-site-left">
<?php
defined( '_JEXEC' ) or die( 'Restricted access' );
global $_VERSION;
require_once('libraries/joomla/utilities/date.php');
$date = new JDate();
$config = new JConfig();
?>
Copyright &copy; <?php echo $date->toFormat( '%Y' ) . ' ' . $config->sitename;?>.
</div>
<div class="bottom-site-right">
Designed by <a href="http://www.mixwebtemplates.com/" title="Visit mixwebtemplates.com!" target="blank">mixwebtemplates</a>
</div>
</div>
</div>
</body>
</html>