Fork me on GitHub


 Bas   Précédent   Suivant

(1) 2 3 4 ... 23 »


Re: Est-il possible de passer du module XNews à News ?
Régulier
Inscrit: 12/01/2005 21:04
Messages: 296
Je te remercie beaucoup de ton aide efficace.

Mes problèmes sont maintenant résolus.

Posté le : 03/10/2012 22:36
Transférer la contribution vers d'autres applications Transférer


Re: Est-il possible de passer du module XNews à News ?
Régulier
Inscrit: 12/01/2005 21:04
Messages: 296
Bonsoir,

Un petit retour et une nouvelle demande d'aide ...

Le module Backpack fonctionne très bien en local mais pas en ligne sur mon site.

Voici le message d'erreur obtenu :

Open in new window


Je ne comprends pas.

Sinon l'installation de NEWS s'est déroulé sans aucun souci ainsi que les modifications dans la BD.

Cependant, je rencontre deux anomalies visibles en ligne ici :
- lorsque je veux générer un article au format PDF, "la machine" tourne en rond sans produire le document demandé,

- lorsque je clique sur certains liens qui appellent un article (en mode "anonyme"), j'ai un message d'erreur me disant : "Désolé, vous n'avez pas les permissions pour accéder à cette zone."

Exemple ici : Stage natation - Reims - Janv. 2011

Pour information, j'utilise le module multiMenu (v 1.74) et je n'ai changé aucun droit. Cela fonctionnait sans souci avec XNews.
Cependant ce lien est parfaitement accessible en mode "connecté".

Bizarre !

Posté le : 03/10/2012 20:51
Transférer la contribution vers d'autres applications Transférer


Re: Est-il possible de passer du module XNews à News ?
Régulier
Inscrit: 12/01/2005 21:04
Messages: 296
Merci pour ces indications !

Je teste en local en ce moment et tout semble fonctionner sans problème. La structure de la BD semble la même.

Je poursuis mes tests..

Posté le : 03/10/2012 16:27
Transférer la contribution vers d'autres applications Transférer


Est-il possible de passer du module XNews à News ?
Régulier
Inscrit: 12/01/2005 21:04
Messages: 296
Bonjour,

Tout d'abord bravo pour le nouveau look du site et chapeau bas aux concepteurs ! C'est superbe !

Voici mon histoire ...

J'ai mis en ligne mon site en 2005 (Xoops V 2.0.17).

Je l'ai régulièrement mis à jour depuis.

Dés le départ, j'ai utilisé le module NEWS pour mes articles.

Après quelques années, je suis passé à XNEWS (v 1.71) en utilisant le script d'importation livré avec le module. A l'époque le module NEWS n'était plus suivi et dans les forums on disait que XNEWS était son successeur ...

Mes questions :

Est-il possible aujourd'hui de repasser à NEWS (v 1.68) ?

Contrainte :

Je souhaiterais conserver tous mes anciens articles.


L'avez-vous déjà fait ?
Comment faire ?

Voici ma configuration actuelle :

Version de XOOPS 2.5.5
Version de PHP 5.2.17
Version de MySql 5.0.67-log


Je vous remercie de votre éclairage technique.

Cordialement.



Posté le : 03/10/2012 14:08
Transférer la contribution vers d'autres applications Transférer


Re: Maj XOOPS 2.3.2 vers 2.5.5
Régulier
Inscrit: 12/01/2005 21:04
Messages: 296
Avant toute chose, pensez à faire une sauvegarde de votre base de données.

J'ai utilisé les deux scripts.

Celui de trabis en local. Il fonctionne sans souci.

Il suffit de suivre ces consignes écrites en anglais.

Citation :
I fixed the script and added one extra config:

http://code.google.com/p/xuups/downlo ... ail?name=dbupdate_1.1.zip

I also noticed that my instructions were incorrect, please test it as follows:

Place the dbupdate.php on your XOOPS root (same directory as mainfile.php);

Edit the file and change the config settings(if needed):


//START CONFIG
$doBinary false//If updated strings are not readable, try set this to 'true'

$old_charset 'latin1';
$old_collation 'latin1_swedish_ci';

$new_charset 'utf8';
$new_collation 'utf8_general_ci';
//END CONFIG


Citation :
Point your browser to dbupdate.php and execute it

