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

Opened 15 years ago

Closed 15 years ago

#111 closed bug (fixed)

jLog CLI error

Reported by: doubleface Owned by: laurentj
Priority: low Milestone: Jelix 1.0beta2
Component: jelix:utils Version: 1.0 beta1
Severity: minor Keywords: cli jLog
Cc: Blocked By:
Blocking: Documentation needed:
Hosting Provider: Php version:


jLog::log creates a notification when called with PHP CLI, because it tries to get the IP address from apache.

Here is what I would add in the beginning of jLog::log :

if (!array_key_exists('REMOTE_ADDR', $_SERVER)) {



Or you could also add an attribute to the function to state that we are in console mode and then not get this data.

Change History (2)

comment:1 Changed 15 years ago by laurentj

  • Keywords changed from cli, jLog to cli jLog
  • Milestone set to Jelix 1.0beta2
  • Owner set to laurentj
  • Status changed from new to assigned

comment:2 Changed 15 years ago by laurentj

  • Resolution set to fixed
  • Status changed from assigned to closed
Note: See TracTickets for help on using tickets.