Notice: Undefined index:

Bonjour,

le part en vacance mon site marchais très bien il est plein d'erreur et je n'arrive pasa résoudre le problème:
Notice: Undefined index: UID in /homez.342/cdlien/www/global.php on line 28

Notice: Undefined index: atype in /homez.342/cdlien/www/inc/user.class.php on line 33

Notice: Undefined index: atype in /homez.342/cdlien/www/inc/user.class.php on line 33

Notice: Undefined index: atype in /homez.342/cdlien/www/inc/user.class.php on line 33

Notice: Undefined index: atype in /homez.342/cdlien/www/inc/user.class.php on line 33
Notice: Undefined index: atype in /homez.342/cdlien/www/inc/user.class.php on line 33
>

Notice: Undefined index: atype in /homez.342/cdlien/www/inc/user.class.php on line 33

Notice: Undefined index: atype in /homez.342/cdlien/www/inc/user.class.php on line 33

Notice: Undefined index: atype in /homez.342/cdlien/www/inc/user.class.php on line 33

Notice: Undefined index: atype in /homez.342/cdlien/www/inc/user.class.php on line 33

Notice: Undefined index: atype in /homez.342/cdlien/www/inc/user.class.php on line 33

Notice: Undefined index: atype in /homez.342/cdlien/www/inc/user.class.php on line 33

Notice: Undefined index: usr_email in /homez.342/cdlien/www/index.php on line 811

Notice: Undefined index: usr_email in /homez.342/cdlien/www/index.php on line 811

Notice: Undefined index: usr_pass in /homez.342/cdlien/www/index.php on line 812

Notice: Undefined index: usr_pass in /homez.342/cdlien/www/index.php on line 812

voici le code de la page global.php
<?php
/*******************************************************************************
*
*
*
*
******************************************************************************/

//error_reporting(E_ALL ^ (E_NOTICE ^ E_WARNING));

define('GLOBAL_PHP_INCLUDED', true);
define('__EXEC_START__', microtime());
define('ROOT_PATH', dirname(__FILE__));

require_once ROOT_PATH . '/inc/const.inc.php';
require_once ROOT_PATH . '/inc/database.class.php';

System::setDB(new MySQL(MYSQL_HOST, MYSQL_USER, MYSQL_PASS, MYSQL_DB));
if ($config = System::getDB()->getRows($_GLOBAL['TABLES']['CONFIG'])) {
foreach ($config as $c) define($c['key'], $c['value']);
}

require_once ROOT_PATH . '/inc/utilities.class.php';
require_once ROOT_PATH . '/inc/system.class.php';
require_once ROOT_PATH . '/inc/user.class.php';
require_once ROOT_PATH . '/template.php';

$_UID = $_COOKIE['UID'] ? $_COOKIE['UID'] : 0;

System::setUser(new User($_GLOBAL['TABLES']['USERS'], $_UID, System::getDB()));

$H_TEMPLATE['PAGE_TITLE'] = SITE_PAGE_TITLE;

si queiqu' un a une idee
merci d'avance

6 réponses

  • Votes
  • Date
  • Date décroissante
  1. Salut,

    Peut-être le serveur SQL ?

    As-tu tenter de voir si le serveur SQL sur lequel ton site est censé ce connecté était encore fonctionel ou n'était pas en maintenance ?

    Apparament, tu devrais pouvoir trouver des infos sur http://travaux.ovh.net/ si ton problème viens de là.

    Cordialement,
    Configuration: Configuration: @Linux Mint, Proco > intel core i7-3960X, CG > Ati Radeon HD 6990, Stockage > Barracuda® XT 3To*2, Mémoire vive > 16 Go DDR3, SSD > Pulsar.2 100Go (Seagate)
    Inutile d'avoir un Tigre dans son ordi, s'il y'a un âne derrière l'écran... Voir un pinguin pour les users Linux ;)
    1. Dans ce cas là, il doit effectivement y avoir un soucis.

      Faudrait vérifier les fichiers qui sont en erreurs.
      1. Notice: Undefined index: UID in /homez.342/cdlien/www/global.php on line 28

        <?php
        /*******************************************************************************
         * 
         * 
         * 
         * 
         ******************************************************************************/
         
        //error_reporting(E_ALL ^ (E_NOTICE ^ E_WARNING));
        
        define('GLOBAL_PHP_INCLUDED', true);
        define('__EXEC_START__', microtime());
        define('ROOT_PATH', dirname(__FILE__));
        
        require_once ROOT_PATH . '/inc/const.inc.php';
        require_once ROOT_PATH . '/inc/database.class.php';
        
        System::setDB(new MySQL(MYSQL_HOST, MYSQL_USER, MYSQL_PASS, MYSQL_DB));
        if ($config = System::getDB()->getRows($_GLOBAL['TABLES']['CONFIG'])) {
        	foreach ($config as $c) define($c['key'], $c['value']);
        }
        
        require_once ROOT_PATH . '/inc/utilities.class.php';
        require_once ROOT_PATH . '/inc/system.class.php';
        require_once ROOT_PATH . '/inc/user.class.php';
        require_once ROOT_PATH . '/template.php';
        
        $_UID = $_COOKIE['UID'] ? $_COOKIE['UID'] : 0;
        
        System::setUser(new User($_GLOBAL['TABLES']['USERS'], $_UID, System::getDB()));
        
        $H_TEMPLATE['PAGE_TITLE'] = SITE_PAGE_TITLE;


        je n'es rien changer au code donc je ne vois pas d'ou peu venir l'erreur