Skip to main content
178
results
Andrew Fletcher
Attempting to update the database, irrespective whether I run update.php or preferred method drush updb the following errors were appearing: [notice] Module captcha has an entry in the system.schema key/value storage, but is not installed. <a href=":url">More information about this error</a>. [notice] Module image_captcha has an entry in the system.schema key/value storage, but is not installed. <a href=":url">More information about this error</a>. [notice] Module...
Andrew Fletcher
Do you want to know how to add a node alias in a twig file?  Rather than do...
Andrew Fletcher
If you edit a Drupal contrib module, the next time the module is updated those...
Andrew Fletcher
As a web developer, you will most likely need to run local copies of a bunch of...
Andrew Fletcher
The cache system in Drupal 9 delivers the API with the elements required for...
Andrew Fletcher
How to get the current user or load a user using a uid value. $current_user = \Drupal::currentUser(); $user = \Drupal\user\Entity\User::load($current_user->id());or just use $user = \Drupal\user\Entity\User::load(\Drupal::currentUser()->id());An example of this in action /** * Change the display of the user's name. * * @param int $uid * User id. * * @return string * User name. */ function change_users_name($uid) { // status of the current user $logged_in =...
Andrew Fletcher
Running a few SEO and performance tests and I discovered that the site logo...
Andrew Fletcher
How do you exclude the current node from a list view? In some situations, for...
Andrew Fletcher
Currently I'm working through an app that has been abandoned by the developers....
Andrew Fletcher
First off, this isn't the only method to achieve the outcome of emptying a...
Andrew Fletcher
I'm receiving an error with a path of Drupal\path_alias\AliasManager Upgrading to Drupal 9, I was running a test to see which blocks and/or modules would fail.  And there were plenty... like this AliasManager error TypeError: Argument 4 passed to Drupal\{module}\Plugin\Block\{custom_block}Block::__construct() must be an instance of Drupal\Core\Path\AliasManager, instance of Drupal\path_alias\AliasManager given, called in...
Andrew Fletcher
Clear DNS Cache The DNS (Domain Name Service) cache on your Mac helps browsers...
Andrew Fletcher
Changing git push from passphrase?  There are several ways to tackle this...
Andrew Fletcher
Let say in composer.json you have "drupal/core-recommended": "^9.2" You're...
Andrew Fletcher
Have you tried adding custom synonyms to Solr on Drupal? How did you go? What do...