Visualizzazione risultati 1 fino 8 di 8

Discussione: error.php

  1. #1
    Guest

    Predefinito error.php

    ho un altro problema mi dice che c'è un errore alla riga 15 di error.php..... sarebbe quella dopo 'get paramas'

    Codice PHP:
    <?php
    /**
    * @package     Joomla.Site
    * @copyright    Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
    * @license     GNU General Public License version 2 or later; see LICENSE.txt
    */

    defined('_JEXEC') or die;
    $params JFactory::getApplication()->getTemplate(true)->params;
    $showRightColumn 1;
    $showleft 0;
    $showbottom 0;

    // get params
    $color $params->get('templatecolor');
    $navposition $params->get('navposition');

    //get language and direction
    $doc JFactory::getDocument();
    $this->language $doc->language;
    $this->direction $doc->direction;
    ?>

    <!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>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />

    <meta name="language" content="<?php echo $this->language?>" />

    <title><?php echo $this->error->getCode(); ?> - <?php echo $this->title?></title>
    <?php if ($this->error->getCode()>=400 && $this->error->getCode() < 500) { ?>


    <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/system/css/system.css" type="text/css" />
    <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template?>/css/position.css" type="text/css" media="screen,projection" />
    <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template?>/css/layout.css" type="text/css" media="screen,projection" />
    <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template?>/css/print.css" type="text/css" media="Print" />
    <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template?>/css/<?php echo htmlspecialchars($color); ?>.css" type="text/css" />
    <?php
    $files 
    JHtml::_('stylesheet''templates/'.$this->template.'/css/general.css'nullfalsetrue);
    if (
    $files):
    if (!
    is_array($files)):
    $files = array($files);
    endif;
    foreach(
    $files as $file):
    ?>
    <link rel="stylesheet" href="<?php echo $file;?>" type="text/css" />
    <?php
    endforeach;
    endif;
    ?>
    <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template?>/css/<?php echo htmlspecialchars($color); ?>.css" type="text/css" />
    <?php if ($this->direction == 'rtl') : ?>
    <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template?>/css/template_rtl.css" type="text/css" />
    <?php if (file_exists(JPATH_SITE '/templates/'.$this->template.'/css/' $color '_rtl.css')) :?>
    <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template?>/css/<?php echo $color ?>_rtl.css" type="text/css" />
    <?php endif; ?>
    <?php 
    endif; ?>
    <!--[if lte IE 6]>
    <link href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template?>/css/ieonly.css" rel="stylesheet" type="text/css" />
    <![endif]-->
    <!--[if IE 7]>
    <link href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template?>/css/ie7only.css" rel="stylesheet" type="text/css" />
    <![endif]-->


    <style type="text/css">
    <!--
    #errorboxbody
    {margin:30px}
    #errorboxbody h2
    {font-weight:normal;
    font-size:1.5em}
    #searchbox
    {background:#eee;
    padding:10px;
    margin-top:20px;
    border:solid 1px #ddd
    }
    -->
    </style>

    </head>

    <body>


    <div id="all">
    <div id="back">

    <div id="header">

    <div class="logoheader">
    <?php
    $params 
    JFactory::getApplication()->getTemplate(true)->params;
    $logo $params->get('logo');
    ?>

    <?php jimport'joomla.application.module.helper' ); ?>

    <h1 id="logo">

    <?php if ($logo): ?>
    <img src="<?php echo $this->baseurl ?>/<?php echo htmlspecialchars($logo); ?>" alt="<?php echo htmlspecialchars($params->get('sitetitle'));?>" />
    <?php endif;?>
    <?php 
    if (!$logo ): ?>
    <?php 
    echo htmlspecialchars($params->get('sitetitle'));?>
    <?php 
    endif; ?>
    <span class="header1">
    <?php echo htmlspecialchars($params->get('sitedescription'));?>
    </span></h1>
    </div><!-- end logoheader -->

    <ul class="skiplinks">
    <li><a href="#wrapper2" class="u2"><?php echo JText::_('TPL_BEEZ2_SKIP_TO_ERROR_CONTENT'); ?></a></li>
    <li><a href="#nav" class="u2"><?php echo JText::_('TPL_BEEZ2_ERROR_JUMP_TO_NAV'); ?></a></li>

    </ul>
    <div id="line"></div>



    </div><!-- end header -->

    <div id="contentarea2" >


    <div class="left1" id="nav">

    <h2 class="unseen"><?php echo JText::_('TPL_BEEZ2_NAVIGATION'); ?></h2>
    <?php $module JModuleHelper::getModule'menu' );
    echo 
    JModuleHelper::renderModule$module);    ?>

    </div>

    <!-- end navi -->
    <div id="wrapper2">
    <div id="errorboxbody">
    <h2><?php echo JText::_('JERROR_AN_ERROR_HAS_OCCURRED'); ?><br />
    <?php echo JText::_('JERROR_LAYOUT_PAGE_NOT_FOUND'); ?></h2>
    <?php if (JModuleHelper::getModule'search' )) : ?>
    <div id="searchbox">
    <h3 class="unseen"><?php echo JText::_('TPL_BEEZ2_SEARCH'); ?></h3>
    <p><?php echo JText::_('JERROR_LAYOUT_SEARCH'); ?></p>
    <?php $module JModuleHelper::getModule'search' );
    echo 
    JModuleHelper::renderModule$module);    ?>
    </div>
    <?php endif; ?>
    <div>
    <p><a href="<?php echo $this->baseurl?>/index.php" title="<?php echo JText::_('JERROR_LAYOUT_GO_TO_THE_HOME_PAGE'); ?>"><?php echo JText::_('JERROR_LAYOUT_HOME_PAGE'); ?></a></p>
    </div>

    <h3><?php echo JText::_('JERROR_LAYOUT_PLEASE_CONTACT_THE_SYSTEM_ ADMINISTRATOR'); ?></h3>

    <h2>#<?php echo $this->error->getCode() ;?>&nbsp;<?php echo $this->error->getMessage();?></h2> <br />


    </div><!-- end wrapper -->
    </div><!-- end contentarea -->

    <?php if ($this->debug) :
    echo 
    $this->renderBacktrace();
    endif; 
    ?>


    </div> <!--end all -->

    </div>
    </div>
    <div id="footer-outer">

    <div id="footer-sub">


    <div id="footer">
    <p>
    <?php echo JText::_('TPL_BEEZ2_POWERED_BY');?> <a href="http://www.joomla.org/">Joomla!®</a>
    </p>

    </div><!-- end footer -->
    </div><!-- end footer-sub -->

    </div>



    </body>
    </html>
    <?php } else { ?>
    <?php
    if (!isset($this->error)) {
    $this->error JError::raiseWarning(404JText::_('JERROR_ALERTNOAUTHOR'));
    $this->debug false;
    }
    ?>
    <link rel="stylesheet" href="<?php echo $this->baseurl?>/templates/system/css/error.css" type="text/css" />
    </head>
    <body>
    <div class="error">
    <div id="outline">
    <div id="errorboxoutline">
    <div id="errorboxheader"> <?php echo $this->title?></div>
    <div id="errorboxbody">
    <p><strong><?php echo JText::_('JERROR_LAYOUT_NOT_ABLE_TO_VISIT'); ?></strong></p>
    <ol>
    <li><?php echo JText::_('JERROR_LAYOUT_AN_OUT_OF_DATE_BOOKMARK_FA VOURITE'); ?></li>
    <li><?php echo JText::_('JERROR_LAYOUT_SEARCH_ENGINE_OUT_OF_DATE_ LISTING'); ?></li>
    <li><?php echo JText::_('JERROR_LAYOUT_MIS_TYPED_ADDRESS'); ?></li>
    <li><?php echo JText::_('JERROR_LAYOUT_YOU_HAVE_NO_ACCESS_TO_THIS _PAGE'); ?></li>
    <li><?php echo JText::_('JERROR_LAYOUT_REQUESTED_RESOURCE_WAS_NOT _FOUND'); ?></li>
    <li><?php echo JText::_('JERROR_LAYOUT_ERROR_HAS_OCCURRED_WHILE_P ROCESSING_YOUR_REQUEST'); ?></li>
    </ol>
    <p><strong><?php echo JText::_('JERROR_LAYOUT_PLEASE_TRY_ONE_OF_THE_FOLL OWING_PAGES'); ?></strong></p>

    <ul>
    <li><a href="<?php echo $this->baseurl?>/index.php" title="<?php echo JText::_('JERROR_LAYOUT_GO_TO_THE_HOME_PAGE'); ?>"><?php echo JText::_('JERROR_LAYOUT_HOME_PAGE'); ?></a></li>
    <li><a href="<?php echo $this->baseurl?>/index.php?option=com_search" title="<?php echo JText::_('JERROR_LAYOUT_SEARCH_PAGE'); ?>"><?php echo JText::_('JERROR_LAYOUT_SEARCH_PAGE'); ?></a></li>

    </ul>

    <p><?php echo JText::_('JERROR_LAYOUT_PLEASE_CONTACT_THE_SYSTEM_ ADMINISTRATOR'); ?>.</p>
    <div id="techinfo">
    <p><?php echo $this->error->getMessage(); ?></p>
    <p>
    <?php if ($this->debug) :
    echo 
    $this->renderBacktrace();
    endif; 
    ?>
    </p>
    </div>
    </div>
    </div>
    </div>
    </div>
    </body>
    </html>


    <?php ?>
    Ultima modifica di alemoppo : 29-09-2013 alle ore 21.22.32 Motivo: +tag [php]

  2. #2
    L'avatar di miki92
    miki92 non è connesso AlterGuru 2500
    Data registrazione
    21-04-2007
    Residenza
    Procida (NA)
    Messaggi
    4,224

    Predefinito

    Puoi postare il testo dell'errore?
    Apprezzi l'aiuto? Offrimi un caffè!

  3. #3
    Guest

    Predefinito

    certo: Fatal error: Call to a member function get() on a non-object in /membri/viaggip/templates/beez_20/error.php on line 15

  4. #4
    L'avatar di miki92
    miki92 non è connesso AlterGuru 2500
    Data registrazione
    21-04-2007
    Residenza
    Procida (NA)
    Messaggi
    4,224

    Predefinito

    Puoi indicare che versione di PHP e MySQL hai in uso attualmente?
    Apprezzi l'aiuto? Offrimi un caffè!

  5. #5
    Guest

    Predefinito

    scusa.... non sono molto bravo.... come faccio a sapere la versione ??

  6. #6
    Guest

    Predefinito

    ok,... php è 5.2.17

  7. #7
    Guest

    Predefinito

    di mysql dal phpinfo mi da questo...
    mysql

    MySQL Support enabled
    Active Persistent Links 0
    Active Links 0
    Client API version 5.1.49
    MYSQL_MODULE_TYPE external
    MYSQL_SOCKET /var/lib/mysql/mysql.sock
    MYSQL_INCLUDE -I/usr/include/mysql
    MYSQL_LIBS -L/usr/lib -lmysqlclient

    Directive Local Value Master Value
    av.mysql_die_on_maxqueries_err On On
    mysql.allow_persistent Off On
    mysql.connect_timeout 15 15
    mysql.default_host no value no value
    mysql.default_password no value no value
    mysql.default_port no value no value
    mysql.default_socket no value no value
    mysql.default_user no value no value
    mysql.max_links Unlimited Unlimited
    mysql.max_persistent Unlimited Unlimited
    mysql.trace_mode Off Off

  8. #8
    Guest

    Predefinito

    Citazione Originalmente inviato da miki92 Visualizza messaggio
    Puoi indicare che versione di PHP e MySQL hai in uso attualmente?
    ok,... php è 5.2.17 mysql 5.1.49

Regole di scrittura

  • Non puoi creare nuove discussioni
  • Non puoi rispondere ai messaggi
  • Non puoi inserire allegati.
  • Non puoi modificare i tuoi messaggi
  •