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.
An authoritative site shows (validator.w3.org)
Trailing slash on void elements has no effect and interacts badly with unquoted attribute values.
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
How to remove slash?
<meta name="viewport" content="width=device-width, initial-scale=1.0"> This is good
After upgrading to 11.2.8 my Drupal installation can't add new content type through /admin/structure/types/add
I have this log:
TypeError: Drupal\Component\Utility\Html::escape(): Argument #1 ($text) must be of type string, null given, called in {my_site}/core/lib/Drupal/Component/Render/FormattableMarkup.php on line 238 in Drupal\Component\Utility\Html::escape() (line 433 of {my_site}/core/lib/Drupal/Component/Utility/Html.php).
On the Status Report page, I see this message:
"Mismatched entity and/or field definitions
Store
The Enabled field needs to be updated."
This is on a large, busy Drupal Commerce site in a production environment. I know that running drush devel-entity-updates can apply schema changes, but it’s not recommended on production because it may cause data loss or unexpected changes.
I'm upgrading my Drupal site's core using Composer and want to ensure a safe, smooth process. I'm looking for the community's recommended, step-by-step command-line procedure. What's the best practice for running Composer commands, and what essential Drush commands should I use before and after to handle backups, maintenance mode, and database updates to avoid issues?
After upgrading my project to Drupal 10, I encountered a consistent issue with private files stored in nested directories. Files saved in paths like private://subdir1/subdir2/file.pdf can be uploaded and found in the file_managed table, but their URLs (generated via file_url_generator) return a 404 error when accessed.