Latest Drupal related questions

Score: 1
Kevin avatar
Certain users see 404 when logging in
in flag

We are seeing an odd error with certain users who are trying to log in to a Drupal 9 site. They are using the login form at /user/login, at which point they submit and are redirected to a URL like:

/user/form_action_p_pvdeGsVG5zNF_XLGPTvY....

Which results in a 404.

This only happens to 2 out of 20 users. If I use Drush to generate a login link, it works fine.

What could be causing this? There isn ...

Score: 1
Is there a way to fetch cache keys by a pattern or a cache tag
hk flag

I was trying to find if there is a way to fetch or count Drupal cache keys that match a pattern. I couldn't find a function in the CacheBackendInterface that does this.

The context is that I was trying to see if there is some way to show statistics around the different types of cache keys being used.

Score: 0
My log is filling up with "Missing filter plugin: filter_null." messages
bd flag

When I googled for this error, I found numerous hits mentioning the error message appearing during a migration, even stopping it. While I have done a migration from Drupal 7 to 9 that ran smoothly, this is during normal running of the now Drupal 9-based site.

E.g. I create a new content. As soon as I select the content type and the content form appears, I get this error. So it is probably not rel ...

Score: 0
updating $webform_submission values in the alterForm function of a custom webform handler
in flag

I'm running into a situation that I hope someone will be able to offer some advice and guidance as to my approach is not working at the moment.

We're building a webform which contains an email address field. When the user fills out this field we take their email address and do an account lookup within the validateForm function of our custom webform handler. The form submission is not saved within ...

Score: 1
pglatz avatar
hook_help() isn't recognized in my custom module
in flag

I created a custom module in Drupal 9.3.8 which implements hook_help() using code similar to what I have seen in other modules.

This is the relevant code in the node_usage.module file.

function node_usage_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {
    case 'help.page.node_usage':
      $text = file_get_contents(__DIR__ . '/README.md');
      // …
      break;
  }
 ...
Score: -1
Why cannot I upgrade?
bv flag

I'm currently working on upgrading a Drupal site from Drupal 8.9.7 to Drupal 9.

I'm getting this error when I run lando composer require "drupal/core:^9.3.8" --with-all-dependencies.

Your requirements could not be resolved to an installable set of packages.

Problem 1

  • Root composer.json requires overtrue/phplint ^0.2.4 -> satisfiable by overtrue/phplint[0.2.4].
  • drupal/core-recommended[9.3.8,  ...
Score: 0
unixmiah avatar
How do I upgrade jQuery UI?
cn flag

How do you upgrade jQuery UI in Drupal? Could this be accomplished with Composer or Drush?

Score: 0
How can I display a field from the current node?
br flag

How can I create a view block that displays a field from the current node?

It looks like there are contributed modules that provide this functionality, but it seems like it should be possible to achieve it with just the Views module and its contextual filters and relationships.

Score: 0
Writing to the temporary directory randomly stops working
bz flag

In one of the websites on production, when Drupal writes on the temporary directory, it randomly stops working with the following error, even though the permissions are set correctly, and there is enough space.

Temporary file data could not be written

The temporary directory is set to the DRUPAL_ROOT/sites/default/files/tmp directory.

Removing the content of the temporary directory solves the pro ...

Score: 0
Francesco avatar
Error while deleting a comment related to a paragraph
ht flag

I'm having a problem while deleting a comment linked to a paragraph. Has anyone encountered problems of this kind and would be able to help me with the solution? The error code is attached.

Thank you

    Symfony\Component\Routing\Exception\RouteNotFoundException: Route "entity.paragraph.canonical" does not exist. in Drupal\Core\Routing\RouteProvider->getRouteByName() (line 206 of core/lib/Drupal/Co ...
Score: 1
mauzilla avatar
Cannot change layout of translated paragraph nodes
cn flag

I make use of Paragraphs to build content nodes along with Drupal's translations to translate a node to a different language. Although the node can be translated, I am unable to move / reshuffle nested elements in the Paragraph layout, some I can do, others not.

enter image description here

What could possibly be causing this behaviour? Worth noting that on the original version of the node (the default language version) I am able to ...

Score: 0
How to fully reproduce dev environment with ddev?
za flag

I'm git cloneing a project that is run with ddev. After doing

  • git clone
  • ddev config
  • ddev start

and opening the hosted site, I get various errors, for instance:


    Warning: include_once(/var/www/html/includes/file.phar.inc): failed to open stream: No such file or directory in include_once() (line 716 of /var/www/html/includes/bootstrap.inc).
    Warning: include_once(): Failed opening '/var/www/ht ...
Score: 2
Joost avatar
Is there a way to check which system was used to send mail?
jp flag

Is there a way to check which system was used to send mail?

I followed Sending html mails in Drupal 8/9 programmatically. I'm using the SMTP module to make sure that emails are sent via SMTP instead of using the PHP mailer. Emails sent via my website seem to have a higher spam score than when the ones sent directly from my SMTP server. I wonder whether my mails are being sent via SMTP or not.

Is there a  ...

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.