kalamuna / terminatur

What terminus began, terminatur finished: Drush CODESCIENCE for Pantheon Integration
MIT License
11 stars 7 forks source link

Downloading Drupal 6 sites from Pantheon #22

Closed pirog closed 10 years ago

pirog commented 10 years ago

I noticed when I pulled a Drupal 6 site from Pantheon the settings.php file was configured for a Drupal 7 site. Kalabox reports that the download was successful but when you visit the site it prompts you to do a fresh install.

To fix it I just changed the database settings in the settings.php to use the Drupal 6 syntax and all was good.

reynoldsalec commented 10 years ago

@steveixa, I took a look at this, Terminatur identifies Drupal 6 sites by checking for the string "db_url", if that exists in your settings.php it correctly creates a Drupal 6 db connection URL. Perhaps you were missing that or something else was funky in your Drupal 6 settings.php file?

reynoldsalec commented 10 years ago

@mmenavas, feel free to take a look at this and issue a pull request if you see something that could be improved.

steveixa commented 10 years ago

I believe Pantheon doesn't use the settings.php file for the getting the database credentials so maybe the db_url string isn't there.

pirog commented 10 years ago

They don't but i think $db_url should be in settings.php regardless? Cant you investigate whether settings.php even exists on a vanilla D6 spin up on pantheon?

On Sun, Jun 29, 2014 at 4:53 PM, steveixa notifications@github.com wrote:

I believe Pantheon doesn't use the settings.php file for the getting the database credentials so maybe the db_url string isn't there.

— Reply to this email directly or view it on GitHub https://github.com/kalamuna/terminatur/issues/22#issuecomment-47484253.

Cheers,

Mike Pirog Kalamuna www.kalamuna.com

steveixa commented 10 years ago

ok - i tested a vanilla install. it worked fine. thanks

steveixa commented 10 years ago

I don't have the original settings.php because I fixed it manually. I suspect it didn't have any database settings in it.

From: Mike Pirog notifications@github.com<mailto:notifications@github.com> Reply-To: kalamuna/terminatur reply@reply.github.com<mailto:reply@reply.github.com> Date: Tuesday, 1 July 2014 3:47 am To: kalamuna/terminatur terminatur@noreply.github.com<mailto:terminatur@noreply.github.com> Cc: Stephen Hutchinson shutchison@infoxchange.net.au<mailto:shutchison@infoxchange.net.au> Subject: Re: [terminatur] Downloading Drupal 6 sites from Pantheon (#22)

good to know. maybe you can post a sanitized version of settings.php for the offended site so we can check out if something in there is messing this up?

Reply to this email directly or view it on GitHubhttps://github.com/kalamuna/terminatur/issues/22#issuecomment-47562618.

pirog commented 10 years ago

Going to go ahead and close this issue? Unless there is a better way for us to get the drupal version? Please reopn if you think so