Skip to main content
423
results
Andrew Fletcher
Adding a new service to a custom module and the following error greeted me: The website encountered an unexpected error. Try again later. Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: You have requested a non-existent service "summaries.reference_node". in Drupal\Component\DependencyInjection\Container->get() (line 157 of core/lib/Drupal/Component/DependencyInjection/Container.php).  This issue was related to a missing the namespace declaration at the top of...
Andrew Fletcher
  Continuing on from the Drupal 9 to Drupal 10 upgrade outline written...
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 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...