Drupal set the private folder
How to set the Private file path in Drupal using the following steps:
- Create a private folder in the web root
- Add a .htaccess file to the private folder
- Update the settings.php file
FontAwesome icons working in CKEditor 5
Using CK Editor 5, I needed to add instructions to a page that held FontAwesome (FA) icons. Included in these instructions were a couple of FA icons. Initially adding them was going to be resolved using Pseudo-elements. Accordingly they would be applied as follows:
How to exclude a specific css file from aggregation
I've been working on a problem where a font and image tag aren't appearing on the front end of my website. I found that if I disable CSS aggregation, the YouTube play button symbol and overlay will appear. However, this slows down the page speed.
How to leverage CSS aggregation but set specific files to be excluded?
I'm wondering how to leverage CSS aggregation but exclude specific files. Here's an example of what my theme libraries file looks like:
Upgrading Drupal 9 to Drupal 10
Drupal - How can you force a file to download rather than opening in the browser
In a site I'm working at the moment, we need to download high resolution images for media groups. How do you force a href to download rather than the default display in the browser?
The code I've written to manage the paragraph is
Error: Class "MyCLabs\Enum\Enum" not found in include()
Whilst attempting to download the latest config.zip file for Solr, I was greeted by the following error:
Show the favicon in bootstrap barrio sub theme
Having a situation where I'm running a sub theme based on Bootstrap Barrio, but I want to be able to see the favicon in the sub theme. Like many situations, once you know where to look the solution is quite simple. Yet the path of discovery can take time.
In hunting down a solution, I looked into the theme settings yaml file. But to no avail.
Drush open_basedir restriction error
/usr/bin/env: 'php\r': No such file or directory
Running Docker, I deleted the images and containers they had been built to date. Time to refresh the environment and see what works and what isn't working. This action was a result of the dev environment failing to load.
Current versions
The PHP version is 8.1.12 apache 2.4.54-bullseye
Composer response
Composer versions 2.4.4 2022-10-27 14:39:29
PHP response
mysql dump FLUSH TABLES access denied
I've recently upgraded the server Ubuntu 20.04 updating the PHP version from 7.4 to 8.1. However, when I've attempted to export the MySQL database using the command
drush sql-dump --extra-dump=--no-tablespaces --result-file=../sql/db-2023-02-25.sql
I seeing the following response