People who code: we want your input. Take the Survey

Questions tagged [drupal-console]

Use it for the suite of tools run from a command line interface to generate boilerplate code: the Drupal Console.

Filter by
Sorted by
Tagged with
0
votes
0answers
34 views

An AJAX HTTP error occurred during the Drupal module update

On Druapl 9.1.5, during the Metatag 8.x-1.16 update from the site it gave the following: Debugging information follows. Path: /core/authorize.php/core/authorize.php?batch=1&id=477&op=do_nojs&op=do ...
0
votes
0answers
143 views

How do you get the current directory in a command method?

In a standard Drupal 8 environment, the current working directory is override and becomes the document root of the site. This is a bit troublesome for Drupal Console command implementations that wants ...
0
votes
0answers
92 views

How can I create a content type field?

How do i create a content type field using Drush or Drupal Console? I tried both ways but nothing seems to work. I am using Drush Commandline Tool 9.7.1 and Drupal Console version 1.9.4. Drush: $ ...
0
votes
2answers
65 views

Content type export with drupal console not working

I have a content type called slider as the image below shows: I tried the following to export the content-type: drupal config:export:content:type slider when I enter the command, I am prompted to ...
0
votes
2answers
415 views

Command “generate:module” is not a valid command name

I have this problem when I run command drupal generate:module. I don't know why, despite everything I did was suggested on the documentation for Drupal Console. I don't see all the possible commands, ...
0
votes
1answer
61 views

Setup many to many relationship - custom content entity

I'm currently setting up a site and using 2 custom content entities (generated with Drupal Console) : A tenant, with some custom fields A Building, with some custom fields Theses two entities need ...
0
votes
0answers
152 views

Commands doen't work because of the Address module and its dependencies

When I try to use a Drupal Console command, even a simple a drupal list, I get an error. Fatal error: Class 'CommerceGuys\Addressing\AddressFormat\AddressFormatRepository' not found in /path/to/...
0
votes
1answer
157 views

Custom entity translation interface

I created a new custom entity using drupal console, I enabled translation and all looks ok in code. The problem is that I don't know how to translate an entity from the admin interface, I don't see ...
0
votes
0answers
450 views

Creating entity type using console doesn't work

I've installed Drupal 8.5.4 and followed these two steps to create a module and an entity type: Ran drupal gm and filled in the info Ran drupal geco and filled in the info (No bundles, No translation,...
0
votes
0answers
266 views

run drupal console command from linux cron

I have created a .sh file which runs a drupal console command via bash. I have tried to run this script in linux cron and all other commands work with exception to the drupal console command. How ...
0
votes
1answer
21 views

urol executed via bash throws exception error if role has a space in it

Role name "teaching assistant" command executed is: drush @comply-all urol "teaching assistant" sdf --y if I copy and paste this it works fine. if the following command is called from a bash script ...
0
votes
1answer
169 views

Problem translation of terms menu - Drupal 8.5.1 - Distribution VarBase

how are they? I have a problem with the menu item translation. when i make click in button translate i have a issue i attach image. I am using Drupal 8.5.1 and the distribution VarBase 8.x-4.16. ...
0
votes
1answer
121 views

The test:run command is missing, but other commands work fine

I installed Drupal Console, put it on my path, ran drupal init, and successfully used Drupal Console to generate a module. Now I want to run tests with drupal test:run, but I get this error. [...
0
votes
0answers
119 views

Error while importing just exported content type with drupal console

I'm trying to export a content type from one drupal installation and then install it to another. I export a content type with : ../vendor/bin/drupal cect And then I try to import it to another ...
0
votes
0answers
53 views

Modifying and Existing Theme in Drupal

The theme I am using has a slider -- a panel of automatically changing images to display a topic that the user can choose -- but it only shows a few slides. I want to extend it to a dozen slides. I ...
0
votes
2answers
138 views

An error upon trying to execute Drupal Console

I installed Drupal 8 into on my localhost, working under Windows 7 with OpenServer. After it I tried to install Drupal Console using Composer. Namely, this way composer require drupal/console:~1.0 --...
0
votes
0answers
58 views

Migration command error

On Drupal 8.0.5, I have created a d6_migration module with the following dependencies. dependencies: - migrate_drupal I activated my custom module, and I ran drupal migrate:debug which is ...
0
votes
1answer
155 views

How can I remove nodes?

How can I remove nodes using Drupal Console?
0
votes
1answer
172 views

Command to list all media entities in console?

I have an issue in my site which is not allowing me to visit the /en/admin/content/media page. I'm looking for an approach to list and delete media entities on the command line. When I run drupal ...
-1
votes
1answer
243 views

ShareThis Module is not working properly

I have installed the ShareThis module for sharing the contents on the social networking site. I have shared the link of the content on twitter. When the user clicks on the Shared URL, the URL looks ...
-1
votes
1answer
13 views

module/theme update on web hosted site question

I am new to drupal and I just installed a fresh site onto Acquia web hosting. How do I install modules and themes since I can't seem to be given direct access to the file manager via the browser? ...
-4
votes
2answers
141 views

Is there a single Drush and or Drupal console command to export and import all configurations?

Normally I goto Config Sync then export all > save config tar.gz > import. Can this be achieved with one command?

1
2