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

Drupal Views: Remove actions(edit button) on drupal views from view_pre_render hook conditionally

Drupal Views: Remove actions(edit button) on drupal views from view_pre_render hook conditionally: I am trying to hide/remove the edit button for few records conditionally on a view from the hook view_pre_render. function…
1
vote
0 answers

Drupal custom payment module form problem

I'm a bit new to drupal and i'm trying to create custom payment gateway module and stuck with a problem. When creating OnSitePaymentGateway, everything is ok and i can edit checkout form with PaymentMethodAddForm. But for OffsitePaymentGatewayBase,…
Roman Selin
  • 109
  • 1
  • 16
1
vote
1 answer

composer install error with php 8.0.17 and drupal 9

I am getting very unusual issue. I have a drupal 9.2.18 site working with php 7.4 I want to update to php 8, initially i am trying to do at 8.0 instead of 8.1. When I do composer update it upgrade/downgrade few plugins due to php version check, it…
1
vote
2 answers

Getting Taxonomy term name from target ID - D9

Getting Taxonomy term name from Taxonomy target ID: I have a taxonomy term that accepts multiple values. It's rendered as a multiselectfield. I am trying to read the target ID of the field and figure the term name out of it using the below code in a…
Rick
  • 1,392
  • 1
  • 21
  • 52
1
vote
1 answer

Not the required data is displayed for the new user, because the data is taken from the cache of the previous user

I made a custom module that displays the weather in a particular city. But I got these comments after the code review: 1. Interesting question, what happens to your cache data, if the site first comes to a person from the city of London, and then…
kniro
  • 33
  • 4
1
vote
1 answer

Drupal 9 "Rules" module alternative

I've been breaking my head over this for a week now. I have been researching and reading with no results. I have a site made in Drupal 9, and I want to change certain states (workflow), send emails, display messages depending on changes (updates) in…
Xenetrix
  • 339
  • 2
  • 19
1
vote
1 answer

Fix Missing module Drupal 9 warning

When I do an upgrade from D8 to D9, I get the missing module message like: The following modules are marked as installed in the core.extension configuration, but they are missing: config_split_manager scroll_to_top splashify theme_change So I try…
webmaster pf
  • 389
  • 1
  • 5
  • 23
1
vote
1 answer

Drush cim proper workflow

We have a DRUSH CEX set under config/sync folder. Our 2 developer are working on the same project. Now here's the situation Dev 1 ran drush cex and his config was exported Dev 2 had a few changes in the CMS but didn't run drush cex Dev 1 push his…
MadzQuestioning
  • 3,341
  • 8
  • 45
  • 76
1
vote
0 answers

Is Solr detecting the language for stopwords?

Stopwords are working fine for german terms like 'dieser' or 'ihren', I get no search results for them. But for english terms like 'those' or 'with' stopwords are not working, I get search results. Because I'am indexing german and english documents…
okoeller
  • 11
  • 2
1
vote
1 answer

Drupal 9 multisite split .htaccess

I am working on Drupal 9 multisite and I want split the .htaccess file, one per site to create different redirect rules. I know that it's possible to add all rules on drupal_root/.htaccess but I prefer to have one .htaccess per site. The structure…
Quak
  • 11
  • 1
1
vote
4 answers

The website encountered an unexpected error. Please try again later.-- Upgrading Drupal from 8.9 to 9.3.5

I am upgrading my drupal project from 8.9 to 9.3.5 but after the upgrade while hitting website one error occur i.e The website encountered an unexpected error. Please try again later. I followed the steps mentioned in the drupal site for upgrading…
Himanshu Gupta
  • 71
  • 1
  • 2
  • 6
1
vote
1 answer

Geolocation module - how to call abstract class method properly

I'm using the custom module in my project, and it was working fine with Geolocation 1.11 module. After I've updated Geolocation to 3.7 my custom module stopped working. What I've found - my custom module was using trait from…
Alex Sh
  • 11
  • 2
1
vote
1 answer

HOOK_module_theme_suggestions_node_alter suggestion twig not working

I implemented a HOOK_module_theme_suggestions_node_alter to add a custom twig template. Now below is my code function gf_theme_module_theme_suggestions_node_alter(array &$suggestions, array $variables) { $suggestions[] =…
MadzQuestioning
  • 3,341
  • 8
  • 45
  • 76
1
vote
0 answers

Drupal 7 to 9 migration fails with 'missing migrations' errors using UI

I am trying to migrate a Drupal 7 site to Drupal 9 using the Migrate Drupal UI. I have read through and followed the corresponding tutorials on drupal.org but migration fails. Given that my original Drupal 7 site is quite complex, for testing…
simonp
  • 21
  • 3
1
vote
0 answers

What's the URL to install to my new Dupal 9's dev site?

I am trying to make a dev site instead of using live site all the time. In PhpMyAdmin, I have created a new db called drupal9_dev, username as drupal_dev and password then imported the db of my live site. I copied all the files of my live site's…
Ben
  • 13
  • 5
1 2
3
20 21