Drupal is up and running but how do I ...?

Best compatible Databases for Drupal website

What database is best compatible for Drupal website?

We are using MySQL database. Is there any other DB which is giving a better result?

"Your site does not pass some readiness checks for automatic updates."

In Drupal CMS I have almost gotten cleared for automatic updates but a folder introduced by the host company which they use to manage their custom plugins, the folder called .nc_plugin has blocked the way.

This is a shared hosting account.

The error message is

Your site does not pass some readiness checks for automatic updates. It cannot be automatically updated until further action is performed.

RecursiveDirectoryIterator::__construct(/home/username/.nc_plugin): Failed to open directory: Permission denied

Drupal CMS and recipes and locked versions of themes / modules

I installed Drupal CMS with Composer. Which pulled in many recipes, at version 1.0.3. The recipe of note -- drupal_cms_starter -- pulls in the CMS Olivero theme -- drupal_cms_olivero, but somehow locks Olivero at version 1.03.

CMS Olivero is now at version 1.1, and the site nags that the theme is out of date.

Using Composer, per regular procedure, to update the theme alone fails, because the cms_starter recipe has locked the theme at version 1.0.3.

Print current user in menu.html.twig file

Since menu templates do not have direct access to the user object, we need to pass it manually in my_theme.theme

function my_theme_preprocess_menu(&$variables) {
$current_user = \Drupal::currentUser();
$variables['current_user_name'] = $current_user->getDisplayName();
}

Now, you can use it inside menu.html.twig

<p>Hello, {{ current_user_name }}!</p>
 

Drupal Cache clearing Cron not clearing cache

In our Drupal 9 website, whenever we are running cron we are facing a error in our logs. 

Though it shows CRON run is completed, the cache_page table and key_value_expire table size is not reducing. 

Can anyone help or has anyone faced a similar  situation and below error:

Error:

Content views with taxonomy reference

Hello,

i try to build a custom block in views, to display all terms of referenced content.

My configuration is as follows:

Content types: Person, adventure, gear.

An adventure references to a person and a gear references to an adventure. My taxonomy terms are:

  • - Bike
  • -- Smartphone
  • --- Mounting
  • -- Bags
  • -- Tools
  • - Clothes
  • -- T-shirt
  • -- Jeans

... and so on

Pages

Subscribe with RSS Subscribe to RSS - Post installation