Skip to main content
190
results
Andrew Fletcher
On a server directory with over 100,000 PDF files, I needed to verify the existence of specific documents. Whether there are a few hundred or whatever the number of files, this article explores the practical use of command-line tools to quickly ascertain whether a file is present. In the area of server management or application development, especially on systems like Ubuntu equipped with Nginx, it's crucial to perform routine checks to ensure that all necessary files are in place. Whether it's...
Andrew Fletcher
Recently, I encountered an issue where my local Docker environment refused to...
Andrew Fletcher
Managing files on a server often includes tasks like clearing logs or resetting...
Andrew Fletcher
To review the content of files being generated in the /tmp directory on an...
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
A growing list of commands I've used and what they do in no specific order sudo...
Andrew Fletcher
Have you ever walked into a situation at work and just wondered how everything still runs smoothly? I mean, there are deployments with so many fail-safes stacked on a shaky foundation that it's almost a miracle they work at all. The real trick is gently nudging the team toward accepting change to develop a more stable and robust process—something that really lines up with Drupal best practices. In many development environments I've seen, repositories are bogged down with too much data. For...
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...
Andrew Fletcher
When receiving a logic error such as LogicException: Form errors cannot be set...
Andrew Fletcher
When Solr is displaying results on the site, first step is to log in the server...