Skip to main content

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.

 

Count the number of files in a directory including recursively

How to count the number of files in a directory.  At some point you'll have a directory or directories that you need to know the number of files in them.  On Linux, the list command (ls) is piped with the wc -l command.

ls | wc -l

This command works great if all the files are located in one directory.  What about if you have multiple directories.  Then you will need to use the find command piped with the wc command

/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

brew changing PHP versions on OSX

Installing PHP on OSX and it installed PHP 8.2.x.  However, for my applications I need to run 8.1.x.  How do you switch the current PHP version?

 

Current version

Check the current PHP version by executing the command

php -v

Response:

Drupal toc_js explode() deprecated function

A recent upgrade to PHP 8.1, has highlighted an error that hadn't been appearing previously.

Deprecated function : explode(): Passing null to parameter #2 ($string) of type string is deprecated in toc_js_node_view()(line 130 of modules/contrib/toc_js/toc_js.module).

In the top_js.module file from L124

how to update composer

Looking at composer I first wanted to check the current version, which is actioned by running the following command

composer -V

The response I was seeing

Composer version 2.1.5 2021-07-23 10:35:47

 

 

Subscribe to