Latest Drupal related questions

Score: 0
Which cache should I invalidate in a block plugin that builds render arrays for one or more views?
in flag

The real issue is that the plugin will sometimes be returning render arrays that are discrete block displays from the same view, possibly also with different arguments. What I'm discovering is that in these cases, the first render array is cached so that the subsequent displays are the same as the initial one. I'm building the render arrays with buildRenderable($display_id, $args, FALSE), which will  ...

Score: 0
Rubix05 avatar
Show two unique exposed filters in different blocks for the same view
cn flag

I have a view that has 3 exposed filters; two Taxonomy Terms and a Search Field.

I want the two taxonomy terms to appear in the Left Sidebar and I would like the Search Field to appear above the search results.

I have an additional requirement that keeps me from using the search API and the facets module so the only other alternative I can think of is to make this work using exposed filters in a blo ...

Score: 1
Uninstalled module prevent upgrade
do flag

I have been asked to upgrade a site from Drupal 8 to Drupal 9.

Previously, there was a very problematic module called 'support_ticket' that caused many issues and would not properly uninstall. After a lot of work - I thought - it had been removed.

However, when running the drush updb command after the drupal 9 upgrade I got the following error:

>  [notice] Update started: system_post_update_entity_ ...
Score: 0
Chris avatar
How do I prevent filtering of parent when adding a filter to a relationship?
be flag

I have a view of users which includes a relationship to a multi-value paragraph field. I’m adding a filter to the paragraph if field_current is set to true, to show only the current paragraph. But the side effect of this is that users are not included in the view if a current paragraph doesn't exist.

Is there any way to avoid filtering out the users, and just show empty fields if there isn't a c ...

Score: 0
Burly Uranus avatar
Can I add elements to a field widget with AJAX?
lb flag

I want to add fields depending on the first option selected. I also made a form with a similar behaviour but it wasn't a field widget.

I used this module as an example to make the form

I'm not sure if the way I implement this AJAX behavior should be different in a widget.

Can the behavior of this form be implemented in a field widget? I'm trying to look for examples of specifically field widgets  ...

Score: 0
nschildre avatar
list_string field data disappears after making edits to node
ng flag

I am maintaining a Drupal 9 site that I inherited. Unfortunately, if I attempt to edit any of the nodes, all the fields of type list_string are empty in the next revision. I did notice that the list_string fields are also showing up empty when I just look at the edit form.

The node data is created by the Webform module and the webform content creator. The issue is not when creating the nodes as t ...

Score: 1
Trying to get to the bottom of an out of memory error related to the database
cn flag

I've inherited a highly problematic site built in Drupal 7. Upon installing the site on my dev space I get a 'This page isn’t working' error 500. Looking at the web logs I get this message:

lmu.[sitename].co.uk [Sat Apr 23 15:39:03 2022] [error] [client 86.174.32.32:0] AH01215: PHP Fatal error: Out of memory (allocated 56098816) (tried to allocate 459743 bytes) in /home/sites/[sitename].co.uk/public_ ...

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.