Joomla.it Forum
Joomla! 1.5.x (versione con supporto terminato) => Joomla! 1.5 => : fragalax 19 May 2008, 17:32:51
-
ragazzi aiutatemi cosa devo fare?
ho caricato il template che ho creato per joomla 1.5 e mi da questo errore: Fatal error: Call to a member function getActive() on a non-object in /users/v/a/c/vacanzeinsella/public_html/templates/68portal/index.php on line 1
come posso risolvere?
-
questo č il codice che nella index.php
<?php
/**
* @version $Id: index.php 36 2007-10-13 21:33:27Z spook.68 $
* @package Joomla!
* @subpackage 68portal
* @copyright Copyright (c)2007 Axel Wehner. All rights reserved.
* @license GNU/GPL
**/
// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
// include the (user)settings
include_once (dirname(__FILE__).DS.'settings.php');
?>
<!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>
<jdoc:include type="head" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/system.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/general.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/layout.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/template.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/navigation.css" type="text/css" />
<?php if($this->direction == 'rtl') : ?>
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/layout-rtl.css" type="text/css" />
<?php endif; ?>
<!--[if IE]><link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/iefixes.css" type="text/css" /><![endif]-->
<style type="text/css">div#page-l { width: <?php echo $width.$unit; ?> } /* user settings */</style>
</head>
<body class="<?php echo $layout; ?>">
<!-- shadow left -->
<div id="page-l">
<!-- shadow right -->
<div id="page-r">
<!-- top header -->
<div id="top-header">
<h1>
<?php if ($menu->getActive() == $menu->getDefault()) : ?>
<img src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/logo.gif" alt="<?php echo $sitetitle; ?>" title="<?php echo $sitetitle; ?>" />
<?php else : ?>
<a href="<?php echo $this->baseurl ?>"><img src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/logo.gif" alt="<?php echo $sitetitle; ?>" title="<?php echo $sitetitle; ?>" />[/url]
<?php endif; ?>
</h1>
<jdoc:include type="modules" name="user3" />
<jdoc:include type="modules" name="user4" />
</div>
<!-- //top header -->
<!-- header -->
<div id="header">
<!-- topmodule -->
<div id="topmod" <?php if ($this->params->get('topmodule') == 'welcome') : ?>class="welcome"<?php endif; ?>>
<?php if ($this->params->get('topmodule') == 'module') : ?>
<jdoc:include type="modules" name="top" style="68portal_left" />
<?php endif; ?>
<?php if ($this->params->get('topmodule') == 'welcome') : ?>
<div class="moduletable">
<?php if ($this->params->get('welcomehead') != '') : ?>
<h3 class="welcome_heading">
<?php echo $this->params->get('welcomehead'); ?>
</h3>
<?php endif;
if ($this->params->get('welcometext') != '') : ?>
<p class="welcome_text">
<?php echo $this->params->get('welcometext'); ?>
</p>
<?php endif; ?>
</div>
<?php endif; ?>
</div>
<!-- //topmodule -->
<!-- headerimage -->
<div id="image">
<?php if ($this->params->get('slogan') != '') : ?>
<h2 id="slogan">
<?php echo $this->params->get('slogan'); ?>
</h2>
<?php endif; ?>
<?php middleBody(); ?>
<!-- content -->
<div id="content">
<?php if($this->countModules('left')) : ?>
<!-- left sidebar -->
<div id="left-sidebar">
<jdoc:include type="modules" name="left" style="68portal_left" />
</div>
<!-- //left sidebar -->
<?php endif; ?>
<!-- main -->
<div id="main">
<!-- breadcrumbs -->
<div id="breadcrumb" <?php echo $browser; ?>>
<h3 class="here"><?php echo JText::_('You are here'); ?></h3>
<jdoc:include type="module" name="breadcrumbs" />
</div>
<!-- //breadcrumbs -->
<!-- main content -->
<div id="main-content">
<?php if($this->countModules('user1 or user2')) : ?>
<!-- content modules -->
<div class="content-modules">
<?php if($this->countModules('user1')) : ?>
<div class="<?php echo $module1; ?>">
<jdoc:include type="modules" name="user1" style="68portal" />
</div>
<?php endif; ?>
<?php if($this->countModules('user2')) : ?>
<div class="<?php echo $module2; ?>">
<jdoc:include type="modules" name="user2" style="68portal" />
</div>
<?php endif; ?>
</div>
<!-- //content modules -->
<?php endif; ?>
<!-- component -->
<jdoc:include type="message" />
<jdoc:include type="component" />
<!-- //component -->
</div>
<!-- //main content -->
<?php if($this->countModules('right')) : ?>
<!-- right sidebar -->
<div id="right-sidebar">
<jdoc:include type="modules" name="right" style="68portal" />
</div>
<!-- //right sidebar -->
<?php endif; ?>
</div>
<!-- //main -->
<?php if ($this->params->get('copyright') != '' || $this->params->get('poweredby') == 'show') : ?>
<!-- footer -->
<div id="ie_clearing"> </div>
<div id="footer">
<?php if ($this->params->get('copyright') != '') : ?>
<p class="copyright">
<?php echo $this->params->get('copyright'); ?>
</p>
<?php endif; ?>
<?php if ($this->params->get('poweredby') == 'show') : ?>
<p class="joomla">
<?php echo JText::_('Powered by');?> <img src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/joomla.gif" alt="Joomla! CMS" /> (http://www.joomla.org)
<a href="http://joomlatp.com/joomla-1.5-templates/" title="Joomla! templates">Joomla 1.5 Templates[/url]
</p>
<?php endif; ?>
</div>
<!-- //footer -->
<?php endif; ?>
</div>
<!-- //content -->
<div id="page-b"> </div>
</div>
<!-- //shadow right -->
</div>
<!-- //shadow left -->
<jdoc:include type="modules" name="debug" />
</body>
</html>
-
Col template standard di Joomla da lo stesso errore?
-
no non da lo stesso errore
-
ho provato a cambiare la direzione dei file da usare e ho fatto questo nuovo index.php
lunica cosa che ora mi da l'errore nella linea 46
Fatal error: Call to a member function getActive() on a non-object in /users/v/a/c/vacanzeinsella/public_html/templates/68portal/index.php on line 46
io la cartella public_html non la ho.
questo č il nuovo index.php che ho corretto
<?php
/**
* @version $Id: index.php 36 2007-10-13 21:33:27Z spook.68 $
* @package Joomla!
* @subpackage 68portal
* @copyright Copyright (c)2007 Axel Wehner. All rights reserved.
* @license GNU/GPL
**/
// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
// include the (user)settings
include_once (dirname(__FILE__).DS.'settings.php');
?>
<!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>
<jdoc:include type="head" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/68portal/css/system.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/68portal/css/general.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/68portal/css/layout.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/68portal/css/template.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/68portal/css/navigation.css" type="text/css" />
<?php if($this->direction == 'rtl') : ?>
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/68portal/css/layout-rtl.css" type="text/css" />
<?php endif; ?>
<!--[if IE]><link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/68portal/css/iefixes.css" type="text/css" /><![endif]-->
<style type="text/css">div#page-l { width: <?php echo $width.$unit; ?> } /* user settings */</style>
</head>
<body class="<?php echo $layout; ?>">
<!-- shadow left -->
<div id="page-l">
<!-- shadow right -->
<div id="page-r">
<!-- top header -->
<div id="top-header">
<h1>
<?php if ($menu->getActive() == $menu->getDefault()) : ?>
<img src="<?php echo $this->baseurl ?>/templates/68portal/image/logo.gif" alt="<?php echo $sitetitle; ?>" title="<?php echo $sitetitle; ?>" />
<?php else : ?>
<a href="<?php echo $this->baseurl ?>"><img src="<?php echo $this->baseurl ?>/templates/68portal/image/logo.gif" alt="<?php echo $sitetitle; ?>" title="<?php echo $sitetitle; ?>" />[/url]
<?php endif; ?>
</h1>
<jdoc:include type="modules" name="user3" />
<jdoc:include type="modules" name="user4" />
</div>
<!-- //top header -->
<!-- header -->
<div id="header">
<!-- topmodule -->
<div id="topmod" <?php if ($this->params->get('topmodule') == 'welcome') : ?>class="welcome"<?php endif; ?>>
<?php if ($this->params->get('topmodule') == 'module') : ?>
<jdoc:include type="modules" name="top" style="68portal_left" />
<?php endif; ?>
<?php if ($this->params->get('topmodule') == 'welcome') : ?>
<div class="moduletable">
<?php if ($this->params->get('welcomehead') != '') : ?>
<h3 class="welcome_heading">
<?php echo $this->params->get('welcomehead'); ?>
</h3>
<?php endif;
if ($this->params->get('welcometext') != '') : ?>
<p class="welcome_text">
<?php echo $this->params->get('welcometext'); ?>
</p>
<?php endif; ?>
</div>
<?php endif; ?>
</div>
<!-- //topmodule -->
<!-- headerimage -->
<div id="image">
<?php if ($this->params->get('slogan') != '') : ?>
<h2 id="slogan">
<?php echo $this->params->get('slogan'); ?>
</h2>
<?php endif; ?>
<?php middleBody(); ?>
<!-- content -->
<div id="content">
<?php if($this->countModules('left')) : ?>
<!-- left sidebar -->
<div id="left-sidebar">
<jdoc:include type="modules" name="left" style="68portal_left" />
</div>
<!-- //left sidebar -->
<?php endif; ?>
<!-- main -->
<div id="main">
<!-- breadcrumbs -->
<div id="breadcrumb" <?php echo $browser; ?>>
<h3 class="here"><?php echo JText::_('You are here'); ?></h3>
<jdoc:include type="module" name="breadcrumbs" />
</div>
<!-- //breadcrumbs -->
<!-- main content -->
<div id="main-content">
<?php if($this->countModules('user1 or user2')) : ?>
<!-- content modules -->
<div class="content-modules">
<?php if($this->countModules('user1')) : ?>
<div class="<?php echo $module1; ?>">
<jdoc:include type="modules" name="user1" style="68portal" />
</div>
<?php endif; ?>
<?php if($this->countModules('user2')) : ?>
<div class="<?php echo $module2; ?>">
<jdoc:include type="modules" name="user2" style="68portal" />
</div>
<?php endif; ?>
</div>
<!-- //content modules -->
<?php endif; ?>
<!-- component -->
<jdoc:include type="message" />
<jdoc:include type="component" />
<!-- //component -->
</div>
<!-- //main content -->
<?php if($this->countModules('right')) : ?>
<!-- right sidebar -->
<div id="right-sidebar">
<jdoc:include type="modules" name="right" style="68portal" />
</div>
<!-- //right sidebar -->
<?php endif; ?>
</div>
<!-- //main -->
<?php if ($this->params->get('copyright') != '' || $this->params->get('poweredby') == 'show') : ?>
<!-- footer -->
<div id="ie_clearing"> </div>
<div id="footer">
<?php if ($this->params->get('copyright') != '') : ?>
<p class="copyright">
<?php echo $this->params->get('copyright'); ?>
</p>
<?php endif; ?>
<?php if ($this->params->get('poweredby') == 'show') : ?>
<p class="joomla">
<?php echo JText::_('Powered by');?> <img src="<?php echo $this->baseurl ?>/templates/68portal/images/joomla.gif" alt="Joomla! CMS" /> (http://www.joomla.org)
<a href="http://joomlatp.com/joomla-1.5-templates/" title="Joomla! templates">Joomla 1.5 Templates[/url]
</p>
<?php endif; ?>
</div>
<!-- //footer -->
<?php endif; ?>
</div>
<!-- //content -->
<div id="page-b"> </div>
</div>
<!-- //shadow right -->
</div>
<!-- //shadow left -->
<jdoc:include type="modules" name="debug" />
</body>
</html>
ora sto provando a creare una cartella public_html e trasferire il tutto li, ma so gia che non funzionerą sono sfigato.