Fork me on GitHub






Maj xoops 2.4.2
Aspirant
Inscrit: 07/01/2005 10:37
Messages: 35
Bonjour à tous,

J'ai mis à jour mon site de la version 2.0.18 à la dernière 2.4.2.

J'ai suivi la procédure de MAJ : OK le site s'affiche bien avec quelques erreurs d'accents facilement corrigible.

Donc je me connecte en tant qu'administrateur, et je désire aller sur la page administration : Rien. C'est à dire qu'il ne m'affiche qu'une page blanche.
Xoops appelle le fichier /admin.php.

Qu'ai-je oublié ?

Je précise que j'ai le dossier xosecure. Si je le vire il m'affiche des lignes d'erreurs
Warningeventcoreincludecommonstart(/homez.42/tennisan/www/xosecure/modules/protector/include/precheck.inc.php) [function.eventcoreincludecommonstart]: failed to open streamNo such file or directory in /homez.42/tennisan/www/modules/protector/preloads/core.php on line 33


Si je rajoute dans le minfile.php les lignes suivantes :
include XOOPS_TRUST_PATH.'/modules/protector/include/precheck.inc.php' ;
include 
XOOPS_TRUST_PATH.'/modules/protector/include/postcheck.inc.php' ;

Je n'atteind toujours pas ma page d'administration.
Merci pour vos conseils et désolé si ces conseils ont été à maintes fois déjà donnés.
A+
Benoit

Posté le : 11/12/2009 16:32
Partager Twitter Partagez cette article sur GG+
Re: Maj xoops 2.4.2
Semi pro
Inscrit: 10/11/2004 13:40
Messages: 1659
Bonjour Benat

- tes répertoires xoops_lib et xoops_data (ou renommés) sont ils bien indiqués dans ton fichier mainfile.php ?

exemple sur un site en local avec xoops_lib et data dans le répertoire sitelocal
// For forward compatibility
    // Physical path to the XOOPS library directory WITHOUT trailing slash
    
define('XOOPS_PATH''B:/wamp/www/sitelocal/xoops_lib');
    
// Physical path to the XOOPS datafiles (writable) directory WITHOUT trailing slash
    
define('XOOPS_VAR_PATH''B:/wamp/www/sitelocal/xoops_data');
    
// Alias of XOOPS_PATH, for compatibility, temporary solution

Posté le : 14/12/2009 07:42

PS : Toujours faire une sauvegarde des fichiers avant de les modifier !
-------------------------------------------
http://www.aideordi.com
Partager Twitter Partagez cette article sur GG+
Re: Maj xoops 2.4.2
Xoops accro
Inscrit: 20/02/2008 20:27
De Belgium
Messages: 2708
Avez vous Protector avec le 2.0.18?

Citation :
Si je rajoute dans le minfile.php les lignes suivantes :
include XOOPS_TRUST_PATH.'/modules/protector/include/precheck.inc.php' ;
include 
XOOPS_TRUST_PATH.'/modules/protector/include/postcheck.inc.php' ;
Ces lignes sont à enlever dans 2.4.2 (voir notes de release).
Avez vous suivi tous les autres directions dans ces notes?

Posté le : 14/12/2009 12:23

Salutations, Gerard.
PS: Excusez mon mauvais français.
De la bonne manière de poser les questions
Partager Twitter Partagez cette article sur GG+
Re: Maj xoops 2.4.2
Aspirant
Inscrit: 07/01/2005 10:37
Messages: 35
Bonjour,

Je n'ai toujours pas solutionné mon pb.
Hormis que j'ai l'impression de ne plus être en tant qu'administrateur.
Dans quelle table (x9a2_users ?) et donc quel champ, je peux modifier ma position.
J'ai vu que dans la table x9a2_groups j'ai bien les différents niveaux, mais je ne vois pas le champ lien dans la table x9a2_users.

Merci pour votre aide
Benoit

Posté le : 15/12/2009 11:39
Partager Twitter Partagez cette article sur GG+
Re: Maj xoops 2.4.2
Aspirant
Inscrit: 07/01/2005 10:37
Messages: 35
Je vous joins mon fichier mainfile.php. Je dois avoir des erreurs :

<?php
/**
 * XOOPS main configuration 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     http://www.fsf.org/copyleft/gpl.html& ...  public license
 * @version     $Id: mainfile.dist.php 3580 2009-09-05 23:38:38Z trabis $
 */

if (!defined("XOOPS_MAINFILE_INCLUDED")) {
    
define'XOOPS_MAINFILE_INCLUDED');

    
// XOOPS Physical Paths

    // Physical path to the XOOPS documents (served) directory WITHOUT trailing slash
    
define'XOOPS_ROOT_PATH''/homez.42/xxxxxxx/www' );

    
// For forward compatibility
    // Physical path to the XOOPS library directory WITHOUT trailing slash