You should get a page with SQL statements.
Open phpmyadmin and select your XOOPS database.
Open SQL tab and enter the statements you got from dbupdate.php
Execute.
Wait, may take some time if database is to big.
Now your database should have been migrated. Look at your tables and check if fields content are readable.
Edit your mainfile.php(xoops < 2.5) or xoops_data/data/secure.php(xoops > 2.5) and define XOOPS_DB_CHARSET accordingly
Your language files will have to be updated to the new charset also. If you don't have utf8 language files, change your language to english.
See if content is readable.

If not, upload your database backup, set option $doBinary = true, and repeat the steps.




Celui de montuy en ligne. Il fonctionne très bien.

On le télécharge ici : http://sourceforge.net/projects/chgxo ... onvert_mysql.zip/download

Citation :
Pour l'installation, c'est simple, il suffit d'installer le répertoire convert_mysql a la racine de votre site et de lancer le script de cette façon, http://www.votresite.com/convert_mysql/index.php

Ensuite il n'y a cas suivre les instructions.



Voici la liste des modules qui sont installés sur mon site :

Multimenu 1.74
Site Map 1
xNews 1.71
TDM Downloads 1.61 --> mis à jour depuis sans problème 1.62
Links 1.11
NewBB2 1.15
RSSFit 1.22
Waiting Block 0.94
Tinyeditor 1
SecurityImage 1
Protector 3.4 --> mis à jour depuis sans problème 3.51

Le script de monty est très facile à mettre en place. Aucun problème lors de la conversion de ma BD.

Dans mon cas, c'est la mise à jour d'une v. 2.5.0 vers la v. 2.5.5 qui s'est avérée la plus délicate (pas à pas et fichiers à rechercher ... à droite ... à gauche).

Grâce au tutoriel de montuy, cela devrait être plus facile pour les personnes qui se lanceront dans cette opération.

Ce que je retiens :

"utf8" dans le fichier secure.php (.../xoops_data/data/secure.php)

ligne 22 -
define'XOOPS_DB_CHARSET''utf8' );



et "UTF-8" pour le fichier global.php (.../language/french/global.php)

ligne 223 -
define("_CHARSET","UTF-8");






Posté le : 15/07/2012 20:12
Transférer la contribution vers d'autres applications Transférer


Re: Maj XOOPS 2.3.2 vers 2.5.5
Régulier
Inscrit: 12/01/2005 21:04
Messages: 296
Merci de ton aide précieuse !

Tout est rentré dans l'ordre.

Posté le : 15/07/2012 16:50
Transférer la contribution vers d'autres applications Transférer


Re: Maj XOOPS 2.3.2 vers 2.5.5
Régulier
Inscrit: 12/01/2005 21:04
Messages: 296
J'ai fait comme indiqué.

secure.php et global.php propre avec "UTF-8"

mainfile.php toiletté sans aucune référence du charset et sans code annexe.

<?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     GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html)
 * @version     $Id: mainfile.dist.php 8066 2011-11-06 05:09:33Z beckmi $
 */

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

    
// XOOPS Physical Paths

    // Physical path to the XOOPS documents (served) directory WITHOUT trailing slash
    
define("XOOPS_ROOT_PATH""/home/www/monchemin/web");

    
// For forward compatibility
    // Physical path to the XOOPS library directory WITHOUT trailing slash
    
define("XOOPS_PATH""/home/www/monchemin/data/modules/protector/xoops_lib");
    
// Physical path to the XOOPS datafiles (writable) directory WITHOUT trailing slash
    
define("XOOPS_VAR_PATH""/home/www/monchemin/data/modules/protector/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.edeps51.org");
    
define("XOOPS_URL""http://www.edeps51.org");

    
// Shall be handled later, don't forget!
    
define("XOOPS_CHECK_PATH"0);
    
// 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.");
        }
    }

    
// Secure file
    
require XOOPS_VAR_PATH '/data/secure.php';

    
define("XOOPS_GROUP_ADMIN""1");
    
define("XOOPS_GROUP_USERS""2");
    
define("XOOPS_GROUP_ANONYMOUS""3");

    if (!isset(
$xoopsOption["nocommon"]) && XOOPS_ROOT_PATH != "") {
        include 
XOOPS_ROOT_PATH."/include/common.php";
    }

}

?>


Il m'est impossible de mettre à jour le module "Système" ...

Open in new window

Il hait les accents ...
Open in new window

Posté le : 15/07/2012 14:53
Transférer la contribution vers d'autres applications Transférer


