Latest Drupal related questions

Score: 0
chap avatar
Strange "Mismatched entity and/or field definitions" error
tn flag

I know there are plenty of other threads about this but I believe mine is a strange one and I've spent the last day debugging its cause with no luck so far, so hoping someone with more knowledge about schemas/field storage can help me.

First, a little background on what I am doing. I have a set of config which is packaged up using the features module and deployed as a package to a number of our o ...

Score: 0
Multi-step Form and Cookies
kz flag

I am brand new to Drupal (I'm a .NET developer), but I've had a Drupal site handed to me and I've been asked to trouble-shoot a problem. So far I haven't even been able to bring up the site on my dev box (due to database issues that I will hopefully solve soon). However, here's a description of the problem.

I have a multi-step form. I've found the "source" for the form in a "config\default\web ...

Score: 0
Bryan Dooley avatar
Summary not creating output in meta tags
ng flag

I have inherited a Drupal site that I can not update the modules or core. I have 500+ pages with blank meta description due to [node: summary] not working. [Node: title] works fine, and while updating the modules might be my only solution I was wondering if there is any work around I could apply as a quick fix.

Score: 0
Farhan Erooth avatar
Hide active term from the term page
ng flag

I have an article content type that has a taxonomy reference field that stores the author name. It can hold multiple authors in case the article is authored by more than one author.

As per the image given below, on the author term view page, I need to show only the co-authors names, hiding the current author. ie, if I take the Author1's page, the authors field should hide the Author1's name from the di ...

Score: 0
Hector Solutions avatar
DrupalKernel' not found after server migration
in flag

i am try to migrate a drupal site to a new server (from cPanel to Plesk).

  1. I copyied the files from old server and pasted on new server
  2. Export database via phpmyadmin and import on new database on new server, again via phpmyadmin.
  3. Edit settings.php (on /httpdocs/sites/default/settings.php) with new credentials for database connection on new server.

and i have the error:

Warning: include(/var/www/vhosts ...

Score: 1
How can i store a base64 image to my site's private folder?
cn flag

I'm trying to store a base64 image from a Signature field plugin (the plugin outputs a base64 text). But before i can store it to the private folder, i have to first convert it as a png image. This is how i normally do it if i just upload an image:

    // Signature Field on FormBuilder
    $form['signature'] = [
        '#type' => 'managed_file',
        '#title' => $this->t('Signature'),
 ...
Score: 0
How can I overwrite existing file and keep same filename when uploading new
bm flag

I have content type 'Document' and added the 'Upload document' field with type 'File' I want to replace file and update the node. I'm using below code

function custom_file_upload_form_alter(&$form, $form_state, $form_id) {
  if($form_id == "test_node_form") {
    $form['#submit'][] = 'custom_fileupload_submit';
  }
}

function custom_fileupload_submit(&$form, &$form_state) {
 $file = fi ...
Score: 0
Gabri avatar
How to change an exposed filter destination url?
ws flag

I have a blog view that contains some exposed filters. Using the Views exposed filter blocks i added the filters into the articles that are listed in the blog. The problem is that when i use the filter inside the articles it doesn't redirect to the blog view, and adds the query parameters in the articles itself.

/blog?author_id=5  
 
/article/lorem-ipsum?author_id=5  Makes the query inside the article ...
Score: 0
Error on local clone (MAMP)
ua flag

I cloned a version of a Drupal 8.9.20 site to a local installation (MAMP PRO). That seemed to word, but when I call the site I get an error:

The website encountered an unexpected error. Please try again later.

With verbose error mode I get further:

Error: Call to a member function id() on bool in Drupal\Core\Entity\EntityStorageBase->setStaticCache() (line 188 of core/lib/Drupal/Core/Entity/EntityS ...
Score: -3
ankur avatar
How can I programmatically add users?
ls flag

How can I programmatically add users to an organic group?

Score: 0
System updates, now config page errors, drush ends abnormally
cn flag

After an update failed I'm seeing the following issues. I have tried several things to recover. I do have a database backup, but I am not sure on how to restore using Drush (and I'm concerned because Drush is not working properly).

Symfony\Component\Routing\Exception\RouteNotFoundException: Route "markdown.overview" does not exist. in Drupal\Core\Routing\RouteProvider->getRouteByName() (line 208 of c ...

Score: 1
quantumized avatar
Permission denied on some private files, even though access is permitted
ng flag

Drupal 9.3

We have a site that allows private file uploads. We get intermittent files that cannot be viewed/downloaded, even with the "User 1" account.

There is no difference between a denied file and other files that can be viewed. The file exists in the Drupal Files Views and is used in 1 place as expected. The file exists on the server and has the same UNIX permissions.

Troubleshooting shows the Acc ...

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.