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
150
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
•
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
•
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
•
Having updated Solr, re-indexing wasn't working. The error in the logs...
Andrew Fletcher
•
Have you had the situation where you needed to compare the files recorded in the database (e.g., file_managed table) against the actual files in the file system directory (sites/default/files/...). This is useful for scenarios where you want to ensure that the database records and the physical files are in sync. To do this perform the following steps:
Retrieve File Information from the Database
Use the Entity API or direct database queries to fetch information about files from 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...
Andrew Fletcher
•
The issue of over 300 simultaneous database connections in the context of AWS...