developer resources
Codebales holds an ever growing number of solutions to problems that we have experienced in our day to day code writing
488
results
Andrew Fletcher
•
Upgrading to Drupal 10.4+ you might have noticed a warning in their code editor stating “Undefined function ‘t’”. While Drupal’s `t()` function remains valid in procedural code, some language analysis tools — such as Intelephense — do not automatically recognise Drupal’s global functions. This article outlines the root cause of this issue and provides three practical solutions for resolving it.
Why Intelephense displays the error
Intelephense analyses PHP files but does not have...
Andrew Fletcher
•
The upgrade from PHP 8.3.14 to PHP 8.4.4 presents challenges for Drupal 10.4...
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 to Production, it’s essential to ensure that all dependencies and configurations remain consistent. Particularly in our situation where this was going to be the first deployment of AI semantic search functionality to Production. In some cases, the UAT environment may not include a requirements.txt file, making it necessary to generate one before transferring the project. This article outlines the steps required to...
Andrew Fletcher
•
The Drupal theme configuration has undergone recent changes made to the Webpack...
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 approach to managing Docker-based environments. However, setting up and managing DDEV projects, particularly with the latest versions of Docker Desktop, can present challenges. This article guides you through resolving key issues, setting up Drupal, and managing multiple projects effectively.
Overcoming common DDEV setup issues
Problem: Port conflicts and router errors
One of the most common errors developers...
Andrew Fletcher
•
The release of Drupal 10.4.0 sees stricter validation rules being applied to...
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...