From: Lacey S. <lac...@sh...> - 2010-02-08 21:52:24
|
Update, I was doing some digging around in the Drupal Troubleshooting FAQ and found a note on Fatal error: Cannot redeclare blah_function() in ../modules/ blah.module (http://drupal.org/node/72099) Which suggests the problem may be due to duplicated function/ module... Thus maybe it's related to the two different databases and the same functions being used to initiate each? I then found a further post (http://old.nabble.com/using-two-different-database-type-td18728019.html ) of using two different database types which confirmed my previous hypothesis: Quote: > > Re: using two different database type > > > by Pierre R. Jul 30, 2008; 02:33am :: Rate this Message: - Use > ratings to moderate (?) > > Reply | Reply to Author | Print | View Threaded | Show Only this > Message > > You MUST use two same database type. > > Explaination is simple, since Drupal files with pgsql support and > mysql > support declare the same function's names inside, it's just impossible > to go through this situation. Therefore I am going to switch my drupal database to postgres and see if that fixes this problem... Lacey On 5-Feb-10, at 9:48 AM, Lacey Sanderson wrote: > Hello, > > I am using, > Drupal 6.15 > Triple 6.x-0.2 > Chado 1.8 > PostgreSQL 8.3.9 (server 8.3.8) > System Ubuntu Intrepid > > Up to this point I have installed chado and loaded the example yeast > data. I checked and the data seems to be loaded into chado > correctly. I then installed drupal (which works fine), changed the > db_url definition in settings.php to include both 'default and > 'chado' and untar-ed the triple module in the module dir... > > When I go to enable the core module, as soon as I press Save > Configuration it takes me to a Fatal Error Page with the following > text: > > Fatal error: Cannot redeclare db_status_report() (previously > declared in /usr/share/drupal6/includes/database.mysql.inc:20) in / > usr/share/drupal6/includes/database.pgsql.inc on line 33 > > This is what my settings.php looks like (except I filled in pass > with the correct password for each. > > * Database URL format: > * $db_url = 'mysql://username:password@localhost/databasename'; > * $db_url = 'mysqli://username:password@localhost/databasename'; > * $db_url = 'pgsql://username:password@localhost/databasename'; > */ > $db_url = array( > 'default' => 'mysql://drupal6:pass@localhost/drupal6', > 'chado' => 'pgsql://chado:pass@localhost/chado-dev', > ); > $db_prefix = ''; > > Any idea what is going on? I double-check that the use I specified > could login to the database I specified and tried to look at the > file but I don't know php... > > Help? Thanks in advance, > > Lacey > --------------------------------- Lacey Sanderson Bioinformaticist Pulse Crop Breeding and Genetics Department of Plant Sciences University of Saskatchewan. |