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) »
  • little path/file issue
Pages: [1]

Author Topic: little path/file issue  (Read 1926 times)

moreonion

  • I’m new here
  • *
  • Posts: 16
  • Karma: 0
little path/file issue
June 18, 2010, 03:10:40 am
hey!

I'm getting this error while installing (gentoo server, newest drupal, newest civicrm)


Warning: require_once(/var/--------.com/htdocs/sites/all/modules/civicrm/install/DB.php) [function.require-once]: failed to open stream: No such file or directory in /var/-------.com/htdocs/sites/all/modules/civicrm/install/civicrm.php  on line 136

Fatal error: require_once() [function.require]: Failed opening required '/var/www:88/-------------.com/htdocs/sites/all/modules/civicrm/install/DB.php' (include_path='/var/www:88/----------------------------.com/htdocs/sites/all/modules/civicrm:/var/www:88/-----------.com/htdocs/sites/all/modules/civicrm/packages:.:/usr/share/php5:/usr/share/php') in /var/www:88/---------------.com/htdocs/sites/all/modules/civicrm/install/civicrm.php on line 136


any ideas?
I couldn't find the DB.php file anywhere around otherwise I would have simply fixed the path....
can someone point it to me?

thank you in advance (btw I LOVE civicrm)
« Last Edit: June 18, 2010, 04:17:18 am by moreonion »

Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: little path/file issue
June 18, 2010, 05:50:14 am
This means that for some reason the include_path is not set to contain the packages directory (where DB.php lives).

Is this on the first install screen or somewhere further?
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

moreonion

  • I’m new here
  • *
  • Posts: 16
  • Karma: 0
Re: little path/file issue
June 18, 2010, 05:53:01 am
it comes up right after the screen where you enter db details and file permissions
everything went green on that screen (status:ok) and the next screen said something like "this is going to take some time - building db structure, etc. but it had those errors at the bottom....

I tried it with other versions (not only the newest available) and they all turned out the same ;-(


Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: little path/file issue
June 21, 2010, 04:45:11 am
Can you check what is the value of include_path at the beginning of the civicrm_source() function in install/civicrm.php? It seems this is where we require_once 'DB.php' and apparently the packages dir is not searched there…
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

moreonion

  • I’m new here
  • *
  • Posts: 16
  • Karma: 0
Re: little path/file issue
July 06, 2010, 11:46:35 am
sorry for late reply, it's:

 set_include_path( $crmPath . PATH_SEPARATOR .
                      $pkgPath . PATH_SEPARATOR .
                      get_include_path( ) );


help much appreciated....

Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: little path/file issue
July 07, 2010, 05:24:09 am
Right, the code tries to set it to prepend $crmPath and $pkgPath to the current include_path, but can you try checking what’s the result?

Something to the tune of:

Code: [Select]
print 'resulting include_path: ' . get_include_path() . '<br />';

right before the unfortunate require_once call (to see where the problem lies, i.e., whether the relevant path is, indeed, not searched).
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

moreonion

  • I’m new here
  • *
  • Posts: 16
  • Karma: 0
Re: little path/file issue
July 07, 2010, 06:45:37 am
I'm happy to test it, but I don't know php - so if you could paste me a snippet and tell me exactly where to put it that would be awesome.


Thank you  :)
florian

Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: little path/file issue
July 08, 2010, 02:59:11 am
Quote from: moreonion on July 07, 2010, 06:45:37 am
I'm happy to test it, but I don't know php - so if you could paste me a snippet and tell me exactly where to put it that would be awesome.

Ok, let me repeat, then. :) The snippet is

Code: [Select]
print 'resulting include_path: ' . get_include_path() . '<br />';

and you need to paste it right before the unfortunate require_once call, i.e., right before line 136 of /var/--------.com/htdocs/sites/all/modules/civicrm/install/DB.php
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

Roman Zimmermann

  • I’m new here
  • *
  • Posts: 24
  • Karma: 2
    • more onion
Re: little path/file issue
July 09, 2010, 03:12:16 am
the problem seems to be, that the path to the civicrm installations contains the PATH_SEPARATOR.
afaik php offers no way to escape (I'd love to be proven wrong on this one), so the only way to solve this is to move /var/www:88 to something that doesn't contain a colon.


moreonion

  • I’m new here
  • *
  • Posts: 16
  • Karma: 0
Re: little path/file issue
July 09, 2010, 04:01:54 am
thank you for your support folks ;-)

looking forward to invest in civicrm development....

Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: little path/file issue
July 26, 2010, 05:56:27 am
Quote from: torotil on July 09, 2010, 03:12:16 am
the problem seems to be, that the path to the civicrm installations contains the PATH_SEPARATOR.

Ah, good catch. I see CRM-6485 was filed for this in the meantime, so I’ll fix that (and see whether there is a way to escape colons in PHP’s include_paths, but I wouldn’t hold my breath for that).
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • little path/file issue

This forum was archived on 2017-11-26.