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
0
votes
0 answers

How can I add Commerce Wishlist share mail template variables from form?

I am trying to add 2 additional form fields to the Wishlist Share form where the user input will be rendered in the email. I have been able to add the fields to the form, but I am not sure how to add the user's input in the email twig template. Here…
L. Rohr
  • 11
  • 3
0
votes
1 answer

Hide a Drupal block on mobile devices

I'm making a new Drupal site which is based on a non-bootstrap theme and makes heavy use of blocks to place content. Some blocks display content that is better to hide on smaller screens to have a nicer look and feel. I want to hide them, but I…
0
votes
1 answer

Drupal 9 - Code modification doesn't take effect

I am trying to debug some code on my Drupal 9 application. For example, at the file web/index.php, I try to add die('Was here')
beta-developper
  • 1,689
  • 1
  • 13
  • 24
0
votes
0 answers

Drupal 9 user guide or documentation

I have spent a lot of time on getting Drupal 9 Documentation but I could not find anything specific to Drupal 9. Module Development is what mainly am looking for. I referred to https://www.drupal.org/docs and…
Mangesh Sathe
  • 1,987
  • 4
  • 21
  • 40
0
votes
1 answer

Changed user password programmatically by username

I'm am trying to change the password of a given user by their username in a drupal 9 module but I keep getting this error: Error: Call to a member function setPassword() on array in _password_change() This is the function I am using: $userName =…
0
votes
1 answer

Possible causes for 302 TOO_MANY_REDIRECTS? (Drupal 9 installation)

I have a problem today. I'm trying to install Drupal 9.0.7 on a server, but when I select a installation language other than english, I get an error screen telling me that there's been too many redirects. Error page I already enabled AllowOverrides,…
0
votes
1 answer

Restrict File type in File Upload

I have created a Webform in Drupal 9 and I am using File Upload Field of type document field. We have added condition in setting to accept only pdf, doc, docx files. However user is able to upload php files using the exploit throught script. However…
axysharma
  • 113
  • 1
  • 8
0
votes
1 answer

Updating issue for Drupal 9.0.3 to 9.0.6 using composer on Ubuntu 18.04

Hi I'm trying to update a drupal install from 9.0.3 to 9.0.6 its throwing an exception during the composer update Its installed on Ubuntu 18.04 I've run  composer update drupal/core-recommended --with-dependencies I'm getting the following…
duindain
  • 525
  • 3
  • 12
0
votes
1 answer

Drupal 9 - Uncaught ReferenceError: jQuery is not defined

I am trying to use an external Javascript library areYouSure in Drupal 9. I am getting the error "Uncaught ReferenceError: jQuery is not defined". My php code for form looks as below.
Austin
  • 1,709
  • 20
  • 40
0
votes
1 answer

Drupal 9 Account Data Storage Best Practice

Hi I'm creating a Drupal 9 custom module, and the module uses a 3rd party API key that the site admin will obtain and enter on the settings page. What's the best practice for storing this data? Is it as a custom configuration entity item? The API…
Acyra
  • 15,864
  • 15
  • 46
  • 53
-1
votes
0 answers

how to avoid in d9 with ckeditor5 causing "&" being changed to "&"?

how to avoid in d9 with ckeditor5 causing "&" being changed to "&" . iam creating custom block from frontend in drupal 9 when iam saving changing & to amp; can anyone help me. avoid changing changing & to amp; can anyone help me.
-1
votes
1 answer

calculate Computed Field from datetime-range/time-range field using custom module hook

OK, I've been struggling with this for days now. Hopefully someone can shed some light on this... Site is on Drupal 9.4.3 (currently the latest) using PHP 8.1.6 I have a content type with a datetime_range field setup to use as time-range (Start time…
sidgrafix
  • 133
  • 1
  • 6
-1
votes
1 answer

How to render string html

I have custom block which has following code. foreach ($video_result as $video){ $title = $video->title; $video_body = $video->body_value; } var_dump($video_body); $renderable = [ '#theme' => 'video-block', …
Madhav
  • 1
  • 2
-1
votes
1 answer

How to calculate the composite's elements and get total of them?

Hi I have a composite that has a QTY field and a TOTAL PRICE field and the table below would calculate and display the subtotal. It works properly when there is only one row of composite, but when I add more items, the subtotal field displays two…
mins
  • 3
  • 3
-1
votes
1 answer

I am unable to get values in twig template in drupal 9

I have mapped the fields of a content type (a webform) to node using Webform content creator in drupal 9 now the issue is that i am not getting those mapped fields in my twig template. All I am getting are previously mapped values. I have double…
1 2 3
20
21