ubercart migration settings.php not recognized?
Hello,
I'm having a little problem trying to get my migration to work.
Currently I'm running a drupal website which uses ubercart and what I'd like to do is migrate all of it into a local commerce kickstart installation.
First I setup commerce kickstart and went through the installation process. After a clean installation I opened up my localhost/phpmyadmin and imported the database of the other website. I also copied all the images for the products to my sites/default/files folder.
Next I removed all the products and product types of my kickstart site.
Now here comes the catch, my settings.php looks like this:
$databases['default']['default'] = array (
'driver' => 'mysql',
'database' => 'mysite',
'udername' => 'root',
'password' => '',
'host' => 'localhost',
'port' => '8082',
);
$databases['ubercart']['default'] = array (
'driver' => 'mysql',
'database' => 'ubercart',
'username' => 'root',
'password' => '',
'host' => 'localhost',
'port' => '8082',
);
I've done this for both the settings.php in:
/sites/default/settings.php
/sites/mysite.localhost/settings.php
I've installed commerce kickstart using acquia dev desktop.
Now when I go to:
admin/content/migrate/ubercart_migration_options
First off I'm not able to see the following fields:
Relative or absolute path to the public files directory used for Ubercart images
Relative or absolute path to the root of the source Drupal installation
Anyways, when I set the Source database key in settings.php * to be ubercart it returns the following error message:
The database key $databases["ubercart"] does not exist
Might this have something to do with Acquia Dev Desktop setting up the database connection or perhaps kickstart which sets up a database connection when installing and somehow ignores settings.php?
Comments
When I do the following in commerce_migrate_ubercart.module on line 101:
drupal_set_message("<pre>" . print_r($GLOBALS['databases'], true) . "</pre>");
It displays me:
Array
(
[default] => Array
(
[default] => Array
(
[driver] => mysql
[database] => mysite
[username] => drupaluser
[password] =>
[host] => 127.0.0.1
[port] => 33066
)
)
)
I'm trying to do a global search for the $databases variable in all my files and folders using notepad++.
I think this has something to do with kickstart.
EDIT: my apoligies, I just found out that it was on the bottom of settings.php -,-
I feel so stupid. I was overriding it...