Trending questions

0 votes
1 answer
14 views

How do I get a list of deprecations when running phpunit tests?

When running phpunit tests, it will often output a list of deprecation notices; example: Remaining self deprecation notices (3) 3x: Renderer::renderPlain() is deprecated in drupal:10.3.0 and is ...
Liam Morland's user avatar
0 votes
1 answer
37 views

Set default values of number fields in custom webform element

My custom webform element, which extends Number, should get some default values for the number fields: protected function defineDefaultProperties() { // Here you define your webform element's default ...
macbert's user avatar
  • 414
-2 votes
1 answer
33 views

How do I create an exposed sort using values not stored in the database?

I have to create an exposed sort in views related to group where values are not stored in database.I have calculated the custom time duration for each group.This value is not stored in database as it ...
Aziya's user avatar
  • 1
-4 votes
0 answers
26 views

Issues with SimpleSAMLphp authentication: account linking and URL cleanup

I'm working on a Drupal 9.5.11 site and using SimpleSAMLphp (version 2.0) along with the simplesamlphp_auth module for SAML-based authentication. I'm facing the following issues: Account linking ...
Shamli Joshi's user avatar
0 votes
2 answers
96 views

How can I disallow blocks and views from being cached by render cache?

I have read a couple of similar questions and tried various methods in these tickets to disable any caching for this particular page of the site in Drupal 10 to no avail. These included invalidating ...
Alimba's user avatar
  • 127
0 votes
2 answers
31 views

How to define Trusted Host pattern in settings.php via Docker environment variable

I'm trying to add the Trusted Host in settings.php via the Docker environement variables and it doesn't work, When I tried to hardcode the value in 'trusted_host_patterns' it works fine. Drupal ...
sam's user avatar
  • 1
0 votes
0 answers
20 views

Drush Ignoring STDIN? [closed]

Drush 13.6.0 seems to ignore STDIN echo n | drush cim --diff > cim.diff I've used this combination in the past with the expected results - drush would not perform a config import after redirecting ...
mmrtnt's user avatar
  • 101
0 votes
0 answers
20 views

Drupal re-compiling twig files on frequent intervals causing endless number of compiled twigs under php/twig folder

I am facing a problem where Drupal is re-compiling twigs on frequent intervals (~4.5s average). While debugging I found Drupal state CACHE_PREFIX_METADATA_KEY is getting NULL which is triggering the ...
arpitr's user avatar
  • 7,876
0 votes
1 answer
22 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 ...
Marsh's user avatar
  • 101
1 vote
1 answer
26 views

How to debug Drupal when not generating image styles for one specific style

I have this very strange bug on my Drupal 10 website. Images of one specific image style are not generated. It is the default large image style at this moment. Other image styles are generated with ...
Joost's user avatar
  • 1,418
0 votes
2 answers
43 views

How can I show user chosen selected options in Views Header Results?

Using Drupal 10. I have created a page view that shows teaser content (using layout builder) of a given content type, and have an exposed form that gives the anonymous user/ website visitor options to ...
Notion's user avatar
  • 21
-2 votes
1 answer
90 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-...
therobyouknow's user avatar
0 votes
0 answers
15 views

hook_entity_type_alter is throwing an error with phpunit

I'm trying to make some unit test in my drupal 10 website. Here's my base test : class MyServiceTest extends KernelTestBase { protected static $modules = [ 'base_module', 'secondary_module',...
lucrece's user avatar
1 vote
1 answer
67 views

PHP Parse error when running PHPStan during GitLab CI

I'm working on implementing GitLab CI using Drupal's GitLab Templates with my custom modules. I've got everything else passing except PHPStan which fails with the error: PHP Parse error: syntax error,...
GlassB's user avatar
  • 43
0 votes
0 answers
13 views

Autcomplete fields breaking on failed form validation in Ajax Dialog Modal

I have a D10 site, which uses an ajax dialog box to open a modal window, which includes a node/add form. I should also add this is a non-standard form display mode. I have a bit of markup where I add ...
John Brandenburg's user avatar

15 30 50 per page
1
2 3 4 5
5877