Re: Maj XOOPS 2.3.2 vers 2.5.5
Régulier
Inscrit: 12/01/2005 21:04
Messages: 296
Nos échanges se sont croisés ...

Posté le : 15/07/2012 00:12
Transférer la contribution vers d'autres applications Transférer


Re: Maj XOOPS 2.3.2 vers 2.5.5
Régulier
Inscrit: 12/01/2005 21:04
Messages: 296
Ce n'est pas tout à fait cela ...

C'est l'application des mises à jour contenues dans le dossier "upgrade" qui a modifié mon fichier mainfile.php.

Voici ce que cela donnait :

<?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     GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html)
 * @version     $Id: mainfile.dist.php 8066 2011-11-06 05:09:33Z beckmi $
 */

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''/home/www/trucbidule/web' );

    
// For forward compatibility
    // Physical path to the XOOPS library directory WITHOUT trailing slash
    
define'XOOPS_PATH''/home/www/trucbidule/data/modules/protector/xoops_lib' );
    
// Physical path to the XOOPS datafiles (writable) directory WITHOUT trailing slash
    
define'XOOPS_VAR_PATH''/home/www/trucbidule/data/modules/protector/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.edeps51.org' );
    
define'XOOPS_URL''http://www.edeps51.org' );

    
// 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''utf8' );

    
// 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''' );

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

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

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

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

    
// 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' );

    if (!isset(
$xoopsOption["nocommon"]) && XOOPS_ROOT_PATH != "") {
        include 
XOOPS_ROOT_PATH."/include/common.php";
    }

}

?>


J'ai donc modifié mes 2 fichiers (global.php et secure.php) et mis "UTF-8".

J'ai modifié aussi le fichier mainfile ainsi :


<?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     GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html)
 * @version     $Id: mainfile.dist.php 8066 2011-11-06 05:09:33Z beckmi $
 */

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

    
// XOOPS Physical Paths

    // Physical path to the XOOPS documents (served) directory WITHOUT trailing slash
    
define('XOOPS_ROOT_PATH''/home/www/trucbidule/web');

    
// For forward compatibility
    // Physical path to the XOOPS library directory WITHOUT trailing slash
    
define('XOOPS_PATH''/home/www/trucbidule/data/modules/protector/xoops_lib');
    
// Physical path to the XOOPS datafiles (writable) directory WITHOUT trailing slash
    
define('XOOPS_VAR_PATH''/home/www/trucbidule/data/modules/protector/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.edeps51.org');
    
define('XOOPS_URL''http://www.edeps51.org');

    
// Shall be handled later, don't forget!
    
define("XOOPS_CHECK_PATH"0);
    
// 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.");
        }
    }

    
// Secure file
    
require XOOPS_VAR_PATH '/data/secure.php';

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

    if (!isset(
$xoopsOption["nocommon"]) && XOOPS_ROOT_PATH != "") {
        include 
XOOPS_ROOT_PATH."/include/common.php";
    }

}

?>


J'obtiens maintenant ce message d'erreur (mode debug)

0,000188 - SET NAMES 'UTF-8'
Error number: 1115
Error message: Unknown character set: 'UTF-8'


et j'ai toujours des soucis d'affichage qui évoluent ...

Posté le : 14/07/2012 23:45
Transférer la contribution vers d'autres applications Transférer


Re: Maj XOOPS 2.3.2 vers 2.5.5
Régulier
Inscrit: 12/01/2005 21:04
Messages: 296
En ce qui me concerne, j'utilise "UTF-8" pour global.php et secure.php.

J'ai "utf8" pour mainfile.php sinon j'ai des souci dans le panneau de contrôle. Le module "système" n'aime pas !

Bref, j'ai toujours des soucis d'affichage et je n'arrive pas pour le moment à les résoudre.

Voir ici !

Par ailleurs, je suis étonné de l'évolution du fichier mainfile.php lors du passage de la version 2.5.0 à la version 2.5.5.
Je m'explique : il ne contenait aucune donnée trop sensible. Il fallait aller voir dans secure.php pour accéder au mot de passe ... etc.
Après la mise à jour vers la version 2.5.5 ce fichier contient à nouveau ces données !

Est-ce normal ?


Posté le : 14/07/2012 21:55
Transférer la contribution vers d'autres applications Transférer



 Haut
(1) 2 3 4 ... 23 »




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

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