Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
I've installed the bot module with drush for my multisite installation. I then enabled the necessary modules, configured, and invoked the command drush @mysite bot start, and I got the message the module bot needs to be enabled. I had already enabled the bot.module :S
Comments
Comment #1
KartagisMoving to the Drush queue.
Comment #2
jonhattanDouble check you have the module enabled and run drush bot-start on the correct site.
Comment #3
KartagisThat was what was wrong when I filed this issue in the first place. It doesn't work. Let me paste below:
[root@kartagis drupal]# drush @drupalizm en bot
bot is already enabled. [ok]
There were no extensions that could be enabled. [ok]
[root@kartagis drupal]# drush @drupalizm bot-start
Command bot-start needs the following module(s) enabled to run: bot. [error]
The drush command 'bot-start' could not be executed. [error]
Regards,
Comment #4
jonhattanis @drupalizm installed at /default/ or other directory?
Comment #5
KartagisOther directory. Let me type the structure here, if it helps:
DRUPAL_ROOT/sites/drupalizm.com
And this is the line in aliases.drushrc.php:
$aliases['drupalizm'] = array(
'root' => '/var/www/drupal',
'uri' => 'drupalizm.com',
);
Comment #6
jonhattanDo other commands work (ie
drush @drupalizm status
) ?Also post the output of
drush @drupalizm --debug bot-start
. Perhaps it provides some clue.Comment #7
Kartagis[root@kartagis scripts]# drush @drupalizm status
Drupal version : 7.15
Site URI : drupalizm.com
Database driver : mysql
Database hostname : localhost
Database username : drupalizm
Database name : drupalizm
Database : Connected
Drupal bootstrap : Successful
Drupal user : Ziyaretçi
Default theme : sky
Administration theme : seven
PHP configuration : /etc/php.ini
Drush version : 5.7
Drush configuration :
Drush alias files : /usr/local/bin/drush/includes/../aliases.drushrc.php
Drupal root : /var/www/drupal
Site path : sites/drupalizm.com
File directory path : sites/drupalizm.com/files
temp : /tmp
[root@kartagis scripts]# drush @drupalizm bot-start
Command bot-start needs the following module(s) enabled to run: bot. [error]
The drush command 'bot-start' could not be executed. [error]
[root@kartagis scripts]#
EDIT: Sorry, I forgot to add --debug:
Bootstrap to phase 0. [0.01 sec, 3.42 MB] [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drush() [0.01 sec, 3.62 MB] [bootstrap]
Loaded alias @drupalizm from file /usr/local/bin/drush/includes/../aliases.drushrc.php [0.01 sec, 3.63 MB] [notice]
Cache HIT cid: 5.7-commandfiles-0-fb2123d923b9c28cdbad04d131cd230b [0.02 sec, 3.64 MB] [debug]
Bootstrap to phase 0. [0.04 sec, 7.65 MB] [bootstrap]
Bootstrap to phase 5. [0.04 sec, 7.65 MB] [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drupal_root() [0.04 sec, 7.66 MB] [bootstrap]
Initialized Drupal 7.15 root directory at /var/www/drupal [0.06 sec, 10.46 MB] [notice]
Drush bootstrap phase : _drush_bootstrap_drupal_site() [0.06 sec, 10.46 MB] [bootstrap]
Initialized Drupal site drupalizm.com at sites/drupalizm.com [0.06 sec, 10.47 MB] [notice]
Cache HIT cid: 5.7-commandfiles-2-056a1e603ed79718710948f43976a5cf [0.07 sec, 10.47 MB] [debug]
Drush bootstrap phase : _drush_bootstrap_drupal_configuration() [0.08 sec, 10.47 MB] [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drupal_database() [0.08 sec, 10.48 MB] [bootstrap]
Successfully connected to the Drupal database. [0.08 sec, 10.48 MB] [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drupal_full() [0.08 sec, 11.18 MB] [bootstrap]
Cache HIT cid: 5.7-commandfiles-5-fa85b16b27ae414cd4aa8465f8f614a6 [0.18 sec, 31.97 MB] [debug]
Cache HIT cid: 5.7-commandfiles-2-18cc7caf9e7ea9bf3649c597b7b71a12 [0.27 sec, 32.43 MB] [debug]
Use of undefined constant MASKEDINPUT_DOWNLOAD_URI - assumed 'MASKEDINPUT_DOWNLOAD_URI' masked_input.drush.inc:10 [0.27 sec, 32.6 MB] [notice]
Command bot-start needs the following module(s) enabled to run: bot. [0.29 sec, 33.81 MB] [error]
The drush command 'bot-start' could not be executed. [0.29 sec, 33.81 MB]
Comment #8
jonhattanI've tested enabling bot and running bot-start in a site installed at sites/other with no problem.
Try
drush cc drush
. Perhaps cache got stalled.Comment #9
KartagisYes you're right, it started. But, even though drush bot-status says it's online, it's not :)