Questions tagged [11]
Version tags should be used for questions that apply to a version only, not to merely say what version a site is using.
39 questions
0 votes
1 answer
13 views
How to use hot reload with vite when a PWA that uses cookie auth is hosted from a subdirectory?
I have a Drupal site (full regular Drupal site) that also has a PWA (decoupled frontend made with vite/React). This PWA is hosted at a subdirectory of my domain (www.example.com/pwa). The PWA uses ...
3 votes
0 answers
33 views
How do I override validation error messages?
I'm currently working on a Drupal 11 project where the client wants the validation error messages on the user forms to be a bit more user-friendly, i.e. "Please enter your email address" ...
-1 votes
1 answer
63 views
How Do I Change Submit Button Label inside Off-Canvas Dialog While Using Gin Theme?
Gin theme keeps changing the IDs of form elements inside Off-Canvas dialog, so I can't target elements using their IDs. So if I try to make modifications from the buildForm() method of my entity form, ...
1 vote
2 answers
113 views
SDC component CSS files are not being picked up on a page reload, requires "drush cr"
Working in the .../themes/custom/mytheme/components/component-name/component-name.css standard, none of the changes to this CSS file are seen in the browser until I do a drush cr. I do have ...
1 vote
2 answers
97 views
How to update the "Text Formats" of a field?
In the "Article" content type, there is a "body" text field. I have over 100 articles, and the "Text Formats" for this field is currently set to "plain text." I ...
0 votes
0 answers
38 views
The site does not send emails
I have sites running the following: D10.4.7 PHP 8.3.21 Mail working out of the box D11.1.7 PHP 8.3.21 Mail working out of the box D11.2.2 PHP 8.3.21 Mail not working. I have ensured that the modules ...
2 votes
1 answer
87 views
How can I remove references to the Tour module?
I've updated to Drupal 11.1.2 from Drupal 10 but when I try importing configs I get this error. TypeError: Cannot assign null to property Drupal\tour\Entity\Tour::$module of type string in Drupal\...
0 votes
1 answer
89 views
Manually install a new library
In which directory should a library be placed to be recognized in Drupal 11? I need to install PHPMailer library manually because the server doesn't have composer.
5 votes
0 answers
67 views
Is there a standard approach to convert a distro to a recipe?
There's a case for some distros to become recipes instead. To my mind this enables devs to upgrade other parts of Drupal like the core and modules without waiting for the distro maker to release a new ...
0 votes
1 answer
55 views
Configured Image style options not showing in CKEditor when uploading image (not media)
In CKEditor I am using the image field (not media) to upload an image. I would like to set the size for that image by selecting one of the image styles that are configured in Drupal, but only the ...
2 votes
1 answer
215 views
Is there a GUI way to change field labels on the build-in contact form?
I'm trying to change the label "Your email address" on the built-in "Website feedback" contact form, from "Your email address" to just "Email". I know this can ...
0 votes
1 answer
92 views
No .htaccess file for not fully protected private files directory
I have tried relying on Drupal to set the .htaccess, but that is not working, nor are any of the examples that I've come across. Both the private files directory and the .htaccess file are owned by ...
-2 votes
1 answer
515 views
How to install Drupal CMS using Composer?
Can composer be used to fetch the code for Drupal CMS, like for Drupal 10, 11? For example, Using Composer to Install Drupal and Manage Dependencies provides this for Drupal core: composer create-...
1 vote
1 answer
117 views
Why can't my kernel test find my module in sites/default/modules/custom?
TL;DR: I'm trying to write a kernel test for a module located on sites/default/modules/custom/example_module, but Drupal fails to find the module to install it in the test. I have a Drupal 11 multi-...
0 votes
0 answers
51 views
Access denied on checkout for programmatic anonymous order with shipping
I created a custom Form to populate a commerce order programmatically, with an anonymous checkout flow and shipping enabled. The code in the Form's submitForm() method is as follows (it is a base-...