Leave a suggestion

If this tutorial is not what you were looking for, you still have any questions, suggestions or concerns - feel free to let us know. Please help us to serve you better!

Your Name

Your Email

Your Message (required)

Drupal Troubleshooter. The testing framework requires the PHP open_basedir restriction to be disabled.

This tutorial shows how to avoid the "The testing framework requires the PHP open_basedir restriction to be disabled" error message when trying to update database using update.php file.

1) Open "modules/simpletest/simpletest.install" file.

2) Locate and delete/comment out the following code.

if ($open_basedir) {
  $requirements['php_open_basedir']['severity'] = REQUIREMENT_ERROR;
  $requirements['php_open_basedir']['description'] = $t('The testing framework requires the PHP open_basedir restriction to be disabled. Check your webserver configuration or contact your web host.', array('@open_basedir-url' => 'http://php.net/manual/en/ini.core.php#ini.open-basedir'));
  }

3) Save the file, update the database and revert your changes.