Skip to main content

Best Practices for Configuring Twig Debug Settings in Drupal 10

When developing with Drupal 10, it's crucial to maintain an environment that is both secure and efficient. One of the important aspects of this setup involves the management of Twig template debugging. Proper configuration of these settings helps prevent unnecessary performance degradation and ensures that sensitive information does not accidentally leak into production environments.

 

TypeError: Cannot assign null to property Drupal\views\Plugin\views\argument\ArgumentPluginBase::$operator of type string

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

Streamlined Drupal 10 Deployment: Best Practices for Stability and Security

Have you ever walked into a situation at work and just wondered how everything still runs smoothly? I mean, there are deployments with so many fail-safes stacked on a shaky foundation that it's almost a miracle they work at all. The real trick is gently nudging the team toward accepting change to develop a more stable and robust process—something that really lines up with Drupal best practices.

This command will help you spot any unusually large directories

The red flag was when I saw the server disk space is showing a site is taking up 57992.5 MB, where locally the site size is showing 957MB.  There is something serious happening here and I need to establish the problem quickly.  When dealing with a significant discrepancy in site size between a local environment and a server, it's important to identify the root cause of the larger disk usage on the server. 

 

Extending a Contrib Module's Configuration in Drupal 10: A Case Study with Sitewide Alert

Extending the functionality of a contrib module in Drupal can enhance its usefulness without altering the original codebase. This article provides a step-by-step guide on how to add custom configuration options to an existing contrib module, using the sitewide_alert module as an example. We will extend its configuration by adding new settings through a separate custom module named sitewide_alert_ext.

Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException

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).

 

Subscribe to