Skip to main content
153
results
Andrew Fletcher
Working in Drupal 9.5 and I'm now getting the following cache tag error The website encountered an unexpected error. Please try again later. Error: Call to a member function getCacheTags() on null in Drupal\views\Plugin\views\query\Sql->getCacheTags() (line 1683 of core/modules/views/src/Plugin/views/query/Sql.php).This issue was raised on 8th September 2020 see Fatal error "getCacheTags() on null" on admin/content Views page (https://www.drupal.org/project/drupal/issues/3169694)....
Andrew Fletcher
Working in Drupal admin, going to a content type > manage form display and...
Andrew Fletcher
Working through and importing JSON data into a content type.   Drush...
Andrew Fletcher
After cloning a site, next you will want to import the config file.  Which...
Andrew Fletcher
Build the PHP base image with apache-buster using the Dockerfile.base Since JN...
Andrew Fletcher
This is a relatively quick process, beginning with dropping the database tables lando drush sql-drop -yImport a MySQL database lando db-import {filename} such as lando db-import riverdev.2022-10-03-1664769553.sql.gzRebuild cache lando drush crFinally, export your config lando drush cex  If you know your MySQL filename, you can always chain these commands: lando drush sql-drop -y && lando db-import riverdev.2022-10-03-1664769553.sql.gz && lando drush cr &&...
Andrew Fletcher
Tailwind CSS is a highly customisable framework that delivers developers the...
Andrew Fletcher
Currently, we are upgrading a site from Drupal 7 to Drupal 9.  During this...
Andrew Fletcher
Import a database lando db-import doj.sqlEnter the MySQL database lando mysql...
Andrew Fletcher
Explain public, private, protected functions and variables inside a class in...
Andrew Fletcher
Assuming there is a new field requiring a change on a content type. How do you ensure the changes apply in the next deployment? There are a couple of ways to achieve this... depending on whether a custom module exists or not.  I'll focus on using Drush. Drush is a great tool to manage many of Drupal's features.  For changes that are applied within the backend, best to use Drush export command - drush cex.  Then your config directory at root will be updated with the change....
Andrew Fletcher
Replicate Replicate the bug in your local environment. Check Check - do you have...
Andrew Fletcher
2 or 3 approaches to build a homepage or landing page through Drupal Please...
Andrew Fletcher
Drupal cache is one of the major subsystems that deliver Drupal's flexibility...
Andrew Fletcher
My goal was to get the base URL and compare it with the URL of the link....