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

#1023 closed bug (fixed)

jelix-scripts: createform command fails

Reported by: Julien Owned by: laurentj
Priority: high Milestone: Jelix 1.2 beta
Component: jelix:installer Version: trunk
Severity: major Keywords:
Cc: Blocked By:
Blocking: Documentation needed: no
Hosting Provider: Php version:

Description

when trying to create a form based on a dao, I get this error:

Error: Module inconnu dans le sélecteur "mymodule~mydao"

of course, the module and the dao exist

when I looked at the cached config file from jelix-script temp, I saw this:

mymodule.access = 0

but it's enabled in the app's config

I don't know if it's a bug or a misconfiguration...

Change History (9)

comment:1 follow-up: Changed 11 years ago by foxmask

for me, it's a bug, as in the myapp/var/config/defaultconfig.ini.php

myapp.access=2

and in the cache it became myapp.access=0

i'm trying to find where this comes from.

comment:2 in reply to: ↑ 1 Changed 11 years ago by Julien

Replying to foxmask:

i'm trying to find where this comes from.

I quickly tried, but couldn't find the exact cause

I think it's because installer.ini file lists the entrypoints to know which modules are available. And there's nothing for "jelix-scripts" entrypoint...

Maybe we should just decide that all modules are always available from jelix-scripts ?

comment:3 Changed 11 years ago by foxmask

I found that jelix-scripts is waiting for a section named [jelix] in the installer.ini.php when we use jelix-scripts with all the modules, and always in the installer.ini.php, jelix is waiting for a section named like the entrypoint

this gives :

[jelix]
jelix.installed=1
myapp.installed=1
...

[index]
jelix.installed=1
myapp.installed=1

but i'm stil facing the issue with unknow dao

i think i'm near the goal ;)

about your last comment, Loic said the same thing on the channel.

regards.

comment:4 Changed 11 years ago by foxmask

in fact, no now it's working :

php jelix --toto createform toto posts posts

no error at all.

so may be this could be fixed by adding the [jelix] section in the installer.ini.php.tpl ?

comment:5 Changed 11 years ago by laurentj

  • Component changed from jelix to jelix:installer
  • Owner set to laurentj
  • Status changed from new to assigned

don't use the trunk please. I'm currently rewrite the installer. I will try to fix this issue with this new development.

comment:6 Changed 11 years ago by laurentj

good point foxmask. I will try to fix that.

comment:7 Changed 11 years ago by laurentj

  • Documentation needed set

fixed . http://hg.jelix.org/jelix/jelix-trunk/rev/4880534905b5

Added also the possibility to specify the entrypoint with which we want to work ex:

php jelix.php --myapp:entrypoint.php acommand...

comment:8 Changed 11 years ago by laurentj

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