Latest Drupal related questions

Score: 0
Drupal migrate - "--limit" option works only for first run?
in flag

I have custom source plugin (imports from MongoDB) and when I run migration for the first time like:

drush mim article --limit=10

it works well: 10 articles are being imported and process stops.

But if I repeat that command then only 1 article is imported.

And if I have like 10 imported articles and run again with limit=20 then 10 new ones are going to be imported.

And if I set limit smaller than cur ...

Score: 0
Eng7 avatar
drush cr behavior
jp flag

Is it normal for the site to become unreachable while running drush cr or this is something need to be fixed?

I have a site running drupal 9 that is becoming unavailable while running drush cr and the nginx webserver throwing 504 timeout error at the same time. if this something wrong I need to troubleshoot, what could cause this while cache rebuild?

Score: 1
How can I set "advanced" metatags programmatically?
cn flag

The Metatag documentation gives an example of setting meta tags like this:

$node->set('field_meta_tags', serialize([
  'title' => 'Some title',
  'description' => 'Some description.',
  'keywords' => 'Some,Keywords',
]));

However, I want to set the "advanced" fields, such as Canonical URL. (Use case: I am trying to import several hundred pages with the Feeds module, some of which are ver ...

Score: 0
Module is required but can't uninstall because incompatible with core
ua flag
Sam

I seem to be stuck with with a catch22, I updated from Drupal 8 to 9 and now I'm getting an error on many admin pages:

'The module t7_starbase does not exist or is not installed.'

drush pm-enable t7_starbase results in:

  t7_starbase: The TEN7 Starbase module is required  

it's not visible on backend pages either.

Score: 1
"Items in your active configuration have changes"
cn flag

I'm trying to setup configuration management for our team, so i test the workflow on my local machine:

Starting from a fresh copy of our website + database backup, with an empty /config folder ($settings['config_sync_directory'] = '../config';). When i use the command "drush config:export", the task runs and all the .yml files are generated in the /config folder. I then change the websites name (syste ...

Score: 1
user1414202 avatar
How can I detect when a stream wrapper is uninstalled?
ve flag

Does Drupal provide an "uninstall" hook to get notified when a Drupal Stream Wrapper is removed/uninstalled?

Or, is there a way to prevent a custom Drupal stream wrapper from being removed/uninstalled while there is at least one Drupal File entity that is using the stream wrapper?

Currently, for example, a Drupal site will crash if I do the following:

  1. Install a custom stream wrapper (e.g., https:// ...
Score: 1
How do I use Feeds Tamper to process multiple CSV columns into a single field?
cn flag

I have a CSV file that I import into my site using Feeds Tamper.

The CSV file has columns like

  • URL path
  • Favorite vegetable
  • Favorite fruit
  • Favorite pasta

In Drupal, my content type has a JSON Field, and I want to import "Favorite vegetable", "Favorite fruit", and "Favorite pasta" into the JSON field.

Is there a way to map all three favorites columns in the CSV file to the Drupal JSON field and combin ...

Score: 1
Kevin avatar
AJAX in a plugin form results in "The specified #ajax callback is empty or not callable."
in flag

I have a configuration form for a Condition plugin I want to have ajax in. When selecting from this field, I want to get a list of displays for that View:

  public function buildConfigurationForm(array $form, FormStateInterface $form_state) {
    $form = parent::buildConfigurationForm($form, $form_state);
    $views = $this->entityTypeManager->getStorage('view')->loadMultiple();
    $options ...

The Stunning Power of Questions

Much of an executive’s workday is spent asking others for information—requesting status updates from a team leader, for example, or questioning a counterpart in a tense negotiation. Yet unlike professionals such as litigators, journalists, and doctors, who are taught how to ask questions as an essential part of their training, few executives think of questioning as a skill that can be honed—or consider how their own answers to questions could make conversations more productive.

That’s a missed opportunity. Questioning is a uniquely powerful tool for unlocking value in organizations: It spurs learning and the exchange of ideas, it fuels innovation and performance improvement, it builds rapport and trust among team members. And it can mitigate business risk by uncovering unforeseen pitfalls and hazards.

For some people, questioning comes easily. Their natural inquisitiveness, emotional intelligence, and ability to read people put the ideal question on the tip of their tongue. But most of us don’t ask enough questions, nor do we pose our inquiries in an optimal way.

The good news is that by asking questions, we naturally improve our emotional intelligence, which in turn makes us better questioners—a virtuous cycle. In this article, we draw on insights from behavioral science research to explore how the way we frame questions and choose to answer our counterparts can influence the outcome of conversations. We offer guidance for choosing the best type, tone, sequence, and framing of questions and for deciding what and how much information to share to reap the most benefit from our interactions, not just for ourselves but for our organizations.