Skip to main content
208
results
Andrew Fletcher
The issue – I have a content type that includes an entity reference revisions field named field_introduction. This field points to a paragraph, which itself contains a text field also named field_introduction, of the type Text (formatted, long). How can I access the content stored in this paragraph's field_introduction field? In Drupal, managing content structured through fields and entities allows for flexible and dynamic content architectures. One common scenario involves accessing data from a...
Andrew Fletcher
When building a theme in Drupal, it's often necessary to adapt your site’s UI...
Andrew Fletcher
Recently I came across this piece of gold when dealing with databases,...
Andrew Fletcher
Dealing with errors in Drupal development is a common occurrence, and...
Andrew Fletcher
Alright, picture this: you're knee-deep in Drupal 10 development, churning out...
Andrew Fletcher
I'm getting the following error TypeError: Cannot assign null to property Drupal\views\Plugin\views\argument\ArgumentPluginBase::$operator of type string in Drupal\views\Plugin\views\argument\ArgumentPluginBase->unpackArgumentValue() (line 1302 of core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php).As noted above, the relevant function is unpackArgumentValue ** * Splits an argument into value and operator properties on this instance. * * @param bool $force_int * ...
Andrew Fletcher
A growing list of commands I've used and what they do in no specific order sudo...
Andrew Fletcher
Have you ever walked into a situation at work and just wondered how everything...
Andrew Fletcher
The red flag was when I saw the server disk space is showing a site is taking up...
Andrew Fletcher
Extending the functionality of a contrib module in Drupal can enhance its...
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
When Solr is displaying results on the site, first step is to log in the server...
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...