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
172
results
Andrew Fletcher
•
To view the email before it's sent from Drupal, especially when using Drupal 10 and dealing with encrypted emails or a specific module like Mailhandler, you can take a few steps to intercept or debug the email before it's actually dispatched. The process involves either configuring your configuration for debugging emails or using a development tool/module that captures outgoing emails.
Use Drupal's Mail System Configuration for Debugging
Drupal allows you to configure the mail system to...
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...
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 version. Now I'm seeing the following error
Could not apply patch! Skipping. The error was: The process "patch '-p1' --no-backup-if-mismatch -d '/Users/andrewfletcher/Sites/codebales/modules/contrib/facets' < '/Users/andrewfletcher/Sites/codebales/patches/3336646-function-is-deprecated.patch'" exceeded the timeout of 300 seconds.
This error indicates that the patching process exceeded the maximum...
Andrew Fletcher
•
Drush open_basedir restriction error
PHP Warning: include(): open_basedir...
Andrew Fletcher
•
Having updated Solr, re-indexing wasn't working. The error in the logs...
Andrew Fletcher
•
On an Ubuntu 20.02 system with Nginx, you can utilize the following commands to...
Andrew Fletcher
•
Cleaning out or clearing data in Solr can be done in a few different ways,...
Andrew Fletcher
•
In an environment that is running
Ubuntu 20.02
Nginx
Solr
The default Nginx conf is located /etc/nginx/sites-available/ and contains something similar to:
server {
listen 80;
listen [::]:80;
server_name uat.oursite.com;
return 301 http://uat.oursite.com$request_uri;
}
server {
listen 80;
listen [::]:80;
listen 443 ssl;
ssl_certificate /etc/ssl/certs/Bundle.crt;
ssl_certificate_key /etc/ssl/private/MultidomainWildcard.key;
# Security...
Andrew Fletcher
•
Have you had the situation where you needed to compare the files recorded in the...
Andrew Fletcher
•
These steps are for Drupal 8 and 9.
Export your database
Order here is...
Andrew Fletcher
•
When reloading a page, you may encounter the following error:
Fatal error:...
Andrew Fletcher
•
Overview of the elements
Set Up API Keys
Obtain API keys for Pinecone and...