Skip to main content

Drupal - where has the Google ID disappeared?

On most of the sites I'm running the Google analytics ID is appearing.  Therefore, tracking and capturing data.  All except one!

Discovering where Google ID and Google Tag ID were on a client's site... or not in this situation.  Yes that's correct, for some reason the analytics IDs aren't appearing.  Zip, zero... nothing.

Looking on this site, Google tag Manager positions the tag ID in the following lines of code

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.


/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

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

Drush a few common commands to import and reset

Working through and importing JSON data into a content type.


Drush migration commands

Check the status of the migration data

lando drush migrate-status

Reset the migration status 

lando drush migrate-reset-status  migratable_riverdata_json

Import JSON data

Subscribe to 9.x