Blank page while installing drupal from cvs

I downloaded the latest drupal from the cvs using the command below.

cvs -z6 -d:pserver:anonymous:anonymous@cvs.drupal.org:/cvs/drupal checkout drupal

When I tried to install the drupal it gave me a blank page when I clicked on "Install drupal in english". I tried everything from re-downloading the code to commeting some lines in the install.inc file but all in vain but finaly I have fixed it. I know it is kinda dirty way of fixing things. I saw this page http://drupal.org/node/298391 while searching for solution. Though I did not apply the patch. I made the change in the includes/install.inc file manually.

In the function "function drupal_detect_database_types()" Replace this portion of the code.

  foreach (file_scan_directory(DRUPAL_ROOT . '/includes/database', '/^[a-z]*$/i', array('recurse' => FALSE)) as $file) {
    include_once "{$file->filepath}/install.inc";
    include_once "{$file->filepath}/database.inc";
    $drivers[$file->filename] = $file->filepath;
  }

with

 foreach (glob('./includes/database/*/{install,database}.inc', GLOB_BRACE) as $file) {
    include_once($file);
    $drivers[max(explode('/', $file, -1))] = $file;
 }

Drupal rocks!

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • E-Mail addresses are hidden with reCAPTCHA Mailhide.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions. Please don't mind guys!