developer resources
Codebales holds an ever growing number of solutions to problems that we have experienced in our day to day code writing
479
results
Andrew Fletcher
•
Continuing on from the Drupal 9 to Drupal 10 upgrade outline written earlier... Upgrading Drupal 9 to Drupal 10. However, the point of difference is this article works through the actual action steps of the upgrade.
Planning and testing is critical for the Drupal to version 10 process to work successfully. As some of the environments that I work in are deployed via CD/CI pipelines.
Resource settings
Type
Version
Drush
11.6.0
Drupal
9.5.10
1. Download...
Andrew Fletcher
•
When executing the following command, the response I'm getting is
npm ERR! code...
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...
Andrew Fletcher
•
In Drupal, the logging system is based on the PSR-3 logging standard, which...
Andrew Fletcher
•
Working through the following error
Notice: Only variables should be passed by reference in load_view_block_content() (line 391 of /var/www/vhosts/{domain}/httpdocs/themes/custom/{theme}/{theme}.theme.theme)If you want to read the full error, scroll to the bottom in Appendix. The related function to this error is
/**
* Load the related block view content.
*
* @param object $view
* View as an object.
* @param string $display
* View display name.
* @param array $arguments
* ...
Andrew Fletcher
•
To resolve the CVE-2022-48624 vulnerability on Ubuntu using Nginx, it's crucial...
Andrew Fletcher
•
Using Drupal 10, VIews, Solr and Facets has post upgrade to version 10, created...
Andrew Fletcher
•
Attempting to apply a patch in Drupal 10.2.4 that had been working until this...
Andrew Fletcher
•
Drush open_basedir restriction error
PHP Warning: include(): open_basedir...
Andrew Fletcher
•
To determine the size of a directory using the terminal, you can use the du (disk usage) command. The syntax for this command can vary slightly depending on the operating system you are using, but a common way to use it is as follows:
For Linux and macOS
du -sh /path/to/directory
du
Disk usage
-s
Summarise the total size of the directory and do not include the size of each individual file within the directory
-h
Human-readable format, making the size easier to understand (e.g.,...
Andrew Fletcher
•
In many terminal text editors, you use find command as reference in Terminal...
Andrew Fletcher
•
The "Too many open files" error in Python typically occurs when your program has...
Andrew Fletcher
•
You can use the pip list --outdated command to view a list of installed Python...
Andrew Fletcher
•
Having updated Solr, re-indexing wasn't working. The error in the logs...