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
163
results
Andrew Fletcher
•
Goal: I want to download a table list to a txt or csv file.
Initially, as a root user I tried using drush
drush sql-dump --tables-list=media_field_data > db-list.sqlOf course as a root user and Drush set-up not as root. failed with
Command 'drush' not found, did you mean:
command 'rush' from deb rush (1.8+dfsg-1.1)My bad.
Changing the user away from root and running the command again
drush sql-dump --tables-list=media_field_data > db-list.sqlProduced a permission error
bash:...
Andrew Fletcher
•
If your Composer project doesn't have Drush listed as a dependency, you can...
Andrew Fletcher
•
Using CK Editor 5, I needed to add instructions to a page that held FontAwesome...
Andrew Fletcher
•
I've been working on a problem where a font and image tag aren't appearing on...
Andrew Fletcher
•
In a site I'm working at the moment, we need to download high resolution images...
Andrew Fletcher
•
Whilst attempting to download the latest config.zip file for Solr, I was greeted by the following error:
Error: Class "MyCLabs\Enum\Enum" not found in include() (line 18 of /var/www/vhosts/{domain.com}/vendor/maennchen/zipstream-php/src/Option/Method.php)
#0 /var/www/vhosts/{domain.com}/vendor/composer/ClassLoader.php(582): include()
#1 /var/www/vhosts/{domain.com}/vendor/composer/ClassLoader.php(433): Composer\Autoload\{closure}()
#2...
Andrew Fletcher
•
Having a situation where I'm running a sub theme based on Bootstrap Barrio, but...
Andrew Fletcher
•
This guide has been compiled as a reference tool on how to access field values...
Andrew Fletcher
•
Running Docker, I deleted the images and containers they had been built to date....
Andrew Fletcher
•
I've recently upgraded the server Ubuntu 20.04 updating the PHP version from 7.4...
Andrew Fletcher
•
A recent upgrade to PHP 8.1, has highlighted an error that hadn't been appearing previously.
Deprecated function : explode(): Passing null to parameter #2 ($string) of type string is deprecated in toc_js_node_view()(line 130 of modules/contrib/toc_js/toc_js.module).In the top_js.module file from L124
// lambda function to clean css identifiers
$cleanCssIdentifier = function ($value) {
return Html::cleanCssIdentifier(trim($value));
};
// toc-js class is used to initialize...
Andrew Fletcher
•
Working in Drupal 9.5 and I'm now getting the following cache tag error
The...
Andrew Fletcher
•
Working in Drupal admin, going to a content type > manage form display and...
Andrew Fletcher
•
Working through and importing JSON data into a content type.
Drush...
Andrew Fletcher
•
After cloning a site, next you will want to import the config file. Which...