|
Re: xoops 2.5.1. |
|
Supporter Xoops
Inscrit: 09/01/2005 13:37
De Breizh
|
Bizarre sous Mini Server ou Uniform Server, je n'ai pas de souci avec ces modules
Posté le : 29/07/2011 00:08
|
La connaissance s'accroît quand on la partage ...
|
|
Re: xoops 2.5.1. |
|
Semi pro
Inscrit: 26/07/2011 14:05
De Fleurus (W-B) (Belgique)
|
Citation :Kris a écrit : Bizarre sous Mini Server ou Uniform Server, je n'ai pas de souci avec ces modules Bonjour à tous, Ben moi non plus sous wampeserver je n'est rencontrer aucun soucis pour installer tous mes modules et la surpris quand jais placer xoops 2.5.1 en ligne il y beaucoup de mes modules qui ne fonctionne pas. pour revenir a mon problème de page blanche avec publisher il y a pas de solution je ne vais quand même pas devoir rétrograder de version.
Posté le : 29/07/2011 09:30
|
|
|
Re: xoops 2.5.1. |
|
Semi pro
Inscrit: 26/07/2011 14:05
De Fleurus (W-B) (Belgique)
|
Même avec le modules eXtCal 2.2.2 jais une page blanche, il y a quand même une solution a se problème de page blanche.
Posté le : 29/07/2011 11:08
|
|
|
Re: xoops 2.5.1. |
|
Semi pro
Inscrit: 13/12/2004 11:28
De Lyon
|
Bonjour,
Les pages apparaissent surement a cause de la version de PHP installer chez votre hébergeur. Pour corriger ce probleme, il faut activer le PHP5 chez votre hébergeur en passant soit par votre console d'administration, soit en passant par un .htaccess a la racine de XOOPS.
MusS
Posté le : 29/07/2011 12:01
|
|
|
Re: xoops 2.5.1. |
|
Semi pro
Inscrit: 26/07/2011 14:05
De Fleurus (W-B) (Belgique)
|
Citation :MusS a écrit : Bonjour,
Les pages apparaissent surement a cause de la version de PHP installer chez votre hébergeur. Pour corriger ce probleme, il faut activer le PHP5 chez votre hébergeur en passant soit par votre console d'administration, soit en passant par un .htaccess a la racine de XOOPS.
MusS Bonjour MusS, Je suis en PHP5. Et l'installation est Neuve Version de XOOPS XOOPS 2.5.1 Version de PHP 5.3.6 Version de MySQL 5.0.51a
Posté le : 29/07/2011 13:00
|
|
|
Re: xoops 2.5.1. |
|
Supporter Xoops
Inscrit: 09/01/2005 13:37
De Breizh
|
Regardes si quelque chose comme cela ne résoud pas ton problème sur ces modules -> https://www.frxoops.org/modules/newbb/ ... p?topic_id=34182&forum=45Mais test auparavant en local avec du php 5.3.6
Posté le : 29/07/2011 13:17
|
La connaissance s'accroît quand on la partage ...
|
|
Re: xoops 2.5.1. |
|
Semi pro
Inscrit: 26/07/2011 14:05
De Fleurus (W-B) (Belgique)
|
Citation :Je ne comprent pas ce que je dois modifier la dedant si vous pouvez me dire ce que je dois modifier voici le ce que jais merci
<?php
/**
* Xoops Logger handlers - component main class file
*
* You may not change or alter any portion of this comment or credits
* of supporting developers from this source code or any supporting source code
* which is considered copyrighted (c) material of the original comment or credit authors.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*
* @copyright The XOOPS Project http://sourceforge.net/projects/xoops/
* @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html)
* @package kernel
* @subpackage logger
* @since 2.3.0
* @author Kazumi Ono <onokazu@xoops.org>
* @author Skalpa Keo <skalpa@xoops.org>
* @author Taiwen Jiang <phppp@users.sourceforge.net>
* @version $Id$
*
* @todo Not well written, just keep as it is. Refactored in 3.0
*/
defined('XOOPS_ROOT_PATH') or die('Restricted access');
/**
* Collects information for a page request
*
* Records information about database queries, blocks, and execution time
* and can display it as HTML. It also catches php runtime errors.
*
* @package kernel
*/
class XoopsLogger
{
/**
* *#@+
*
* @var array
*/
var $queries = array();
var $blocks = array();
var $extra = array();
var $logstart = array();
var $logend = array();
var $errors = array();
var $deprecated = array();
/**
* *#@-
*/
var $usePopup = false;
var $activated = true;
/**
* *@access protected
*/
var $renderingEnabled = false;
/**
* XoopsLogger::__construct()
*/
function __construct()
{
}
/**
* XoopsLogger::XoopsLogger()
*/
function XoopsLogger()
{
}
/**
* Deprecated, use getInstance() instead
*/
function &instance()
{
return XoopsLogger::getInstance();
}
/**
* Get a reference to the only instance of this class
*
* @return object XoopsLogger reference to the only instance
*/
function &getInstance()
{
static $instance;
if (!isset($instance)) {
$instance = new XoopsLogger();
// Always catch errors, for security reasons
set_error_handler('XoopsErrorHandler_HandleError');
}
return $instance;
}
/**
* Enable logger output rendering
* When output rendering is enabled, the logger will insert its output within the page content.
* If the string <!--{xo-logger-output}--> is found in the page content, the logger output will
* replace it, otherwise it will be inserted after all the page output.
*/
function enableRendering()
{
if (!$this->renderingEnabled) {
ob_start(array(&$this , 'render'));
$this->renderingEnabled = true;
}
}
/**
* Returns the current microtime in seconds.
*
* @return float
*/
function microtime()
{
$now = explode(' ', microtime());
return (float) $now[0] + (float) $now[1];
}
/**
* Start a timer
*
* @param string $name name of the timer
*/
function startTime($name = 'XOOPS')
{
if ($this->activated)
$this->logstart[$name] = $this->microtime();
}
/**
* Stop a timer
*
* @param string $name name of the timer
*/
function stopTime($name = 'XOOPS')
{
if ($this->activated)
$this->logend[$name] = $this->microtime();
}
/**
* Log a database query
*
* @param string $sql SQL string
* @param string $error error message (if any)
* @param int $errno error number (if any)
*/
function addQuery($sql, $error = null, $errno = null, $query_time = null)
{
if ($this->activated)
$this->queries[] = array('sql' => $sql , 'error' => $error , 'errno' => $errno, 'query_time' => $query_time);
}
/**
* Log display of a block
*
* @param string $name name of the block
* @param bool $cached was the block cached?
* @param int $cachetime cachetime of the block
*/
function addBlock($name, $cached = false, $cachetime = 0)
{
if ($this->activated)
$this->blocks[] = array('name' => $name , 'cached' => $cached , 'cachetime' => $cachetime);
}
/**
* Log extra information
*
* @param string $name name for the entry
* @param int $msg text message for the entry
*/
function addExtra($name, $msg)
{
if ($this->activated)
$this->extra[] = array('name' => $name , 'msg' => $msg);
}
/**
* Log messages for deprecated functions
*
* @deprecated
* @param string $name name for the entry
* @param int $msg text message for the entry
*/
function addDeprecated($msg)
{
if ($this->activated)
$this->deprecated[] = $msg;
}
/**
* Error handling callback (called by the zend engine)
*/
function handleError($errno, $errstr, $errfile, $errline)
{
if ($this->activated && ($errno & error_reporting())) {
// NOTE: we only store relative pathnames
$this->errors[] = compact('errno', 'errstr', 'errfile', 'errline');
}
if ($errno == E_USER_ERROR) {
$trace = true;
if (substr($errstr, 0, '8') == 'notrace:') {
$trace = false;
$errstr = substr($errstr, 8);
}
echo sprintf(_XOOPS_FATAL_MESSAGE, $errstr);
if ($trace && function_exists('debug_backtrace')) {
echo "<div style='color:#f0f0f0;background-color:#f0f0f0'>" . _XOOPS_FATAL_BACKTRACE . ":<br />";
$trace = debug_backtrace();
array_shift($trace);
foreach ($trace as $step) {
if (isset($step['file'])) {
echo $this->sanitizePath($step['file']);
echo ' (' . $step['line'] . ")n<br />";
}
}
echo '</div>';
}
exit();
}
}
/**
*
* @access protected
*/
function sanitizePath($path)
{
$path = str_replace(array('\' , XOOPS_ROOT_PATH , str_replace('\', '/', realpath(XOOPS_ROOT_PATH))), array('/' , '' , ''), $path);
return $path;
}
/**
* Output buffering callback inserting logger dump in page output
*/
function render($output)
{
global $xoopsUser;
if (!$this->activated) {
return $output;
}
$log = $this->dump($this->usePopup ? 'popup' : '');
$this->renderingEnabled = $this->activated = false;
$pattern = '<!--{xo-logger-output}-->';
$pos = strpos($output, $pattern);
if ($pos !== false) {
return substr($output, 0, $pos) . $log . substr($output, $pos + strlen($pattern));
} else {
return $output . $log;
}
}
/**
* *#@+
*
* @protected
*/
function dump($mode = '')
{
include XOOPS_ROOT_PATH . '/class/logger/render.php';
return $ret;
}
/**
* get the current execution time of a timer
*
* @param string $name name of the counter
* @param bool $unset removes counter from global log
* @return float current execution time of the counter
*/
function dumpTime($name = 'XOOPS', $unset = false)
{
if (!$this->activated)
return null;
if (!isset($this->logstart[$name])) {
return 0;
}
$stop = isset($this->logend[$name]) ? $this->logend[$name] : $this->microtime();
$start = $this->logstart[$name];
if ($unset) {
unset($this->logstart[$name]);
}
return $stop - $start;
}
/**
* XoopsLogger::triggerError()
*
* @deprecated
* @param integer $errNo
* @param string $errStr
* @param string $errFile
* @param string $errLine
* @return
*/
function triggerError($errkey = 0, $errStr = '', $errFile = '', $errLine = '', $errNo = 0)
{
if (!empty($errStr)) {
$errStr = sprintf($errStr,$errkey );
}
$errFile = $this->sanitizePath($errFile);
$this->handleError($errNo, $errStr, $errFile, $errLine);
}
/**
* *#@+
*
* @deprecated
*/
function dumpAll()
{
return $this->dump('');
}
/**
* dnmp Blocks @deprecated
*
* @return dump
*/
function dumpBlocks()
{
return $this->dump('blocks');
}
/**
* dumpExtra @deprecated
*
* @return dimp
*/
function dumpExtra()
{
return $this->dump('extra');
}
/**
* dump Queries @deprecated
*
* @return unknown
*/
function dumpQueries()
{
return $this->dump('queries');
}
/**
* *#@-
*/
}
/**
* PHP Error handler
*
* NB: You're not supposed to call this function directly, if you dont understand why, then
* you'd better spend some time reading your PHP manual before you hurt somebody
*
* @internal : Using a function and not calling the handler method directly coz old PHP versions
* set_error_handler() have problems with the array( obj,methodname ) syntax
*/
function XoopsErrorHandler_HandleError($errNo, $errStr, $errFile, $errLine, $errContext = null)
{
// We don't want every error to come through this will help speed things up'
if ($errNo == '2048') {
return true;
}
// XOOPS should always be STRICT compliant thus the above lines makes no sense and will be removed! -- Added by Taiwen Jiang
$logger =& XoopsLogger::getInstance();
$logger->handleError($errNo, $errStr, $errFile, $errLine, $errContext);
}
?>
Posté le : 29/07/2011 14:14
|
|
|
Re: xoops 2.5.1. |
|
Supporter Xoops
Inscrit: 09/01/2005 13:37
De Breizh
|
Ce n'est pas ce fichier à modifier, mais ceux du module, en mode debug tu devrais avoir un message indiquant le fichier et la ligne à modifier
Posté le : 29/07/2011 14:27
|
La connaissance s'accroît quand on la partage ...
|
|
Re: xoops 2.5.1. |
|
Semi pro
Inscrit: 26/07/2011 14:05
De Fleurus (W-B) (Belgique)
|
Citation :Aucun Tout Erreur(s) (0) Deprécié(s) (1) Requête(s) (20) Bloc(s) (0) Extra (2) Temporisation(6) Erreur(s) Deprécié(s) XoopsEditorHandler::getList() should not be called statically.
Requête(s) 0,000952 - SET NAMES 'utf8' 0,001721 - SET SQL_BIG_SELECTS = 1 0,001704 - SELECT * FROM config WHERE (conf_modid = '0' AND conf_catid = '1') ORDER BY conf_order ASC 0,029000 - SELECT sess_data, sess_ip FROM session WHERE sess_id ='nsbigu2q31hoh01dt47k3i06d0' 0,044948 - SELECT * FROM users WHERE uid = '1' 0,218457 - SELECT * FROM modules WHERE dirname = 'system' 0,024595 - SELECT * FROM config WHERE (conf_modid = '1') ORDER BY conf_order ASC 0,013788 - SELECT * FROM modules WHERE dirname = 'protector' 0,008420 - DELETE FROM protector_access WHERE expire < UNIX_TIMESTAMP() 0,008039 - SELECT COUNT(*) FROM protector_access WHERE ip='109.88.10.237' AND request_uri='/modules/system/admin.php?fct=preferences' 0,008401 - SELECT COUNT(*) FROM protector_access WHERE ip='109.88.10.237' 0,009967 - INSERT INTO protector_access SET ip='109.88.10.237',request_uri='/modules/system/admin.php?fct=preferences',expire=UNIX_TIMESTAMP()+'60' 0,012792 - SELECT * FROM config WHERE (conf_modid = '0' AND conf_catid = '3') ORDER BY conf_order ASC 0,012952 - SELECT * FROM modules WHERE (hasadmin = '1' AND isactive = '1') ORDER BY weight ASC, mid ASC 0,005312 - SELECT * FROM modules WHERE dirname = 'news' 0,007015 - SELECT * FROM config WHERE (conf_modid = '6') ORDER BY conf_order ASC 0,007235 - SELECT * FROM bb_forums ORDER BY forum_order 0,006921 - SELECT COUNT(*) FROM catads_ads WHERE uid = '1' 0,006456 - SELECT * FROM modules WHERE dirname = 'mytube' 0,035109 - SELECT * FROM configcategory Total: 20
Bloc(s) Total: 0
Extra Fichier(s) inclu(s): 210 fichier(s) Usage de la mémoire: 2895096 bytes
Temporisation XOOPS a mis 1,431 seconde(s) pour charger XOOPS Boot a mis 0,715 seconde(s) pour charger Module init a mis 0,124 seconde(s) pour charger XOOPS output init a mis 0,072 seconde(s) pour charger Module display a mis 0,495 seconde(s) pour charger Page rendering a mis 0,025 seconde(s) pour charger Voici ce que donne le mode debug.
Posté le : 29/07/2011 14:40
|
|
|
Re: xoops 2.5.1. |
|
Supporter Xoops
Inscrit: 09/01/2005 13:37
De Breizh
|
bon, on va traiter cela un par un - peux tu ouvrir un sujet par problème car là on est en train de polluer
ensuite dans le nouveau sujet, explique bien ce que tu fais et les différents messages d'erreurs que tu peux avoir : lors de l'installation du module, lors de l'affichage d'une de ses pages d'administration
Posté le : 29/07/2011 14:49
|
La connaissance s'accroît quand on la partage ...
|
Vous pouvez voir les sujets.
Vous ne pouvez pas débuter de nouveaux sujets.
Vous ne pouvez pas répondre aux contributions.
Vous ne pouvez pas éditer vos contributions.
Vous ne pouvez pas effacez vos contributions.
Vous ne pouvez pas ajouter de nouveaux sondages.
Vous ne pouvez pas voter en sondage.
Vous ne pouvez pas attacher des fichiers à vos contributions.
Vous ne pouvez pas poster sans approbation.
|