Bobcares

406 error in Drupal – How to fix it

by | Apr 20, 2021

A 406 error in Drupal can trigger due to a number of reasons which include disabling XML-RPC, security restrictions, etc.

As a part of our Server Management Services, our Support Engineers helps webmasters and website owners to fix similar Drupal-related errors regularly.

Today, let us discuss the possible reasons for this error and how we tackle it.

Causes and Fixes for 406 error in Drupal

Often while changing the admin/settings page  or while using the Drupal login module, users receive an error as shown below:

This error can trigger due to a number of reasons. Let us now discuss some top reasons for this error and how our Support Engineers fix it.

Using XMLRPC

To fix the security holes with older versions of XMLRPC libraries, some hosting providers may disable xmlrpc.php scripts. While we enable the BlogAPI module or the Drupal login module on such a provider,  our Support Engineers notices “406 errors”.

A possible solution here that we follow is to rename the xmlrpc.php file in drupal’s main directory. We will then alter blogapi.module to point to the newly renamed file, as well as any other modules that point to xmlrpc.php.

Special characters in the folder name

At times, the 406 error may trigger due to characters like “/” in the folder name. For instance, our Support Engineers have noticed this error when the field for the temporary directory was set as “/tmp”. The leading slash here was creating some chaos in the headers passed from the apache to the browser.

We can fix the error in such cases by changing the folder name to one without the slash character

Drupal 406 error due to security settings

The security settings at the server-side may also trigger the 406 error at times. Often our Support Engineers are able to fix this error by adding the following line to the .htaccess file.

SecFilterEngine Off

[Need any further assistance in fixing Disk space errors? – We’re available 24*7]

Conclusion

In short, the Drupal 406 error can trigger due to number of reasons. Today,  we saw how our Support Engineers tackle this error.

Are you using Docker based apps?

There are proven ways to get even more out of your Docker containers! Let us help you.

Spend your time in growing business and we will take care of Docker Infrastructure for you.

GET STARTED

var google_conversion_label = "owonCMyG5nEQ0aD71QM";

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Never again lose customers to poor
server speed! Let us help you.