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.

579 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5 votes
0 answers
143 views

How does the Geolocation content of a page filter is a Views block?

I have a website with Drupal 9 and the Geolocation module : https://www.drupal.org/project/geolocation I created a content type with a Geolocation field that contains coordinates. My website uses the ...
user avatar
4 votes
1 answer
128 views

How can I have Behat create content with an address field properly filled?

I'm writting a Behat test, where I'm triying to create a content that uses a field address, generated by Address Module. I'm using Drupal 9.0.7, Address Module 1.9.0 and behat 3.8.1. My goal is to ...
user avatar
3 votes
0 answers
68 views

How to filter book pages by book with Views? ( how to integrate book with views)

At the moment on Drupal 9.3 there is very poor integration between views and Book Module. how to create a view to show all the book pages with functionality to filter ( an exposed filter) them by ...
user avatar
  • 20.8k
3 votes
0 answers
470 views

Schema information for module is missing - how to fix?

I tried to install the Scheduler module but it did not install properly because we somehow did not have code for another custom module that the database thinks was installed. I got the code for the ...
user avatar
3 votes
1 answer
125 views

Is there an event related to the creation of a session cookie for anonymous users?

I need to set an additional cookie whenever an anonymous user received a session cookie. This happens when selecting a facet in Search API for example. The specific use case is that I need an extra ...
user avatar
3 votes
0 answers
20 views

QuickEditIntegration can't process components for Quick Edit

I have a content type that is displayed with Layout Builder. When I view it in default mode, the Quick Edit option does not appear in the contextual menu. This is because none of the fields have the ...
user avatar
3 votes
1 answer
65 views

How to get all search results of search api index?

I want to get all the search results from the search API index and then perform a custom sort on it and then display them accordingly. I used the hook_search_api_results_alter and also the search ...
user avatar
  • 2,697
3 votes
0 answers
135 views

Menu link tree only loads enabled elements in subtree regardless of parameters

When loading a menu tree without any custom parameters: $tree = \Drupal::menuTree()->load('my-menu-name', new MenuTreeParameters()); The returned tree \Drupal\Core\Menu\MenuLinkTreeElement[] ...
user avatar
  • 253
3 votes
0 answers
141 views

How can you require users to change their passwords on first login after migration?

We are planning to migrate users from another CMS to Drupal. We can migrate usernames, but not passwords as the encryption is different. So we shall have to assign passwords to them. Earlier versions ...
user avatar
3 votes
1 answer
763 views

Site errors out when trying to create a subtheme based on Classy

I'm creating a custom theme in Drupal 9 and am trying to use classy as my subtheme but get the following error: The website encountered an unexpected error. Please try again later. Drupal\Core\Theme\...
user avatar
2 votes
0 answers
32 views

Variations created with a queue worker sluggishly slow

The site my team is currently building is meant to import a list of all available trips for a travel booking agency. The method we settled for (for now) can be summarized as such : A daily cron job ...
user avatar
2 votes
0 answers
30 views

Problem with same webform added multiple time in a page

Problem I have an Article node with layout builder enabled for content author. I have webform Subscribe newsletter with ajax enabled. I add webform Subscribe newsletter to the node twice. So there are ...
user avatar
  • 254
2 votes
0 answers
76 views

Why isn't an image from the local domain shown with the explanation that, for security reasons, only images from the local domain are allowed?

I'm running Drupal Core 9.3.7, with basically the default set up. The Basic HTML editor is CKEditor. If I include an image in a page, that image is not shown when I view the page; on inspection, it is ...
user avatar
2 votes
0 answers
65 views

I cannot access PDF files uploaded in the private directory

PDF files uploaded to the private directory cannot be viewed and returns a 404 error. This also happens to the user with the Administrator role. Other file types can be viewed with no issue. This ...
user avatar
2 votes
0 answers
43 views

Drush 10 pass alias to remote

Our remote environments are currently fronted by a Linux instance acting as the gatekeeper between the developers and the actual environments (apache and mysql instances running Drupal). This was done ...
user avatar
  • 1,134
2 votes
0 answers
125 views

"A non-existent config entity name returned by FieldStorageConfigInterface::getBundles()" errors in watchdog

After migrating from 7 to 9, I'm getting a lot of these errors in watchdog, from views. A non-existent config entity name returned by FieldStorageConfigInterface::getBundles(): entity type: paragraph,...
user avatar
  • 3,929
2 votes
0 answers
37 views

How can I change the format used for <pubDate>?

