Skip to main content
173
results
Andrew Fletcher
Introduction For a while now, one persistent issue has been bugging me: a warning on Drupal's 'status report' page that reads: GD library library bundled (2.1.0 compatible) Supported image file formats: GIF, PNG. Unsupported image file formats: JPEG, WEBP.Check the PHP GD installation documentation if you want to add support. It was time to dig into the problem and resolve this warning once and for all. When running Drupal in a Docker environment, you might encounter issues with image...
Andrew Fletcher
When working on Drupal projects, especially in a collaborative environment, it’s...
Andrew Fletcher
Maintaining a Drupal site is usually smooth sailing once the environment is...
Andrew Fletcher
Recently, I encountered an issue where my local Docker environment refused to...
Andrew Fletcher
The issue – I have a content type that includes an entity reference revisions...
Andrew Fletcher
When building a theme in Drupal, it's often necessary to adapt your site’s UI dynamically based on the context in which a user is navigating. One such piece of dynamic content is the menu title. Achieving this can be a bit tricky due to the layered nature of its routing and menu systems. This reference article will walk you through the process of fetching the current menu title within the `hook_preprocess_page` function in your Drupal theme's `.theme` file.   Understanding Drupal's route...
Andrew Fletcher
Dealing with errors in Drupal development is a common occurrence, and...
Andrew Fletcher
Alright, picture this: you're knee-deep in Drupal 10 development, churning out...
Andrew Fletcher
I'm getting the following error TypeError: Cannot assign null to property...
Andrew Fletcher
Have you ever walked into a situation at work and just wondered how everything...
Andrew Fletcher
The red flag was when I saw the server disk space is showing a site is taking up 57992.5 MB, where locally the site size is showing 957MB.  There is something serious happening here and I need to establish the problem quickly.  When dealing with a significant discrepancy in site size between a local environment and a server, it's important to identify the root cause of the larger disk usage on the server.    Approaches for discovering the issue(s)   1. Analyse Large...
Andrew Fletcher
Extending the functionality of a contrib module in Drupal can enhance its...
Andrew Fletcher
When receiving a logic error such as LogicException: Form errors cannot be set...
Andrew Fletcher
Adding a new service to a custom module and the following error greeted me: The...
Andrew Fletcher
  Continuing on from the Drupal 9 to Drupal 10 upgrade outline written...