Questions tagged [9]
Version tags should be used only for questions that apply to a version only, not to merely say what version a site is using.
1,752 questions
1 vote
1 answer
55 views
How come a totally standard installation does not autoload enabled modules?
I consider installations like this pretty standard. composer create-project --no-install drupal/recommended-project:9.5.11 . composer config platform.php 8.1 composer config allow-plugins true ...
0 votes
1 answer
35 views
How to trigger custom code when node is saved via UI with Content Moderation enabled?
I'm developing a custom Drupal 9 module that needs to synchronize URL aliases from English nodes to all translations. The module works perfectly when nodes are saved programmatically (via Drush), but ...
0 votes
1 answer
59 views
Search API endless loop on get getItemIds
I'm trying to implement a super simple proof of concept for pulling in non-drupal stored content into search api via Solr. The plugin is super simple: <?php namespace Drupal\sla_indexing\Plugin\...
0 votes
0 answers
65 views
How can I pass a variable from hook_node_view() to a template file, and render it?
In hook_node_view() that overrides/edits the view of a specific content type, I put the data that I want into a variable, but I don't see how I can render that in the template file. function ...
-2 votes
1 answer
60 views
User account migration using Simplesaml 2.O
I'm working on migration of a drupal site from Drupal 8.9.20 version to Drupal 9.5.11 version. I was using SimpleSAMLphp1.9 with Drupal 8 and now upgraded it to SimpleSAMLphp 2.0 for Drupal 9. I'm ...
0 votes
1 answer
98 views
Remove 'header' tag from view header display
I have a view, which includes an entity in its header, however when displayed the entity content get wrapped in <header> tags, as this is not good for accessibility [edit: apologies, this is not ...
0 votes
1 answer
55 views
Focal point: "Remove" button missing
I'm using the focal point 1.5 module with Drupal 9.4. When editing an image that has the "Image (Focal point)" field type set, the "Remove" button is missing - and I can't replace ...
1 vote
0 answers
21 views
How to translate metags for Views
On a Drupal 9 site, I am using the Metatags for Views and using that I have added Metatags for one of the View displays. I can translate the Header text from the configuration translation. However I ...
0 votes
0 answers
57 views
How do I set up a context filter to use transliterated taxonomy terms in URLs instead of their original names?
I have a question. 1) Question: In Drupal 9, I am creating a Views based page with a context filter that takes a taxonomy term from the URL. For example: /my-view/%[product-type] The taxonomy terms ...
1 vote
1 answer
71 views
Contextual filter "Content ID from URL" doesn't work in page preview
Some of my pages have a banner image, which is rendered from a view block. The view has a contextual filter "Content ID from URL". This loads an image based on the value of the media that is ...
1 vote
2 answers
272 views
Disabling Big Pipe on specific page?
I have a specific page where I'd like to disable Big Pipe. The route of that page is entity.node.canonical, so I don't think doing an alterRoutes() is the correct approach. What other options do I ...
-3 votes
1 answer
123 views
How to resolve RouteEnhancerInterface error - D9.5?
It seems impossible to upgrade. I need to upgrade a couple sites from Drupal 8 to Drupal 9 en route to Drupal 10. In upgrading from Drupal 8.9 to Drupal 9 the composer part works fine. However, ...
-4 votes
2 answers
122 views
CPU high usage and database down after performing delete token [closed]
Whenever Drupal users create or modify from the Drupal Interface and rebuild the cache, then immediately the Drupal website goes down. when we check the logs there is an error as below, This error we ...
-1 votes
1 answer
46 views
how to check only some options in a form with hook form alter
i am using hook form alter on drupal 9 and I want some of the select options to be checked . I can change the select options, but i can't make only some of them be checked i tried setting the default ...
0 votes
0 answers
94 views
Entity print with DomPDF doesn't work on Pantheon
I have a Drupal 9.3 site with PHP 7.4 that is hosted on Pantheon where I am using Entity print module with the DomPDF. The entity print does work perfectly locally that uses Lando but it's not working ...