Skip to main content
136
results
Andrew Fletcher
When receiving a logic error such as LogicException: Form errors cannot be set after form validation has finished. in Drupal\Core\Form\FormState->setErrorByName() (line 1104 of /var/www/html/project/core/lib/Drupal/Core/Form/FormState.php).This error "LogicException: Form errors cannot be set after form validation has finished," indicates that the setErrorByName() function is being called at an inappropriate time in the form processing lifecycle. Specifically, this error occurs when an...
Andrew Fletcher
Adding a new service to a custom module and the following error greeted me: The...
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 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
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 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
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...