Same Old Drupal

I was fielding a ticket today for someone who was having a couple of issues with Drupal 8 after install, namely they were getting a Trusted Host Settings errorHere is the full error that shows up in the admin area:

*Errors found*
Trusted Host Settings –  Not enabled
The trusted_host_patterns setting is not configured in settings.php. This
can lead to security vulnerabilities. It is highly recommended that you
configure this. See Protecting against HTTP HOST Header attacks for more
information.

Being the awesome web hosting support technician that I am, I Googled it for a solution. And after watching the following video from the DrupalTutor I learned a couple of things:

  • This happens in Drupal  8 on install
  • This issue has been happening as far back as 2016
  • The fix is to edit the settings.php file in sites/default after changing permissions and figuring out a pretty hacky solution

The fact that this was happening to folks as soon as they installed the application is insane to me. What could be a worse user experience? Add to that the caching error below, and you have a perfect storm of terrible:

*PHP *
OPcode caching – Not enabled
PHP OPcode caching can improve your site’s performance considerably. It is highly recommended to have OPcache installed on your server.

Fact is PHP OPcode caching is enabled on this server, so you have to once again search the error message and use the fix given in this forum post to get rid of the error. I did not even check to see if they have a visual text editor after resolving these issues because I just didn’t have strength. Really Drupal?

This entry was posted in reclaim and tagged , , , . Bookmark the permalink.

2 Responses to Same Old Drupal

  1. Do not argue with the Drupal community. They are a superior group of developers whose superiority will not be questioned. It is a robust development platform, a framework really, that we will want to use again and again and again. You, obviously, just don’t get it.

Leave a Reply to Cathy Finn-Derecki Cancel reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.