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
150
results
Andrew Fletcher
•
The release of Drupal 10.4.0 sees stricter validation rules being applied to Twig templates, which can result in unexpected errors after an upgrade. One such issue involves the use of regular expressions within Twig's matches operator, leading to syntax errors that can break template rendering.
This is a situation I had recently after upgrading to Drupal 10.4.0 and provides a clear resolution for the problem.
The error
After upgrading to Drupal 10.4.0, users may encounter an error similar...
Andrew Fletcher
•
Observing colleagues work with Drush, it’s clear they have the basics down pat....
Andrew Fletcher
•
If you’re running a website on Drupal 10.x or 11.x, you might encounter a...
Andrew Fletcher
•
Introduction
For a while now, one persistent issue has been bugging me: a...
Andrew Fletcher
•
When working on Drupal projects, especially in a collaborative environment, it’s...
Andrew Fletcher
•
Recently, I encountered an issue where my local Docker environment refused to connect to AWS S3, although everything worked seamlessly in AWS-managed environments. This challenge was not just a technical hurdle; it was a crucial bottleneck that needed resolution to ensure smooth Drupal deployments across various AWS environments (dev, staging and production).
Integrating AWS S3 into a local Docker container running Drupal 10 is more than just a technical setup; it’s a transformation that will...
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...
Andrew Fletcher
•
I'm getting the following error
TypeError: Cannot assign null to property Drupal\views\Plugin\views\argument\ArgumentPluginBase::$operator of type string in Drupal\views\Plugin\views\argument\ArgumentPluginBase->unpackArgumentValue() (line 1302 of core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php).As noted above, the relevant function is unpackArgumentValue
**
* Splits an argument into value and operator properties on this instance.
*
* @param bool $force_int
* ...
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...