developer.jelix.org is not used any more and exists only for history. Post new tickets on the Github account.
developer.jelix.org n'est plus utilisée, et existe uniquement pour son historique. Postez les nouveaux tickets sur le compte github.

Opened 14 years ago

Closed 14 years ago

#404 closed bug (fixed)

Undefined index: REMOTE_ADDR

Reported by: hugues Owned by:
Priority: normal Milestone: Jelix 1.0
Component: jelix:core Version: 1.0RC2
Severity: trivial Keywords:
Cc: Blocked By:
Blocking: Documentation needed:
Hosting Provider: Php version:

Description

J'ai cette erreur en pagaille dans mes logs. A savoir qu'un cron tape régulièrement sur le script ( via cmdline.php )

2007-12-27 17:02:45 [1] Undefined index: REMOTE_ADDR /usr/home/lib/jelix/init.php 150

Une version compilé pour la prod. il s'agit en version dev du fichier jException.lib.php.

    // formatage du message de log
    $messageLog = strtr($conf['messageLogFormat'], array(
        '%date%' => date("Y-m-d H:i:s"),
        '%ip%'   => $_SERVER['REMOTE_ADDR'],
        '%code%' => $exception->getCode(),
        '%msg%'  => $msg,
        '%file%' => $exception->getFile(),
        '%line%' => $exception->getLine(),
        '%typeerror%'=>'exception',
        '\t' =>"\t",
        '\n' => "\n"
    ));

Change History (1)

comment:1 Changed 14 years ago by laurentj

  • Component changed from jelix to jelix:core
  • Milestone set to Jelix 1.0
  • Resolution set to fixed
  • Severity changed from normal to trivial
  • Status changed from new to closed

Corrigé merci :-)

Note: See TracTickets for help on using tickets.