Problem/Motivation

This module seems like a great idea, but it's not working for me.

I installed and ran drush bol.

That outputs:

 [success] Site scanned.
 ------- ------ ---- ------------- 
  Group   Name   ID   Description  
 ------- ------ ---- ------------- 

drush bol node outputs:

 [error]  node is not a valid item type. 
 [success] Site scanned.
 [warning] Undefined array key 0 BolCommands.php:64
 [warning] Trying to access array offset on value of type null BolCommands.php:64
 [warning] Trying to access array offset on value of type null BolCommands.php:104
 ------- ------ ---- ------------- 
  Group   Name   ID   Description  
 ------- ------ ---- ------------- 

Issue fork bol-3427435

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

mortona2k created an issue. See original summary.

j. ayen green’s picture

Assigned: Unassigned » j. ayen green
  1. Which version of Drupal?
  2. Which version of drush?
  3. Are your config files in project-root/config/ ?
mortona2k’s picture

Assigned: j. ayen green » Unassigned

Drupal: 10.2.3
Drush: 12.4.3.0

Config dir: /config/sync
Web root: /web

I'm getting empty output when I run it in / and in /web.

--

Ok I see what the issue is. The module is hardcoded to look in ../config (BolCommands.php:53)

Can we change it to get the path from $settings['config_sync_directory']?

mortona2k’s picture

Title: No output from drush command » No output from drush command (incorect config_sync_directory path)
Status: Active » Needs review

I didn't mean to unassign you from the ticket, and I can't set it back to you. I think my browser tab kept the selection from before I refreshed and saw your comment.

I just added a quick change in the MR to get the path from the config_sync_directory setting.

j. ayen green’s picture

Status: Needs review » Fixed

Thanks for the commit!

j. ayen green’s picture

Assigned: Unassigned » j. ayen green
j. ayen green’s picture

Status: Fixed » Closed (fixed)