CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Fresh install of drupal with same civicrm database
Pages: [1]

Author Topic: Fresh install of drupal with same civicrm database  (Read 2444 times)

ToddFur

  • I post occasionally
  • **
  • Posts: 52
  • Karma: 0
Fresh install of drupal with same civicrm database
March 11, 2009, 06:54:04 am
I did a fresh install of Drupal with new drupal database. However I want to keep my old civiCRM database as that has all of the contact info.

I then uploaded/unzipped a new install of CiviCRM 2.1

I manually uploaded the civicrm.settings.php file with the connections to the 2 database.

I enabled civiCRM module in drupal, and ran the update.php but the module is not appearing anywhere like it used to... I can't access CiviCRM

I also read in the forums to also run the updateConfigBackend but that command never was able to run...

I simply want a new install of Drupal but I dont want to lose my contact info in the old CiviCRM database I had (which was also from a version 2.1)



Deepak Srivastava

  • Ask me questions
  • ****
  • Posts: 677
  • Karma: 65
Re: Fresh install of drupal with same civicrm database
March 11, 2009, 08:15:38 am
Quote
I manually uploaded the civicrm.settings.php file with the connections to the 2 database.
Not enough to make civicrm module register with the new drupal db.

Here is what i would do -
1. Do another fresh install of civicrm (which has a new db) with your new drupal.
2. Once new civicrm installation is working fine, go and change civicrm.settings.php to point to old civicrm database.
3. Drop the civicrm database created in step1.   

I am assuming by old civicrm you mean the same civicrm version (otherwise you 'll also have to do the civicrm upgrade).
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

ToddFur

  • I post occasionally
  • **
  • Posts: 52
  • Karma: 0
Re: Fresh install of drupal with same civicrm database
March 11, 2009, 08:47:41 am
Ok...

What I did was re-install civicrm 2.1 and using the

http://www.bensbells.org/drupal/sites/all/modules/civicrm/install/index.php command

(I put in NEW drupal database and same CiviCRM database(from my previous 2.1 install) ) and the next window prompted a fatal error on civicrm.domain -- something about DROP TABLE IF EXISTS error on civicrm_domain

So -- are you saying, I should re-install the civicrm directory and at the

http://www.bensbells.org/drupal//sites/all/modules/civicrm/install/index.php

put in both NEW Drupal and NEW civiCRM database and then when all looks good, go into civicrm.settings.php file and point it back to the old civiCRM databasse?

And then I should see all of my contact info saved?

Deepak Srivastava

  • Ask me questions
  • ****
  • Posts: 677
  • Karma: 65
Re: Fresh install of drupal with same civicrm database
March 11, 2009, 09:19:36 am
Quote
So -- are you saying, I should re-install the civicrm directory and at the

http://www.bensbells.org/drupal//sites/all/modules/civicrm/install/index.php

put in both NEW Drupal and NEW civiCRM database and then when all looks good, go into civicrm.settings.php file and point it back to the old civiCRM databasse?

Exactly.

Quote
And then I should see all of my contact info saved?
Yes.
« Last Edit: March 11, 2009, 09:22:02 am by Deepak Srivastava »
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

ToddFur

  • I post occasionally
  • **
  • Posts: 52
  • Karma: 0
Re: Fresh install of drupal with same civicrm database
March 11, 2009, 11:08:49 am
Ok, I did that.

Now, when I log into CiviCRM and do a search on my contacts I get:

Code: [Select]
Fatal error: CRM_Core_Component::require_once() [function.require]: Failed opening required 'CRM/Case/Info.php' (include_path='.:/home/content/b/e/n/bensbells/html/drupal/sites/all/modules/civicrm:/home/content/b/e/n/bensbells/html/drupal/sites/all/modules/civicrm/packages:.:/usr/local/php5/lib/php') in /home/content/b/e/n/bensbells/html/drupal/sites/all/modules/civicrm/CRM/Core/Component.php on line 99

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Fresh install of drupal with same civicrm database
March 11, 2009, 11:17:04 am

seems like you still have some old settings enabled. can u do the following in mysql

mysql> update civicrm_domain set config_backend = null;

also ensure that you've deleted the files/civicrm/templates_c directory

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

ToddFur

  • I post occasionally
  • **
  • Posts: 52
  • Karma: 0
Re: Fresh install of drupal with same civicrm database
March 11, 2009, 11:27:14 am
I do see /civicrm/templates with "CRM" and "Menu" directory under them. But "templates_c" directory is not anywhere to be found under /civicrm???

Also, I don't have shell access to mySQL. I have phpMyAdmin access on the web. How do I issue "update civicrm_domain set config_backend = null;" using phpMyAdmin?

Thanks again...

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Fresh install of drupal with same civicrm database
March 11, 2009, 11:38:34 am

1. check under DRUPAL_ROOT/files or DRUPAL_ROOT/sites/default/files

2. you should be able to run that statement in PMA also in the SQL tab. Check the PMA manual for more help if needed (i dont use PMA)

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

ToddFur

  • I post occasionally
  • **
  • Posts: 52
  • Karma: 0
Re: Fresh install of drupal with same civicrm database
March 11, 2009, 11:58:34 am
Ok, found them both.

Doesn't look like anything changed... upon searching my contacts I still get:

warning: CRM_Core_Component::require_once(CRM/Case/Info.php) [function.CRM-Core-Component-require-once]: failed to open stream: No such file or directory in /home/content/b/e/n/bensbells/html/drupal/sites/all/modules/civicrm/CRM/Core/Component.php on line 99.

any other suggestions?  ???

ToddFur

  • I post occasionally
  • **
  • Posts: 52
  • Karma: 0
Re: Fresh install of drupal with same civicrm database
March 11, 2009, 12:15:53 pm
Not sure if this helps but I tried to find that path the error message is pointing to:

/drupal/sites/all/modules/civicrm/CRM/Core/Component.php

And this does not exist on my server.... ???

Is this from version 2.2beta4? I think so... this is strange because I did previously attempt to go up to 2.2beta4 but the upgrade went ugly and I kept on getting messages that made it seem it never changed the database structure. But looks like it may have?

I guess this is my next step. Is there a document anywhere on how to clean this up? so that my civicrm database is compatible with version 2.1 again?



Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Fresh install of drupal with same civicrm database
March 11, 2009, 12:36:47 pm

if i had to guess, your code base and database are of different versions (the error indicates that it can read CRM/Core/Component.php)

not sure how big your 2.1 db is, if not too big, might be better off starting with a clean 2.2 install

alternatively you should consider hiring someone from http://civicrm.org/professional/ to help out with the current situation

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Fresh install of drupal with same civicrm database

This forum was archived on 2017-11-26.