i'm use Autoadmin Generate module Eroor: Module company does not exist...
i'm try & google long time, so please help me ...
My Config:
- Drupal 6.16
- Drush All-versions-3.0-beta1
- Module Builder 6.x-2.x-dev
- Auto Admin 6.x-1.2
- Schema 6.x-1.7
- Views 6.x-2.8
- PATH=C:\Program Files\AppServ\Apache2.2\bin;C:\Program Files\AppServ\php5;C:\Program Files\AppServ\MySQL\bin;C:\Program Files\GnuWin32\bin;C:\Program Files\drush
- D:\wwwroot\drupal\sites\all\modules 的目錄
2010/03/18 上午 02:09 <DIR> autoadmin
2010/03/18 上午 09:57 <DIR> my_module
2010/03/18 上午 02:09 <DIR> schema
My Install & Setup History:
1) from Module Builder Download 6.x-2.x-dev to drupal\modules
1.1) Enable it from administer >> modules.
1.2)Follow examples:
D:\wwwroot\drupal\sites\all\modules>drush mb my_module menu cron nodeapi
ini_set(): A session is active. You cannot change the session [warning]
module's ini settings at this time. settings.php:144
ini_set(): A session is active. You cannot change the session [warning]
module's ini settings at this time. settings.php:147
Proposed my_module.module:
...
Generate ok
D:\wwwroot\drupal\sites\all\modules>drush mb my_module menu cron --write --name=
"My module" --dep="forumviews"
ini_set(): A session is active. You cannot change the session [warning]
module's ini settings at this time. settings.php:144
ini_set(): A session is active. You cannot change the session [warning]
module's ini settings at this time. settings.php:147
Proposed my_module.module:
...
Generate ok
2) autoadmin & schema install
2.1) cd D:\wwwroot\drupal\sites\all\modules
2.2.1) $ drush dl autoadmin schema
2.2.2) $ drush enable autoadmin
2.3) Browse to the administration page and enable the modules. <-- yes, Enable
3) Follow Format of autoadmin.inc Examples:
D:\wwwroot\drupal\sites\all\modules> drush autoadmin generate company department employee --no-output --write --yes
ini_set(): A session is active. You cannot change the session [warning]
module's ini settings at this time. settings.php:144
ini_set(): A session is active. You cannot change the session [warning]
module's ini settings at this time. settings.php:147
drush: Module company does not exist.
Drush command could not be completed. [error]
I'm try & google long time, but, Module Generate Eroor:
module's ini settings at this time. settings.php:147
drush: Module company does not exist.
Drush command could not be completed. [error]
i'm very need CRUD Tools, help me Create My Table, Select or Update My Data, so please help me, next Step, keywork or how to Debug? thx ^^"
Comments
Comment #1
_rune commentedHi
You have to change the commands so it fits the name of your module and the name of your tables. From the "mb" command you have run it looks like the name of the your module is "my_module". You also have to enable your newly created module with something like "drush en [MODULENAME]". Your tables are probably not called "company", "department" and "employee" either. So what you want to do is like:
drush en "[MODULENAME]"
autoadmin generate [MODULENAME] [TABLE1] [TABLE2] ... [TABLEN] --write
And remember to replace "[MODULENAME]", "[TABLE1]" , "[TABLE2]", etc. with the values that are correct for your module.
Hopes this helps!
Cheers!
Rune
Comment #4
fcedillo commented_rune,
what should i do in case i don't have/need a module. i only want to get crud for one table.
best. regards.
Comment #5
_rune commentedThere need to be a module but you can just create a module with an empty [MODULENAME].module file, a [MODULENAME].info file and the [MODULENAME].autoadmin.inc file.
Comment #6
fcedillo commentedi have created [MODULENAME].module file and a [MODULENAME].info
when executing drush autoadmin generate bands bands --write
this is shown
Notice: "autoadmin generate" must be renamed to "autoadmin-generate" in order to work with this [error]
version of drush. If you are the maintainer for the module that defines this command, please rename
it immediately. If you are a user of this command, you may enable spaces in commands for a while by
setting "allow-spaces-in-commands" in your drush configuration file. See example.drushrc.php.
when executing drush autoadmin-generate bands bands --write
the following text is shown:
The drush command 'autoadmin-generate bands bands' could not be found.
Note: Assume my [MODULENAME] to be "bands" and [TABLE1] to be "bands" too.
I think that a successful execution will create an [MODULENAME].autoadmin.inc file, maybe in module directory or under autoadmin directory.
Comment #7
_rune commentedSorry for late answer was on computerless vacation :) Ahh I see, there is a compatibilty issue with the latest version of drush. Will look into it and update autoadmin accordingly. Hopefully this weekend.
Cheers
Rune
Comment #8
fcedillo commentedhi _rune,
i tried this recommendation:
- you may enable spaces in commands for a while by setting "allow-spaces-in-commands" in your drush configuration file. See example.drushrc.php."
then: drush autoadmin generate bands bands --write
and: drush pm-enable bands
where is the administration interface supposed to appear?
best regards.
Comment #9
_rune commentedFixed in the release that will come later today. Cheers. Rune.
Comment #10
_rune commented