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) »
  • Civicrm to Drupal error
Pages: [1]

Author Topic: Civicrm to Drupal error  (Read 979 times)

asiams

  • Guest
Civicrm to Drupal error
March 02, 2010, 06:57:48 pm
Hello,

When I tried to install civicrm 3.1.3 to newly installed drupal 6, I received the error_log from apache:

--------------------------------------------

[Wed Mar  3 11:45:10 2010] [error] PHP Fatal error:  require_once() [<a href='function.require'>function.require</a>]: Failed opening required 'DB.php' (include_path='.:/usr/lib/php:/usr/local/lib/php:/home/qfyeqo/php') in /home/qfyeqo/public_html/crm/sites/all/modules/civicrm/install/civicrm.php on line 136

---------------------------------------------

PHP Fatal error: require_once()

Failed opening required 'DB.php'

The include_path is not correct. How can I correct this path?

Thanks.

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: Civicrm to Drupal error
March 02, 2010, 07:03:18 pm

most likely your php install does not allow the script to set the include path. We try to set the include path here:

/home/qfyeqo/public_html/crm/sites/all/modules/civicrm/install/civicrm.php, line 45

if you are familiar with php please add some php debugging statements there and see what is happening and why. If you dont know PHP, might help to find someone who knows php who can help you out :)

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

asiams

  • Guest
Re: Civicrm to Drupal error
March 04, 2010, 08:55:21 pm
Hello Lobo,

OK, I did add a line like this:

Quote
function civicrm_setup( $filesDirectory ) {
    global $crmPath, $sqlPath, $pkgPath, $tplPath;
    global $compileDir;
   
    $crmPath = '/home/qfyeqo/public_html/vision/administrator/components/com_civicrm/civicrm';

    $pkgPath = $crmPath . DIRECTORY_SEPARATOR . 'packages';
    set_include_path( $crmPath . PATH_SEPARATOR .
                      $pkgPath . PATH_SEPARATOR .
                      get_include_path( ) );

I tried it again, but the result was the same. Can you advise in detail?

Thanks.



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: Civicrm to Drupal error
March 04, 2010, 09:26:34 pm

i dont know

your best bet would be to hire someone from 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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Civicrm to Drupal error

This forum was archived on 2017-11-26.