Bon, j’ai réussi à faire une config qui s’installe sur online.net mais j’ai un problème lors de l’accès au gestionnaire.
Je rentre mon login et mon mot de passe et j’ai un message d’erreur :
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in settings.inc.php on line 9
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in settings.inc.php on line 10
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /var/www/62/o/s/e/oself.com/modx/manager/includes/settings.inc.php:9) in config.inc.php on line 38
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in login.processor.php on line 69
Voici le contenu du fichier settings.inc.php :
<?php
// get the settings from the database.
$settings = array();
if ($modx && count($modx->config)>0) $settings = $modx->config;
else{
$sql = "SELECT setting_name, setting_value FROM modx_system_settings";
$rs = mysql_query($sql);
$number_of_settings = mysql_num_rows($rs);
while ($row = mysql_fetch_assoc($rs)) {
$settings[$row['setting_name']] = $row['setting_value'];
}
}
extract($settings, EXTR_OVERWRITE);
// setup default site id - new installation should generate a unique id for the site.
if(!isset($site_id)) $site_id = "MzGeQ2faT4Dw06+U49x3";
?>
et un extrait du fichier login.processor.php (lignes 67, 68 et 69) :
$sql = "SELECT ".$table_prefix."manager_users.*, ".$table_prefix."user_attributes.* FROM ".$table_prefix."manager_users, ".$table_prefix."user_attributes WHERE ".$table_prefix."manager_users.username REGEXP BINARY '^".$username."$' and ".$table_prefix."user_attributes.internalKey=".$table_prefix."manager_users.id;";
$rs = mysql_query($sql);
$limit = mysql_num_rows($rs);