Drupal.

Drupal 9: How to make the /user/register form available in a twig template

Q: When comments in a (content type) Article are enabled, for an anonymous user Drupal 9.5 shows a text with links, "please regiter or login to post a comment". I would like the login form to be rendered there already, so that the user can login without leaving the article. For this, I would like to make the /user/register form available inside a twig template. How would I do that?

A: Install Twig Tweak (reference) and try this:

[FIXED] Uncaught PHP Exception EntityStorageException: Invalid address: (to): at SqlContentEntityStorage.php line 815

Seeing this ^ error and currently don't know how to fix it. It happens only on some of my (presumably identically configured) websites. This is happening when a user attempts to post any comment.

Turns out, this was due to a workflow rule that attempted to email the author of a parent-comment and notify them that their comment has been replied to. Since there is no parent comment, there is no email to send a message to, which was causing the error.

A comparison between Wordpress and Drupal as publishing platforms and marketing engines

In the ever-evolving landscape of digital content management, selecting the right publishing platform can be a pivotal decision for businesses and creators alike. Among the myriad of options available, WordPress and Drupal stand out as two prominent contenders, each offering unique features and capabilities tailored to diverse needs. In this comprehensive comparison, we delve into the strengths and weaknesses of WordPress and Drupal, exploring their suitability not only as publishing platforms but also as powerful marketing engines.

How to turn off Warning and deprecation errors in Drupal

I had some difficulty with this, because my Drupal installs are in-between php versions. I'm running PHP 8.1, but a lot of the modules that I use were written for PHP 7, and haven't been ported.

Anyway, adding the following line to your sites/default/settings.php in production has worked for me:

$config['system.logging']['error_level'] = 'none';