I'm using Drupal 9 to display a RSS feed with the Aggregator module. For the imported items, the date for <pubDate>Wed, 24 Nov 2021 20:05:46 +0000</pubDate> is showed as 2 months 3 weeks ...
user avatar
  • 21
2 votes
0 answers
24 views

Page with multiple displays on the same path does not respect the different access rights

With Drupal 7, it was possible to define in Views a page with several displays, having all the same URL. By ordering the displays in descending order of access level (Administrator first, Anonymous ...
user avatar
2 votes
0 answers
59 views

How to add Rabbit Hole to a custom content entity

We use the module Rabbit Hole for nodes and terms. Now we would like to use it also for our custom content entities. I have tried to find some information, how to add the Rabbit Hole to a custom ...
user avatar
2 votes
0 answers
24 views

How can I retain the destination parameter when a user registers a new account with email verification?

This is for a Drupal 9 website. How can we retain the destination after a user registers a new account that requires email verification? Example workflow: User clicks to create a new node but does not ...
user avatar
2 votes
0 answers
97 views

How use subqueues of entityqueue module?

I'm on D9 and already using entityqueue module to let the content editors orders some views via "simple" queues Now, I've been requested to make possible to order the nodes appearing on the ...
user avatar
  • 490
2 votes
0 answers
176 views

How do I fix the base URL issue while using load balancer

Since base URL is deprecated, and our Drupal 9 Site is using a load balancer, we are facing issues when setting up the base URL. Instead of the base URL, it displays the load balancer IP. Any help ...
user avatar
2 votes
1 answer
34 views

Migrate order billing profile

I'm trying to migrate order data from an existing site using CSV files and I can't get the billing profile to relate. In trying to troubleshoot this, I have it set just to insert a default value of a ...
user avatar
2 votes
0 answers
67 views

S3FS IMCE File upload issue for old files in Upgraded site

I have a question on IMCE File upload. Hope someone might have come across the similar issue. Installed modules: https://www.drupal.org/project/s3fs https://www.drupal.org/project/imce We have added ...
user avatar
2 votes
0 answers
520 views

Missing bundle for entity type node after upgrading

I recently upgraded a local sandbox to Drupal core 9.2.4. While testing things out, I got an error when trying to add a new article content from /node/add/article. The log shows the following message. ...
user avatar
  • 73
2 votes
0 answers
35 views

Add an image to a vocabulary

I need to add an image to a vocabulary, not the taxonomy terms. Essentially, I need to add a field to the "Edit Vocabulary" page. Is there a way to do this?
user avatar
  • 480
2 votes
2 answers
165 views

Basic kernel test fails with Type of Drupal\KernelTests\Core\Entity\EntityKernelTestBase::$modules must be array

Trying to port a Drupal 7 module to 9 with accompanying test and getting this error immediately when running it: PHP Fatal error: Type of Drupal\KernelTests\Core\Entity\EntityKernelTestBase::$modules ...
user avatar
  • 26.5k
2 votes
0 answers
49 views

How to add conditional on Gutenberg's color theme-support?

I've added the Gutenberg theme-support on my custom theme. I want to add conditional based on text color and background color. For example, selecting the black color background will reset the default ...
user avatar
  • 985
2 votes
1 answer
63 views

Is there a way to check which system was used to send mail?

Is there a way to check which system was used to send mail? I followed Sending html mails in Drupal 8/9 programmatically. I'm using the SMTP module to make sure that emails are sent via SMTP instead ...
user avatar
  • 892
1 vote
0 answers
5 views

How do I make an exposed drop-down filter filter on a grouped set of date fields?

We have a Drupal 9 View of nodes that have a date field. The node dates will all be for a particular day for one specific week (for an event). We have the View formatted set to group the dates and ...
user avatar
1 vote
0 answers
28 views

When I add a particular field, the preview disappears. Why?

I have a Drupal 9 view which shows the fields of a particular content type. This content type has a particular field, ver. When I add this field in the view, the preview disappears and I get this ...
user avatar
1 vote
0 answers
16 views

How to write time range condition for datetime field?

I need a query that will show events only in specific time range. For an example: Event 1 -> 2022-06-12T20:00:00 Event 2 -> 2022-06-11T11:00:00 Event 3 -> 2022-04-12T09:00:00 Event 4 -> ...
user avatar
1 vote
0 answers
29 views

My custom block doesn't show up in the block library

I'm writing a custom Drupal 8 module that creates a block. On my local sites, I can enable this module and add this block to whatever region I'd like, and the block shows the correct contents. ...
user avatar
1 vote
0 answers
33 views

Session/cookie not working for some data on certain conditions

I'm trying to simply redirect to a certain page after is visited. The scenario : the user click on a link. If the user a certain data (a store, for drupal commerce), he can go to my node. If not, ...
user avatar
  • 31
1 vote
0 answers
7 views

How assign new simple_oauth scopes?

I've a problem with simple_oauth module and scopes, on a D 9.3.x site. I'm using it to authenticate user in a decoupled front-end in Next.js. The case is: A (new) user log-in without roles expect ...
user avatar
  • 490
1 vote
0 answers
26 views

How can I add a patch to a distribution?

Distributions add patches as links to www.drupal.org / git.drupalcode.org, as these distributions. https://git.drupalcode.org/project/thunder/-/blob/6.3.x/composer.json https://git.drupalcode.org/...
user avatar
1 vote
0 answers
37 views

Theme suggestions file-video.html.twig

I have a block with the media field video bundle (drupal 9) and it renders the video through the file-video.html.twig. I have copied template to my custom theme from core. What do i need is to ...
user avatar
1 vote
0 answers
51 views

How can I extend Serializer to handle a custom field type?

I'm trying to extend Serialization to get the JSON Field module to return a JSON object instead of stringified JSON. Goal: When I access an entity that contains a JSON field using JSON:API, I want a ...
user avatar
1 vote
0 answers
15 views

Why is the order/weight of blocks added to region not saved?

I have used layout builder to manage display on the default display of a content type.I have not selected "overrides allowed" so that this is the global layout for this content type. I see ...
user avatar
  • 844
1 vote
0 answers
26 views

Access permissions with the Entity Print module

I installed the Entity Print on my site. It works perfectly when used from the administrator user, but it doesn't work with anonymous users. It gives the following error. Access denied on the url /...
user avatar
1 vote
1 answer
25 views

Search is very slow for certain roles

I'm a bit lost here. I have a strange problem and don't know where to begin. I use the core search function on a website I build. When I am logged in as administrator this search function is working ...
user avatar
  • 892
1 vote
0 answers
29 views

Change the state of a checkboxes field

I know how to use conditions with Form API for fields like text-field, checkbox, for example, showing or hiding a field when a checkbox is checked. $form['lorem'] = [ '#type' => 'checkbox', '#...
user avatar
1 vote
1 answer
56 views

Migrate CSV to content type with paragraphs

I'm trying to import a CSV File into Content Types and Paragraphs, using Migrate module (and mainly this tutorial : https://mtech-llc.com/blog/charlotte-leon/migration-csv-data-paragraphs). For this I ...
user avatar
1 vote
0 answers
68 views

View with a path of api/VERSION/foo/bar/%node - %node is not being upcast to a Node object

I am trying to create a handful of Views with a REST Export display. They have paths set behind 'api/.../.../.../%node' where %node will be an ID sent to the request to be upcasted. The basic View has ...
user avatar
  • 26.5k
1 vote
0 answers
32 views

Create a Context/Condition and get a view display used on the page

I want to create a context/condition plugin that checks the total results returned from a view display on the page (its a block), and if its less/greater than a certain figure, hide certain peripheral ...
user avatar
  • 26.5k
1 vote
0 answers
24 views

JSON:API FieldEnhancers - removing a resource object from a JSON:API response

I need to remove a resource object (in this case a paragraph) from a JSON:API response when it matches a specific condition. I do not want to delete it, I just want to exclude the object from the ...
user avatar
  • 11
1 vote
0 answers
22 views

Why am I getting different results for entity::save() between REST and web?

I'm refactoring my user entities to use entity bundle classes. Before, I saved the value of a time offset in a field using hook_user_presave(): // Initialize in user timezone. $user_timezone = ...
user avatar
1 vote
0 answers
55 views

Uninstalled module prevent upgrade

I have been asked to upgrade a site from Drupal 8 to Drupal 9. Previously, there was a very problematic module called 'support_ticket' that caused many issues and would not properly uninstall. After a ...
user avatar
  • 1,125
1 vote
0 answers
64 views

Drush can't write to /tmp

Drush does not seem to be able to move files to the tmp folder on my local machine. Changing the tmp folder location to for instance "sites/default/files" works, but I would like to know why ...
user avatar
  • 91
1 vote
1 answer
36 views

Key based access control for private files

I'm building a site that provides paid video content, for embedding in customer's own sites. I'm successfully controlling access to the nodes that contain the video content based on purchasable user ...
user avatar
  • 195

1
2 3 4 5
12