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.
developer.jelix.org n'est plus utilisée, et existe uniquement pour son historique. Postez les nouveaux tickets sur le compte github.
#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)
Change History (9)
comment:1 Changed 12 years ago by laurentj
- Milestone set to Jelix 1.1.2
comment:2 Changed 12 years ago by bballizlife
- review set to review?
- Status changed from new to assigned
comment:3 Changed 12 years ago by laurentj
Is this better ?
dirname(__FILE__).'/%%rp_app%%application-cli.init.php'
comment:4 Changed 12 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 12 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 12 years ago by bballizlife
- Status changed from new to assigned
comment:7 Changed 12 years ago by bballizlife
- Resolution set to fixed
- Status changed from assigned to closed
comment:8 Changed 12 years ago by laurentj
- review review? deleted
Note: See
TracTickets for help on using
tickets.
à faire dans le template de jelix-scripts.