Questions tagged [drupal-9]

Drupal 9 is the Drupal version that was officially released on June 3, 2020. Rather than using this tag, consider posting your question directly on https://drupal.stackexchange.com/.

The key changes in 9.0 are:

  • Deprecated code has been removed.
  • Dependencies have been updated to new major versions as appropriate.
  • Platform requirements (supported PHP and database versions) have been increased.

Compared to Drupal 8.0.0, Drupal 9 is more usable, accessible, inclusive, flexible, and scalable than previous versions.source

  • Drupal 9 is dramatically easier to use for marketers
  • Drupal 9 is easier to maintain and upgrade for developers
  • Drupal is innovating with its headless or decoupled capabilities

Use this tag only if your question relates specifically to this version.

Requirements

  • Web server: Web server: Apache, Nginx, or Microsoft IIS
  • Database server: MySQL or Percona 5.7.8, MariaDB 10.3.7, PostgreSQL 10 with the pg_trgm extension, SQLite 3.26
  • PHP: 7.3 or higher

Note: Drupal 8 and later versions work on any web server with a version of PHP that meets the PHP version requirements. the version requirement for Apache has been increased to Apache 2.4.7 or higher.

Related tags:

Resources

305 questions
8
votes
1 answer

The entity type [entity name] does not have an "revision_created" entity revision metadata key

I am using Drupal 9.0.5 as recommends Drupal site. I created a first entity content type, but I got the message "The entity type [entity name] does not have an "revision_created" entity revision metadata key.".
Jasmin
  • 103
  • 5
2
votes
1 answer

Looping through nested paragraphs on twig file (entity reference revisions list) in twig

I have double nested paragraphs which I am trying to loop through on my twig file. The paragraph structure is as follows: SLIDER WRAPPER PARAGRAPH reference slide paragraph (entity reference revisions) SLIDE PARAGRAPH title (text field) reference…
jessie_ri
  • 21
  • 2
2
votes
1 answer

How do I get a node by its path_alias? And a path_alias by a node?

I'm trying to get raw data from a Drupal 9 install and I'm just looking for plain SQL to get a node by its path alias: +--------+-------------+--------------------------------------+----------+-------------+-------------------+--------+ | id |…
Kyle Corbin Hurst
  • 917
  • 2
  • 10
  • 26
2
votes
1 answer

Drupal 9 How to add pager with entityQuery

We've a Drupal 9 installation and are trying to add a pager using the pagerer module for articles entityQuery, the aim is to list tagged articles in a tag page, but it’s not working. It returns null. When we dump the data without the pager, using…
2
votes
1 answer

How to add image to node programmaticly?

There is an entity in which I added the Image field. The database has a custom table with different columns, including the id of the images. Previously, I created a batch that writes data from this table to entity fields. That is, it creates many…
nion
  • 21
  • 3
2
votes
2 answers

How do I update Drupal 9 from ssh command line on OVH server?

I installed Drupal in one click on a OVH server. First bad surprise: I discovered that the installed version 9.1.9 needs a security update to 9.2.9. Second bad surprise: drush was not installed by default. So I had to install first composer in order…
Pierre François
  • 5,850
  • 1
  • 17
  • 38
2
votes
1 answer

Dumping variables in phpUnit results in "Test was run in child process and ended unexpectedly"

When writing my test I used to be able to dump out variables using the dump and die function dd(). However on new projects it seems to throw "Test was run in child process and ended unexpectedly" whenever there is a die anywhere in the code instead…
Jimmyb_1991
  • 346
  • 5
  • 12
2
votes
5 answers

How to get current page URL in Drupal?

I'm trying to output the current page URL on a Drupal site (Drupal 7), I've tried the following... Which outputs the page name but not the URL, any ideas on how to output the full URL too?
steffcarrington
  • 404
  • 3
  • 13
1
vote
1 answer

How can i resolve "unknown flag: --progress" error when ddev start?

I'm trying to start my drupal 9 site with ddev and I am having an error unknown flag: --progress The result when I type ddev version: ITEM VALUE DDEV version v1.22.0 …
1
vote
0 answers

Drupal 9 - How to output field value from the 'Basic Page' content type into webpage sidebar using block.html.twig

New to Drupal and trying to output the value of a textfield called mytextfield from my Basic Page content type edit page into the webpage sidebar. I have the sidebar configured with a region set in Block Layouts and that displays fine. Now I want to…
User301276
  • 55
  • 1
  • 8
1
vote
0 answers

How to configure the decimal inputs in Better Exposed Filter module in Drupal?

I have a problem with using Better exposed filter 6.0.3 in the view to filter the number values with decimal. In range minimum, range maximum and Step it shows like it allows certain decimal digits to give input. But it is not allowing to give…
1
vote
1 answer

How to add custom option in the table properties ckeditor 5 in drupal 9

I have a site based on drupal 9 and I am trying to add a new option like (Responsive: Yes/No) in the properties of the ckeditor 5 table.
L.wadii
  • 59
  • 1
  • 9
1
vote
1 answer

Getting the plain text password submitted in D9 Registration

I need to be able to "intercept" in a way the plain text password to clone the registered user from a D9 site over to a D7 site via API. Alternatively if anyone knows a way to just migrate a D9 encrypted password to a D7, that would be helpful as…
1
vote
1 answer

No 'Access-Control-Allow-Origin' header is present on the requested resource. on the Pantheon Site

I have created a Webservice in Drupal 9 of the Pantheon (Locked) Site that I need to call from another domain. I have tried almost all the solutions I found but nothing is working. services.yml # Configure Cross-Site HTTP requests (CORS). # Read…
Sami Ahmed Siddiqui
  • 2,328
  • 1
  • 16
  • 29
1
vote
0 answers

passing value from custom preprocess theme hook function to a template in drupal 9

Situation: I want to write a proprocess PHP function [theme]_preprocess_example__p1 that adds variables to a page template file example--p1.html.twig but the variable cannot display properly if I inlcude the template to…
milawithict
  • 175
  • 1
  • 15
1
2 3
20 21