Most active questions
13 questions from the last 7 days
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 ...
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 ...
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 ...
-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 ...
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 ...
-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 ...
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 ...
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 ...
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 ...
0
votes
1
answer
13
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 ...
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',...
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 ...
0
votes
0
answers
6
views
Max message length of unique element of webform
The max message length for element marked as unique is 128. How to increase it? Note that the default message length is 155.