Latest Drupal related questions

Score: 0
druplash avatar
Run into issues with Drush after updating from 8.9.20 to 9.3.13
jp flag

I upgraded from 8.9.20 to 9.3.13 and i did an update.php after this. I do get an error:

MISSING UPDATES FOR: VIEWS The installed version of the Views module is too old to update. Update to a version prior to 9.0.0 first (missing updates: views_post_update_remove_core_key).

If i try to update the databse with drush updatedb i get an error too:

In BootstrapHook.php line 36: Bootstrap failed. Run your com ...

Score: 1
Access permissions with the Entity Print module
in flag

I installed the Entity Print on my site. It works perfectly when used from the administrator user, but it doesn't work with anonymous users.

It gives the following error.

Access denied on the url /entityprint/pdf/node/nid

I tracked the error and found that is was caused by this code.

// Check if the user is allowed to view all bundles of the entity type.
$access_result = AccessResult::allowedIfHasPermi ...
Score: 2
Matt avatar
Use a different twig media template if it is being rendered inside a WYIWYG
cn flag

I have a twig template for a media entity that I wish to be able to embed into a WYIWYG. I am able to, however the entity has issues rendering when inside the ckeditor that aren't present when rendered on an actual page. I want to either use a different template or use some variable that detects whether the media is in an edit mode.

Is there a twig variable like {{ inEditor }} or is there a templ ...

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:// ...

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.