Skip to main content
433
results
Andrew Fletcher
In Drupal, the logging system is based on the PSR-3 logging standard, which Drupal integrates through the \Psr\Log\LoggerInterface. When you want to log messages, you typically use placeholders in your message string, which are replaced with context array values. However, if you're dealing with a situation where you have a complex message or an object implementing the \Drupal\Core\Logger\RfcLogLevel\MessageInterface, and you want to log the entire object or message as it is, you might need to...
Andrew Fletcher
Working through the following error Notice: Only variables should be passed by...
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 restriction in effect. File(/usr/share/drush/includes/startup.inc) is not within the allowed path(s): (/var/www/vhosts/{domain}/:/tmp/) in /usr/share/drush/drush on line 113 PHP Warning: include(/usr/share/drush/includes/startup.inc): Failed to open stream: Operation not permitted in /usr/share/drush/drush on line 113 PHP Warning: include(): Failed opening '/usr/share/drush/includes/startup.inc' for inclusion...
Andrew Fletcher
To determine the size of a directory using the terminal, you can use the du...
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 was Drupal\search_api_solr\SearchApiSolrException while indexing item entity:node/2386:en: Solr endpoint http://127.0.0.1:8983/ bad request (code: 400, body: Exception writing document id 36lk64-related_projects-entity:node/2386:en to the index; possible analysis error: cannot change field "tm_X3b_en_body" from index options=DOCS_AND_FREQS_AND_POSITIONS to inconsistent index options=DOCS_AND_FREQS_AND_POSITIONS_AND_OFFSETS,...
Andrew Fletcher
On an Ubuntu 20.02 system with Nginx, you can utilize the following commands to...
Andrew Fletcher
In our projects, team members frequently generate new Git branches linked to the...
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...