developer resources
Codebales holds an ever growing number of solutions to problems that we have experienced in our day to day code writing
487
results
Andrew Fletcher
•
The upgrade from PHP 8.3.14 to PHP 8.4.4 presents challenges for Drupal 10.4 websites, particularly when dealing with contributed modules. While Drupal core operates seamlessly, various contrib modules have not yet been updated to accommodate changes introduced in PHP 8.4.x. This has resulted in multiple deprecation warnings and potential compatibility issues.
Understanding the issue
The primary issue stems from the deprecation of implicitly nullable parameters in PHP 8.4. This means that...
Andrew Fletcher
•
Introduction
Data extraction and filtering are crucial for developers working...
Andrew Fletcher
•
Duplicate records in Drupal can cause significant issues, particularly when they...
Andrew Fletcher
•
When working on Drupal migrations, developers often assume that adding a new...
Andrew Fletcher
•
When deploying a Python project from a User Acceptance Testing (UAT) environment...
Andrew Fletcher
•
The Drupal theme configuration has undergone recent changes made to the Webpack configuration, SCSS and JavaScript handling, and automation of updates to the orw.libraries.yml file in the custom Drupal theme. These changes are designed to improve the build process, enhance maintainability, and streamline development for other developers working on this theme.
Overview of changes
1. Webpack improvements
Consolidated the Webpack configuration to handle SCSS and JS files...
Andrew Fletcher
•
Accessibility is a fundamental aspect that ensures experiences are inclusive for...
Andrew Fletcher
•
Occasionally, a Drupal site may display a warning about a module being "Missing...
Andrew Fletcher
•
When troubleshooting network issues or configuring devices, knowing your IP...
Andrew Fletcher
•
DDEV has become a popular tool for local web development, offering a streamlined...
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
•
Securing sensitive content is essential for protecting data integrity and user...
Andrew Fletcher
•
Observing colleagues work with Drush, it’s clear they have the basics down pat....
Andrew Fletcher
•
Transferring files between development and production environments is a critical...
Andrew Fletcher
•
Seemingly minor technical misconfigurations can escalate into major...