Skip to main content
178
results
Andrew Fletcher
The issue – I have a content type that includes an entity reference revisions field named field_introduction. This field points to a paragraph, which itself contains a text field also named field_introduction, of the type Text (formatted, long). How can I access the content stored in this paragraph's field_introduction field? In Drupal, managing content structured through fields and entities allows for flexible and dynamic content architectures. One common scenario involves accessing data from a...
Andrew Fletcher
When building a theme in Drupal, it's often necessary to adapt your site’s UI...
Andrew Fletcher
Managing large directories, especially those filled with a diverse mix of media...
Andrew Fletcher
Recently I came across this piece of gold when dealing with databases,...
Andrew Fletcher
Dealing with errors in Drupal development is a common occurrence, and...
Andrew Fletcher
In the realm of system administration and monitoring, understanding memory usage trends is crucial for maintaining system health and performance. While tools like htop offer real-time insights into memory usage, they lack the capability to provide historical data. So, what if you need to analyze memory usage over the past 24 hours or even a week? Fear not, as Sysstat comes to the rescue with its powerful sar command.   Installing Sysstat Before delving into historical memory usage...
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...
Andrew Fletcher
Extending the functionality of a contrib module in Drupal can enhance its usefulness without altering the original codebase. This article provides a step-by-step guide on how to add custom configuration options to an existing contrib module, using the sitewide_alert module as an example. We will extend its configuration by adding new settings through a separate custom module named sitewide_alert_ext. Prerequisites Drupal 10 installation sitewide_alert contrib module installed and enabled Basic...
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...
Andrew Fletcher
To view the email before it's sent from Drupal, especially when using Drupal 10...