- Posts: 23
- Thank you received: 0
Problème avec un thème, le site ne s'affiche pas..
15 years 11 months ago - 15 years 11 months ago #22183
by raphaton
Problème avec un thème, le site ne s'affiche pas.. was created by raphaton
Bonsoir, j'ai installer un thème en même temps que joomla sur mon serveur. Il y a apparemment un problème de syntaxe avec un fichier php, mais là dessus je suis entièrement pommé :S . Voici ce qui est affiché :
Parse error: syntax error, unexpected '<' in /homez.99/actualut/www/new/templates/yoo_pure/warp/warp.php on line 156
Le problème vient donc de cette ligne : }<?php
Très courte :blush: Maintenant si quelqu'un pouvait m'aider.. :dieu
Merci d'avance :kiss:
Voici le fichier en entier :
Parse error: syntax error, unexpected '<' in /homez.99/actualut/www/new/templates/yoo_pure/warp/warp.php on line 156
Le problème vient donc de cette ligne : }<?php
Très courte :blush: Maintenant si quelqu'un pouvait m'aider.. :dieu
Merci d'avance :kiss:
Voici le fichier en entier :
Warning: Spoiler!
<?php
/**
* @package Warp Theme Framework
* @file warp.php
* @version 5.5.9
* @author YOOtheme www.yootheme.com
* @copyright Copyright 2007 - 2010 YOOtheme GmbH
* @license YOOtheme Proprietary Use License ( www.yootheme.com/license )
*/
// init vars
$path = dirname(__FILE__);
// load classes
require_once($path.'/classes/object.php');
require_once($path.'/classes/helper.php');
require_once($path.'/helpers/path.php');
class Warp extends WarpObject {
/* helpers */
var $_helpers = array();
/* dynamic preset selector name */
var $preset_var = 'preset';
/*
Function: getInstance
Retrieve warp instance
Returns:
Template
*/
function &getInstance() {
static $instance;
if (!isset($instance)) {
$instance = new Warp();
$path = dirname(__FILE__);
// add default helper
$instance->addHelper(new WarpHelperPath());
// set default paths
$instance->path->register($path, 'warp');
$instance->path->register($path.'/helpers', 'helpers');
$instance->path->register($path.'/libraries', 'lib');
$instance->path->register($path.'/css', 'css');
$instance->path->register($path.'/js', 'js');
$instance->path->register($path.'/layouts', 'layouts');
$instance->path->register($path.'/menus', 'menu');
$instance->path->register(dirname($path), 'template');
$instance->loadHelper(array('legacy', 'template', 'menu'));
}
return $instance;
}
/*
Function: getHelper
Retrieve a helper
Parameters:
$name - Helper name
*/
function &getHelper($name) {
// try to load helper, if not found
if (!isset($this->_helpers[$name])) {
$this->loadHelper($name);
}
// get helper
if (isset($this->_helpers[$name])) {
return $this->_helpers[$name];
}
return null;
}
/*
Function: addHelper
Adds a helper
Parameters:
$helper - Helper object
$alias - Helper alias (optional)
*/
function addHelper(&$helper, $alias = null) {
// add to helpers
$name = $helper->getName();
$this->_helpers[$name] =& $helper;
// add alias
if (!empty($alias)) {
$this->_helpers[$alias] =& $helper;
}
// compatibility for PHP4
if (version_compare(PHP_VERSION, '5.0', '<')) {
$this->$name =& $helper;
if (!empty($alias)) $this->$alias =& $helper;
}
// execute callbacks
if (isset($helper->callbacks) && is_array($helper->callbacks)) {
foreach ($helper->callbacks as $method) {
$helper->$method();
}
}
}
/*
Function: loadHelper
Load helper from path
Parameters:
$helpers - Helper names
$prefix - Helper class prefix
*/
function loadHelper($helpers, $prefix = 'WarpHelper') {
$helpers = (array) $helpers;
foreach ($helpers as $name) {
$class = $prefix.$name;
// autoload helper class
if (!class_exists($class) && ($file = $this->path->path('helpers:'.$name.'.php'))) {
require_once($file);
}
// add helper, if not exists
if (!isset($this->_helpers[$name])) {
$this->addHelper(new $class());
}
}
}
/*
Function: __get
Retrieve a helper
Parameters:
$name - Helper name
Returns:
Mixed
*/
function __get($name) {
return $this->getHelper($name);
}
}<?php
/**
* @package Warp Theme Framework
* @file warp.php
* @version 5.5.9
* @author YOOtheme www.yootheme.com
* @copyright Copyright 2007 - 2010 YOOtheme GmbH
* @license YOOtheme Proprietary Use License ( www.yootheme.com/license )
*/
// init vars
$path = dirname(__FILE__);
// load classes
require_once($path.'/classes/object.php');
require_once($path.'/classes/helper.php');
require_once($path.'/helpers/path.php');
class Warp extends WarpObject {
/* helpers */
var $_helpers = array();
/* dynamic preset selector name */
var $preset_var = 'preset';
/*
Function: getInstance
Retrieve warp instance
Returns:
Template
*/
function &getInstance() {
static $instance;
if (!isset($instance)) {
$instance = new Warp();
$path = dirname(__FILE__);
// add default helper
$instance->addHelper(new WarpHelperPath());
// set default paths
$instance->path->register($path, 'warp');
$instance->path->register($path.'/helpers', 'helpers');
$instance->path->register($path.'/libraries', 'lib');
$instance->path->register($path.'/css', 'css');
$instance->path->register($path.'/js', 'js');
$instance->path->register($path.'/layouts', 'layouts');
$instance->path->register($path.'/menus', 'menu');
$instance->path->register(dirname($path), 'template');
$instance->loadHelper(array('legacy', 'template', 'menu'));
}
return $instance;
}
/*
Function: getHelper
Retrieve a helper
Parameters:
$name - Helper name
*/
function &getHelper($name) {
// try to load helper, if not found
if (!isset($this->_helpers[$name])) {
$this->loadHelper($name);
}
// get helper
if (isset($this->_helpers[$name])) {
return $this->_helpers[$name];
}
return null;
}
/*
Function: addHelper
Adds a helper
Parameters:
$helper - Helper object
$alias - Helper alias (optional)
*/
function addHelper(&$helper, $alias = null) {
// add to helpers
$name = $helper->getName();
$this->_helpers[$name] =& $helper;
// add alias
if (!empty($alias)) {
$this->_helpers[$alias] =& $helper;
}
// compatibility for PHP4
if (version_compare(PHP_VERSION, '5.0', '<')) {
$this->$name =& $helper;
if (!empty($alias)) $this->$alias =& $helper;
}
// execute callbacks
if (isset($helper->callbacks) && is_array($helper->callbacks)) {
foreach ($helper->callbacks as $method) {
$helper->$method();
}
}
}
/*
Function: loadHelper
Load helper from path
Parameters:
$helpers - Helper names
$prefix - Helper class prefix
*/
function loadHelper($helpers, $prefix = 'WarpHelper') {
$helpers = (array) $helpers;
foreach ($helpers as $name) {
$class = $prefix.$name;
// autoload helper class
if (!class_exists($class) && ($file = $this->path->path('helpers:'.$name.'.php'))) {
require_once($file);
}
// add helper, if not exists
if (!isset($this->_helpers[$name])) {
$this->addHelper(new $class());
}
}
}
/*
Function: __get
Retrieve a helper
Parameters:
$name - Helper name
Returns:
Mixed
*/
function __get($name) {
return $this->getHelper($name);
}
}
/**
* @package Warp Theme Framework
* @file warp.php
* @version 5.5.9
* @author YOOtheme www.yootheme.com
* @copyright Copyright 2007 - 2010 YOOtheme GmbH
* @license YOOtheme Proprietary Use License ( www.yootheme.com/license )
*/
// init vars
$path = dirname(__FILE__);
// load classes
require_once($path.'/classes/object.php');
require_once($path.'/classes/helper.php');
require_once($path.'/helpers/path.php');
class Warp extends WarpObject {
/* helpers */
var $_helpers = array();
/* dynamic preset selector name */
var $preset_var = 'preset';
/*
Function: getInstance
Retrieve warp instance
Returns:
Template
*/
function &getInstance() {
static $instance;
if (!isset($instance)) {
$instance = new Warp();
$path = dirname(__FILE__);
// add default helper
$instance->addHelper(new WarpHelperPath());
// set default paths
$instance->path->register($path, 'warp');
$instance->path->register($path.'/helpers', 'helpers');
$instance->path->register($path.'/libraries', 'lib');
$instance->path->register($path.'/css', 'css');
$instance->path->register($path.'/js', 'js');
$instance->path->register($path.'/layouts', 'layouts');
$instance->path->register($path.'/menus', 'menu');
$instance->path->register(dirname($path), 'template');
$instance->loadHelper(array('legacy', 'template', 'menu'));
}
return $instance;
}
/*
Function: getHelper
Retrieve a helper
Parameters:
$name - Helper name
*/
function &getHelper($name) {
// try to load helper, if not found
if (!isset($this->_helpers[$name])) {
$this->loadHelper($name);
}
// get helper
if (isset($this->_helpers[$name])) {
return $this->_helpers[$name];
}
return null;
}
/*
Function: addHelper
Adds a helper
Parameters:
$helper - Helper object
$alias - Helper alias (optional)
*/
function addHelper(&$helper, $alias = null) {
// add to helpers
$name = $helper->getName();
$this->_helpers[$name] =& $helper;
// add alias
if (!empty($alias)) {
$this->_helpers[$alias] =& $helper;
}
// compatibility for PHP4
if (version_compare(PHP_VERSION, '5.0', '<')) {
$this->$name =& $helper;
if (!empty($alias)) $this->$alias =& $helper;
}
// execute callbacks
if (isset($helper->callbacks) && is_array($helper->callbacks)) {
foreach ($helper->callbacks as $method) {
$helper->$method();
}
}
}
/*
Function: loadHelper
Load helper from path
Parameters:
$helpers - Helper names
$prefix - Helper class prefix
*/
function loadHelper($helpers, $prefix = 'WarpHelper') {
$helpers = (array) $helpers;
foreach ($helpers as $name) {
$class = $prefix.$name;
// autoload helper class
if (!class_exists($class) && ($file = $this->path->path('helpers:'.$name.'.php'))) {
require_once($file);
}
// add helper, if not exists
if (!isset($this->_helpers[$name])) {
$this->addHelper(new $class());
}
}
}
/*
Function: __get
Retrieve a helper
Parameters:
$name - Helper name
Returns:
Mixed
*/
function __get($name) {
return $this->getHelper($name);
}
}<?php
/**
* @package Warp Theme Framework
* @file warp.php
* @version 5.5.9
* @author YOOtheme www.yootheme.com
* @copyright Copyright 2007 - 2010 YOOtheme GmbH
* @license YOOtheme Proprietary Use License ( www.yootheme.com/license )
*/
// init vars
$path = dirname(__FILE__);
// load classes
require_once($path.'/classes/object.php');
require_once($path.'/classes/helper.php');
require_once($path.'/helpers/path.php');
class Warp extends WarpObject {
/* helpers */
var $_helpers = array();
/* dynamic preset selector name */
var $preset_var = 'preset';
/*
Function: getInstance
Retrieve warp instance
Returns:
Template
*/
function &getInstance() {
static $instance;
if (!isset($instance)) {
$instance = new Warp();
$path = dirname(__FILE__);
// add default helper
$instance->addHelper(new WarpHelperPath());
// set default paths
$instance->path->register($path, 'warp');
$instance->path->register($path.'/helpers', 'helpers');
$instance->path->register($path.'/libraries', 'lib');
$instance->path->register($path.'/css', 'css');
$instance->path->register($path.'/js', 'js');
$instance->path->register($path.'/layouts', 'layouts');
$instance->path->register($path.'/menus', 'menu');
$instance->path->register(dirname($path), 'template');
$instance->loadHelper(array('legacy', 'template', 'menu'));
}
return $instance;
}
/*
Function: getHelper
Retrieve a helper
Parameters:
$name - Helper name
*/
function &getHelper($name) {
// try to load helper, if not found
if (!isset($this->_helpers[$name])) {
$this->loadHelper($name);
}
// get helper
if (isset($this->_helpers[$name])) {
return $this->_helpers[$name];
}
return null;
}
/*
Function: addHelper
Adds a helper
Parameters:
$helper - Helper object
$alias - Helper alias (optional)
*/
function addHelper(&$helper, $alias = null) {
// add to helpers
$name = $helper->getName();
$this->_helpers[$name] =& $helper;
// add alias
if (!empty($alias)) {
$this->_helpers[$alias] =& $helper;
}
// compatibility for PHP4
if (version_compare(PHP_VERSION, '5.0', '<')) {
$this->$name =& $helper;
if (!empty($alias)) $this->$alias =& $helper;
}
// execute callbacks
if (isset($helper->callbacks) && is_array($helper->callbacks)) {
foreach ($helper->callbacks as $method) {
$helper->$method();
}
}
}
/*
Function: loadHelper
Load helper from path
Parameters:
$helpers - Helper names
$prefix - Helper class prefix
*/
function loadHelper($helpers, $prefix = 'WarpHelper') {
$helpers = (array) $helpers;
foreach ($helpers as $name) {
$class = $prefix.$name;
// autoload helper class
if (!class_exists($class) && ($file = $this->path->path('helpers:'.$name.'.php'))) {
require_once($file);
}
// add helper, if not exists
if (!isset($this->_helpers[$name])) {
$this->addHelper(new $class());
}
}
}
/*
Function: __get
Retrieve a helper
Parameters:
$name - Helper name
Returns:
Mixed
*/
function __get($name) {
return $this->getHelper($name);
}
}
Last edit: 15 years 11 months ago by raphaton.
Please Connectez-vous or Create an account to join the conversation.
- lotfi_universal
-
- Offline
- V.I.P
-
15 years 11 months ago #22184
by lotfi_universal
Pas de support en MP sans y être invité.
Merci de vous conformer aux règles du forum
Replied by lotfi_universal on topic Re: Problème avec un thème, le site ne s'affiche pas..
bonjour,
Quel est la version de php utilisé sur ton serveur? et chez qui ton site est héberge?
Quel est la version de php utilisé sur ton serveur? et chez qui ton site est héberge?
Pas de support en MP sans y être invité.
Merci de vous conformer aux règles du forum
Please Connectez-vous or Create an account to join the conversation.
15 years 11 months ago - 15 years 11 months ago #22189
by raphaton
Replied by raphaton on topic Re: Problème avec un thème, le site ne s'affiche pas..
Je suis hébergé par OVH. Pour la version php, où peut on la trouver ? J'utilise FileZila.
Last edit: 15 years 11 months ago by raphaton.
Please Connectez-vous or Create an account to join the conversation.
15 years 11 months ago - 15 years 11 months ago #22196
by lavsteph
Replied by lavsteph on topic Re: Problème avec un thème, le site ne s'affiche pas..
Bonsoir,
pour avoir les informations, dans la toolbar de joomla
pour avoir les informations, dans la toolbar de joomla
Attachment info-systeme.png not found
Last edit: 15 years 11 months ago by lavsteph.
Please Connectez-vous or Create an account to join the conversation.
15 years 11 months ago #22198
by raphaton
Replied by raphaton on topic Re: Problème avec un thème, le site ne s'affiche pas..
Trouvé ! 
PHP Version: 5.2.14

PHP Version: 5.2.14
Please Connectez-vous or Create an account to join the conversation.
15 years 11 months ago #22203
by raphaton
Replied by raphaton on topic Re: Problème avec un thème, le site ne s'affiche pas..
Une idée du soucis
?
Please Connectez-vous or Create an account to join the conversation.
Time to create page: 0.185 seconds
