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
1
vote
3 answers

"Uncaught TypeError: posts.map is not a function" , How to solve this error?

So I was fetching data from my local drupal instance in react js. I pass the data from drupal with json api module (Which send the data in json format). The following image is the data in form of json api. And following is how i am fetching the api…
Omkar Dhumal
  • 91
  • 1
  • 8
1
vote
0 answers

Add special character to ckeditor5 in Drupal 9

The CKEditor 5 documentation shows the easy way how to add special characters to CKEditor 5 (https://ckeditor.com/docs/ckeditor5/latest/features/special-characters.html): import SpecialCharacters from…
1
vote
1 answer

Drupal 9 - Allow access to a page only from a specific domain

How to allow access to a Drupal file/page only from a specific domain? I have tried php filter module but enabling this module can cause security and performance issues as it allows users to execute PHP code on your site.
1
vote
0 answers

Why opening media page thows error in Drupal 9?

While I try to open Media page in Drupal, it throws error. Below is the error I got from log file. [Tue Nov 08 13:56:43.430322 2022] [php7:notice] [pid 27740:tid 1920] [client 127.0.0.1:50949] TypeError: Argument 1 passed to…
Bhavesh
  • 884
  • 7
  • 9
1
vote
1 answer

Drupal 9 fatal error attempting to generate content with devel

I freshly installed Drupal 9.4.8 a few days ago. I was following the instructions on how to generate temporary content for testing from this video and received a fatal error. I need to know how to fix the error so I can generate some temporary…
S. Imp
  • 2,833
  • 11
  • 24
1
vote
0 answers

drupal 9 phpunit functional testing database user issue

I'm trying to get up and running with drupal php functional testing. However there seems to be something wrong with my phpunit.xml cofiguration. When running the test i get the following error: PHPUnit 9.5.25 #StandWithUkraine Testing…
kevinius
  • 4,232
  • 7
  • 48
  • 79
1
vote
1 answer

Drupal 9 - Add new terms to existing field programatically

I'm having trouble adding a new term to an existing field on a Drupal 9 website. Attempts to set field values work for fields I've tested (ie: text and boolean) but not for taxonomy term reference fields. Not sure exactly what I'm missing. Below…
1
vote
0 answers

While implementing the Algolia search, facets are not filtering the search results

I am implementing Algolia search on my Drupal-9 website and using the following contributed modules: Search API Algolia Facets After configuring the modules, the content/data indexing is working fine and is reflecting on Algolia server. For search…
Mohit Wadhwa
  • 321
  • 1
  • 2
  • 12
1
vote
1 answer

Drupal 9: dd(), ddm() or drupal_dump() missing

I've installed D9 plus devel and created a custom theme (with all the necessary files, works nicely) and enabled all the necessary dev-centric settings, but it seems that the necessary functions like dd() or drupal_dump() are not found. I've already…
inQrt
  • 35
  • 5
1
vote
0 answers

overcome Drupal 9 composer update symfony version conflict

I'm trying update Drupal 9, but composer is failing on symfony/var-dumper or symfony/cache versions. $ composer update For additional security you should declare the allow-plugins config with a list of packages names that are allowed to run code.…
4jag
  • 11
  • 2
1
vote
1 answer

How can I add path alias to a drupal 9 view?

In a Drupal 9 installation there is a view where nodes are listed. Now I would like to do two things. 1: add a field with the node path alias to the view. 2: add an exposed filter to filter path aliases. Unfortunately I am not able to do this. The…
rhodes
  • 169
  • 1
  • 11
1
vote
1 answer

Ajax and hook_form_alter

I'm getting a "The value you selected is not a valid choice." error for an Ajax modified field when I submit a custom altered node/add form. An "Illegal choice error is also written to the log. This a Drupal 9 version of an app that I developed…
1
vote
1 answer

Install drupal project with drupal in a subdirectory

My customer a has production environment with the following folder structure: - www |- maresmuseum where I only have access to these two empty folders, being the "maresmuseum" the public_folder. I've deployed my Drupal 9 site with composer, like…
donbuche
  • 101
  • 1
  • 3
  • 10
1
vote
0 answers

Drupal 9 - Two different URL's work for same page

I have a Drupal 9.x version site, as an example whose page URL is like : http://www.example.com/general but we need that URL to be work as http://www.example.com/something/general also. It means, my every page of my site to be work (both URL's) with…
prakash
  • 11
  • 1
1
vote
1 answer

How to connect Drupal with Keycloak 18 for user creation

I am trying to connect drupal with keycloak for login. I have added client id, client secret and Keycloak realm , getting from keycloak server. Using modules - https://www.drupal.org/project/keycloak Link -…
1
2
3
20 21