developer resources
Codebales holds an ever growing number of solutions to problems that we have experienced in our day to day code writing
Selected filter
165
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
•
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...
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 code like a pro. But hold up, what's this? Twig debug mode is still on in production? Cue the headaches. Suddenly, your beautifully crafted HTML is drowning in unnecessary output, and innocent contact form responses are sprouting template suggestions left and right. It's a mess.
In the world of Drupal, keeping things secure and streamlined is key. And one crucial piece of the puzzle? Managing Twig template debugging....
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...
Andrew Fletcher
•
When receiving a logic error such as
LogicException: Form errors cannot be set after form validation has finished. in Drupal\Core\Form\FormState->setErrorByName() (line 1104 of /var/www/html/project/core/lib/Drupal/Core/Form/FormState.php).This error "LogicException: Form errors cannot be set after form validation has finished," indicates that the setErrorByName() function is being called at an inappropriate time in the form processing lifecycle. Specifically, this error occurs when an...
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...
Andrew Fletcher
•
To run a SQL command using Drush, use the following sql-query command
drush...