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 11 years ago

Closed 11 years ago

Last modified 11 years ago

#874 closed bug (fixed)

bug inclusion cmdline.php

Reported by: Nigoki Owned by: bballizlife
Priority: normal Milestone: Jelix 1.1.3
Component: jelix:core:command line Version: 1.1
Severity: normal Keywords:
Cc: Blocked By:
Blocking: Documentation needed: no
Hosting Provider: Php version:

Description

Comme précisé dans le ticket #873, dans le fichier cmdline.php

On rencontre une erreur php sur l'inclusion du fichier application.ini.php si le script est exécuté via un chemin en absolue, notamment par des cron.

Il faut remplacer l'inclusion

require_once ('.././application-cli.init.php');

par

require_once (dirname(__FILE__).'/../application-cli.init.php');

Attachments (1)

cmdline.php.tpl.diff (548 bytes) - added by bballizlife 11 years ago.
Fixed cmdline.php template in jelix-scripts

Download all attachments as: .zip

Change History (9)

comment:1 Changed 11 years ago by laurentj

  • Milestone set to Jelix 1.1.2

à faire dans le template de jelix-scripts.

Changed 11 years ago by bballizlife

Fixed cmdline.php template in jelix-scripts

comment:2 Changed 11 years ago by bballizlife

  • review set to review?
  • Status changed from new to assigned

comment:3 Changed 11 years ago by laurentj

Is this better ?

dirname(__FILE__).'/%%rp_app%%application-cli.init.php'

comment:4 Changed 11 years ago by bballizlife

As of now ticket #919 is now closed, i could work on this ticket. At first sight, i think the "dirname" trick would be ok but I'll test that.

comment:5 Changed 11 years ago by bballizlife

  • Status changed from assigned to new

This works good. commited in trunk and branch 1.1.x in r1418. Thanks !

comment:6 Changed 11 years ago by bballizlife

  • Status changed from new to assigned

comment:7 Changed 11 years ago by bballizlife

  • Resolution set to fixed
  • Status changed from assigned to closed

comment:8 Changed 11 years ago by laurentj

  • review review? deleted
Note: See TracTickets for help on using tickets.