Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
I have a content type authors with fields: field_authorname, field_authorpicture, field_authorbio.
Then I have a paragraph type: author_selection with field_author (referenced type authors)
In contenttype news the field field_news_content is paragraph author_selection selected.
now I want to show field_authorname, field_authorpicture, field_authorbio by use of a twig template.
I would like to be able to find the origin of an error like
[Saving a node] Warning: Array to string conversion in Drupal\Core\Entity\Sql\SqlContentEntityStorageSchema::castValue() (line 2579 of core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php).
in a minute or two.
I just spent two hours discovering that the error came from a contrib module.
I've got a setup on a Linux workstation with a local MySQL, Apache, Xdebug, VS Code (with a gazillion extensions)... And still I resorted to lowly trial and error.
Hi all. I have a question around redirects and how to implement them. So my use-case is, if a user accesses a webform which has a draft webform submission associated with it, on the pre-load I want to run some logic check and under certain circumstances I want to redirect the user away from the webform. I have tried looking into the kernel event for loading the page, but the request that comes back is just for the webform itself and not its submission. Does anyone know how to load the current user's submission when the webform route is requested?
Sorry to bother you again, but i swear i tried everything and with lots and lots of internet searches.
I've already managed to read the base of Drupal by php, but I can't, in any way, put the value of a custom field as a condition of the query.
Can anyone help me, please?
Thank you very much!
We are running Drupal 9 and wondered if our SOLR search could be improved by connecting it to Google Analytics which we use. Our search results aren't pulling back the most popular pages on our site with filtering by relevance. We are in the process of switching SOLR to Acquia SOLR. thx.