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) »
  • set_include_path not working?
Pages: [1]

Author Topic: set_include_path not working?  (Read 3073 times)

sweetcircus

  • Guest
set_include_path not working?
March 15, 2010, 08:41:55 am
Hello,
I have been trying to migrate my site to our production server and running into some errors. I have narrowed it down and it appears that set_include_path is not working because it keeps looking to my actually physical include path rather than getting changed to the civicrm path. All the permissions on the files are set to 777 and its working

In my settings file this is my root path:  /home/paba/public_html/sites/all/modules/civicrm

I tried physically changing the path for this error

Code: [Select]
Fatal error: require_once() [function.require]: Failed opening required 'CRM/Utils/System.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/paba/public_html/sites/all/modules/civicrm/drupal/modules/views/civicrm.views.inc  on line 4623
and it got rid of the error, however other areas of civicrm are using this same include path, so i need to figure out why it is not getting set properly

my set up is Centos, php5.2.5, mysql5.x, apache2.x

Thanks for any help in advance.

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: set_include_path not working?
March 15, 2010, 10:15:13 am
Have you followed these instructions: http://wiki.civicrm.org/confluence/display/CRMDOC/Moving+an+Existing+Installation+to+a+New+Server+or+Location

HTh
Kurund
Found this reply helpful? Support CiviCRM

sweetcircus

  • Guest
Re: set_include_path not working?
March 15, 2010, 10:40:51 am
Yes I have followed these instructions. including the troublshooting... same errors.

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: set_include_path not working?
March 15, 2010, 10:42:55 am
Can you disable Views module and check if that helps

Kurund
Found this reply helpful? Support CiviCRM

sweetcircus

  • Guest
Re: set_include_path not working?
March 15, 2010, 10:57:12 am
Yes I have tried this, its still gets errors from other areas that rely on the include path being set

This is the next error/warning:

Code: [Select]
warning: include_once() [function.include]: Failed opening 'CRM/Core/Config.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/paba/public_html/sites/all/modules/civicrm/drupal/civicrm.module on line 253.
of course, its also telling me that my civi_root path isant work

 civicrm_root is currently set to:
Code: [Select]
/home/paba/public_html/sites/all/modules/civicrm. (which is correct)

Because include_path is not changing it away from the system include path of
Code: [Select]
/usr/lib/php:/usr/local/lib/php
Have you ever heard of the set_include_path not working correctly in PHP?


Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: set_include_path not working?
March 15, 2010, 11:40:13 am
Sorry no idea. You should consider hiring someone from http://civicrm.org/professional list to help you to debug on this.

Kurund
Found this reply helpful? Support CiviCRM

Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: set_include_path not working?
March 19, 2010, 01:38:56 pm
The only thing you can check is to see whether your hosting provider does not tamper with your ability to change the include_path, but that would be very strange.
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) »
  • set_include_path not working?

This forum was archived on 2017-11-26.