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) »
  • Failed opening required 'DB/DataObject.php'
Pages: [1]

Author Topic: Failed opening required 'DB/DataObject.php'  (Read 3059 times)

moondancerjen

  • I’m new here
  • *
  • Posts: 29
  • Karma: 1
Failed opening required 'DB/DataObject.php'
November 16, 2007, 08:12:22 am
I have been having the hardest time trying to install CiviCRM on my Drupal 4.7.  I am trying to re-create a site, so I am trying to install CiviCRM 1.7.9379 on Drupal 4.7.8. 

I have all of the civicrm install files in the sites/all/modules/civicrm directory
The $civicrm_root is set to './sites/all/modules/civicrm/';

I copied the civicrm.module to the modules folder.  The civicrm.settings file is in the sites/default folder.

I just don't know what I have done wrong.  I was getting the typical "Failed opening required 'CRM/Core/Config.php'" error until I put the . in before the $civicrm_root  And now I am getting this error:

Fatal error: require_once() [function.require]: Failed opening required 'DB/DataObject.php' (include_path='.:./sites/all/modules/civicrm/:./sites/all/modules/civicrm//packages:.:/usr/share/php:/usr/share/pear') in /mnt/target02/344441/344443/www.gcir.org/web/content/sites/all/modules/civicrm/CRM/Core/DAO.php on line 51

I just don't know what else to try on this.  Any ideas?

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: Failed opening required 'DB/DataObject.php'
November 16, 2007, 10:09:12 am

Jen:

1. Set:

$civicrm_root = '/mnt/target02/344441/344443/www.gcir.org/web/content/sites/all/modules/civicrm';

2. You should upgrade to drupal 5.3 / CiviCRM 1.9

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

moondancerjen

  • I’m new here
  • *
  • Posts: 29
  • Karma: 1
Re: Failed opening required 'DB/DataObject.php'
November 16, 2007, 10:28:54 am
I've set the civicrm root to what you've told me and it still isn't working. 

My next question is if I have an existing database from CiviCRM 1.7 and I try to use it on 1.9 will I have any problems?

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: Failed opening required 'DB/DataObject.php'
November 16, 2007, 11:10:08 am

You will need to upgrade your database from v1.7 -> v1.8 ->v1.9

please check the upgrade instructions in the wiki

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

moondancerjen

  • I’m new here
  • *
  • Posts: 29
  • Karma: 1
Re: Failed opening required 'DB/DataObject.php'
November 16, 2007, 12:50:48 pm
How can I upgrade if I don't have version 1.7 working?

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: Failed opening required 'DB/DataObject.php'
November 16, 2007, 03:07:44 pm

1. theoretically you dont need v1.7 working to upgrade to v1.9. The upgrade scripts are all sql based

2. You might want to think about getting some help from folks at http://civicrm.org/professional/

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

moondancerjen

  • I’m new here
  • *
  • Posts: 29
  • Karma: 1
Re: Failed opening required 'DB/DataObject.php'
November 19, 2007, 08:51:38 am
Thanks for all your help.  I ended up just wiping my install and tried again, and it worked ~*magically*~

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Failed opening required 'DB/DataObject.php'

This forum was archived on 2017-11-26.