Latest Drupal related questions

Score: 1
jhnc avatar
security updates reported but not actually available (recommended==installed)
cn flag

I installed Drupal 9.3.6.

At /admin/reports/status, I see the error:

There are security updates available for one or more of your modules or themes

and at /admin/modules/update, two modules are listed: PHP 8.x-1.1 and Remote Stream Wrapper 8.x-1.5.

However, for both these modules the recommended version is the already-installed version.

  • How do I see more details about the reason for the errors?
  •  ...
Score: 0
Entity is of bundle values in Rules
cn flag

I've created a very basic "reaction rule" on "After updating a order".

I can't figure out what I need to fill in for: "Entity is of bundle" for the fields if I want to get Order fields:

  1. Type
  2. Bundle

I have tried all variants like "Type= Order" and "Bundle= default" etc, but it just doesn't work.

Anyone has it working with Entity is of bundle for Commerce Order?

Score: 1
Delford Chaffin avatar
Drupal Commerce Product Variation SQL Injection Vulnerability
gg flag

A PCI scan on my site is saying that there is a SQL Injection vulnerability. But where it seems to be indicating it is on pretty basic Commerce functionality. When visiting a product variation page directly, it appends v=nn to the URL to show the selected variation.

This scan is suggesting that URLs like:

?v=54+or+5459%3D5459&page=1

?v=54+or+6721%3D8812&page=1

... return TRUE and FALSE, respe ...

Score: 0
Klapsius avatar
image.html.twig naming sugestions
mx flag

I need to customize the image.html.twig template. I have a new content type with an image field (field_tile_image). How can I overwrite the default image template only for one block?

I tried different naming but it's still using image.html.twig. There aren't other name suggestions.

Score: 0
Steve Siddu avatar
How do I filter the release based on the selected product in an exposed filter?
br flag

I have a content type (Book page) with reference fields to two taxonomy vocabularies (Product and Release).

The fields of that content type are the following.

enter image description here

The terms of the Product vocabulary are the following.

enter image description here

The terms of the Release vocabulary are the following.

enter image description here

Map of books that referencing to different items of product and release vocabularies.

enter image description here

I want to create a view with expose ...

Score: 0
simonp avatar
Migration fails with "missing migrations" errors
ci flag

I am trying to migrate a Drupal 7 site to Drupal 9 using the Migrate module user interface. I have read through and followed the corresponding tutorials on drupal.org, but the migration still fails.

Given that my original Drupal 7 site is quite complex, for testing purposes, I created a fresh installation of Drupal 7 and created some dummy nodes; then I ran the upgrade from the user interface in  ...

Score: 1
matsbla avatar
How can I enable workflows for comments?
pe flag

I would like to create workflows for comments and moderate them, but I can't find comments under This workflow applies to: on /admin/config/workflow/workflows/manage/comment_workflow.

Does anyone know how I can enable workflows on comments?

Score: 0
Set URL alias for dynamically created menu links via MenuLinkContent::create
in flag

I am creating a menu link via the MenuLinkContent::create method as follows:

MenuLinkContent::create([
  'title' => $createdNodeTitle,
  'link' => ['uri' => "entity:node/$createdNodeId"],
  'menu_name' => 'main',
  'parent' => array_key_first($menu_link),
])->save();

Which works fine. I'm looking for a parameter to pass to set a custom URL alias (as possible via UI)

Any way how t ...

Score: 2
Dragan Petrovic FSD avatar
"RuntimeException: You have requested a non-existent parameter 'app.root'"
cn flag

After I clear the cache, I get this message.

Symfony\Component\DependencyInjection\Exception\RuntimeException: You have requested a non-existent parameter "app.root". in Symfony\Component\DependencyInjection\Compiler\DefinitionErrorExceptionPass->processValue() (line 37 of /var/www/call/vendor/symfony/dependency-injection/Compiler/DefinitionErrorExceptionPass.php). Symfony\Component\DependencyInjecti ...

Score: 0
NataN avatar
How update a webform submitted value clicking in a button?
in flag

How can I update a submitted data just clicking in a button? I have created a View table of webform subissions and I would like to add a collumn with a button "Aprroval". When user click on this button, the data value must be updated. My intention is optimize the "edit" and "save", avoiding the Form edit screen. Add a custom action in a "Webform submission operations bulk form" solves my problem too.

Score: 0
How to programmatically append fields to node object when cloning with createDuplicate()
in flag

I am trying to setup a custom module which copies values from a node whose content type is A to a node whose content type is B. For the most part, the content types have the same fields, but B has a few additional fields.

A

  • Title (title)
  • Body (body)
  • Date (field_date_agenda)

B

  • Title (title)
  • Body (body)
  • Date (field_date_agenda)
  • Number of items (field_int_how_many)
  • Reference to A (field_noderef_nta)
  •  ...
Score: 1
yohei shibasaki avatar
I want to create custom taxonomy field module
es flag

What I want to do

I want to realize this on Drupal9.

  • Finally,I want to create the custom field on a webform.
  • With this custom field,Submitter who use the webform can add a new taxonomy term to a vocabulary (This vacabulary is predetermined in module) on this webform.
  • This field is text field.
  • If the new term already exits in the vocaburaly,it isn't added to the vocabulary.
  • If it is possible,the  ...
Score: 0
Fixing different configs
ng flag

After I have run drush cim successfully, I can run drush cst and I see a great number of entries where the configs are "different". What is the best method to fix this?

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.