//  define( 'XOOPS_PATH', '/homez.42/xxxxxx/www/xosecure' );
    
define('XOOPS_PATH''/homez.42/xxxxxxx/www/xoops_lib');
    
// Physical path to the XOOPS datafiles (writable) directory WITHOUT trailing slash
    
define'XOOPS_VAR_PATH''/homez.42/xxxxxxx/www/xoops_data' );
    
// Alias of XOOPS_PATH, for compatibility, temporary solution
    
define("XOOPS_TRUST_PATH"XOOPS_PATH);

    
// URL Association for SSL and Protocol Compatibility
    
$http 'http://';
    if (!empty(
$_SERVER['HTTPS'])) {
        
$http = ($_SERVER['HTTPS']=='on') ? 'https://' 'http://';
    }
    
define('XOOPS_PROT'$http);

    
// XOOPS Virtual Path (URL)
    // Virtual path to your main XOOPS directory WITHOUT trailing slash
    // Example: define( 'XOOPS_URL', 'http://www.tennisanglet.fr' );
    
define'XOOPS_URL''http://www.tennisanglet.fr' );

    
// Shall be handled later, don't forget!
    
define'XOOPS_CHECK_PATH');
    
// Protect against external scripts execution if safe mode is not enabled
    
if (XOOPS_CHECK_PATH && !@ini_get("safe_mode")) {
        if (
function_exists("debug_backtrace")) {
            
$xoopsScriptPath debug_backtrace();
            if (!
count($xoopsScriptPath)) {
                 die(
"XOOPS path check: this file cannot be requested directly");
            }
            
$xoopsScriptPath $xoopsScriptPath[0]["file"];
        } else {
            
$xoopsScriptPath = isset($_SERVER["PATH_TRANSLATED"]) ? $_SERVER["PATH_TRANSLATED"] :  $_SERVER["SCRIPT_FILENAME"];
        }
        if (
DIRECTORY_SEPARATOR != "/") {
            
// IIS6 may double the  chars
            
$xoopsScriptPath str_replace(strpos($xoopsScriptPath"\\"2) ? "\\" DIRECTORY_SEPARATOR"/"$xoopsScriptPath);
        }
        if (
strcasecmp(substr($xoopsScriptPath0strlen(XOOPS_ROOT_PATH)), str_replace(DIRECTORY_SEPARATOR"/"XOOPS_ROOT_PATH))) {
             exit(
"XOOPS path check: Script is not inside XOOPS_ROOT_PATH and cannot run.");
        }
    }

    
// Database
    // Choose the database to be used
    
define'XOOPS_DB_TYPE''mysql' );

    
// Set the database charset if applicable
    
if (defined("XOOPS_DB_CHARSET")) die('Restricted Access');
    
define'XOOPS_DB_CHARSET''' );

    
// Table Prefix
    // This prefix will be added to all new tables created to avoid name conflict in the database. If you are unsure, just use the default "xoops".
    
define'XOOPS_DB_PREFIX''xxxxx' );

    
// Database Hostname
    // Hostname of the database server. If you are unsure, "localhost" works in most cases.
    
define'XOOPS_DB_HOST''mysql5-13' );

    
// Database Username
    // Your database user account on the host
    
define'XOOPS_DB_USER''xxxxxxxxx' );

    
// Database Password
    // Password for your database user account
    
define'XOOPS_DB_PASS''xxxxxxxxx' );

    
// Database Name
    // The name of database on the host. The installer will attempt to create the database if not exist
    
define'XOOPS_DB_NAME''xxxxxxx' );

    
// Use persistent connection? (Yes=1 No=0)
    // Default is "Yes". Choose "Yes" if you are unsure.
    
define'XOOPS_DB_PCONNECT');

    
define'XOOPS_GROUP_ADMIN''1' );
    
define'XOOPS_GROUP_USERS''2' );
    
define'XOOPS_GROUP_ANONYMOUS''3' );

//    include XOOPS_TRUST_PATH.'/modules/protector/include/precheck.inc.php' ;
    
if (!isset($xoopsOption["nocommon"]) && XOOPS_ROOT_PATH != "") {
        include 
XOOPS_ROOT_PATH."/include/common.php";
    }

//    include XOOPS_TRUST_PATH.'/modules/protector/include/postcheck.inc.php' ;

}

?>


Les xxxxxx sont remplacés par les bons login, mdp, nom bdd,...
Je pense qu'il doit y avoir des erreurs dans ce fichier.
Merci de m'aider à solutionner la non possibilité à obtenir la page d'administration.
Benoit

Posté le : 15/12/2009 12:04
Partager Twitter Partagez cette article sur GG+

 Haut   Précédent   Suivant



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.

Propulsé avec XOOPS | Graphisme adapté par Tatane, Grosdunord, Montuy337513

77 Personne(s) en ligne (51 Personne(s) connectée(s) sur Forum) | Utilisateur(s): 0 | Invité(s): 77 | Plus ...