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 »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • PHP upgraded now getting errors
Pages: [1]

Author Topic: PHP upgraded now getting errors  (Read 5190 times)

BobM

  • I’m new here
  • *
  • Posts: 27
  • Karma: 4
PHP upgraded now getting errors
September 09, 2008, 10:23:10 am
The server where we have a couple installations of CiviCRM had PHP upgraded to 5.2.6 and now the module has stopped working. Instead we get the following error:

"Oops! - The path for including CiviCRM code files is not set properly. Most likely there is an error in the civicrm_root setting in your CiviCRM settings file (sites/default/civicrm.settings.php).

» civicrm_root is currently set to: /home/username/public_html/sites/all/modules/civicrm/."

But nothing has changed in settings.php and the civicrm_root path is correct. I assume this has something to do with the upgrade. But it's not clear what.




MacRonin

  • I post frequently
  • ***
  • Posts: 153
  • Karma: 14
Re: PHP upgraded now getting errors
September 09, 2008, 11:01:15 am
A few questions first. What was your old version of PHP? and what release of CiviCRM are you running?

Up to version 1.8 there two diff installs for CiviCRM. One was for PHP4 and the other was for PHP5. Since 1.9 CiviCRM has been PHP5 only. So if you are running a release earlier than 1.9 you will need to switch the code you have installed from the php4 version to the pph5 one if your prior version of php was php4

BobM

  • I’m new here
  • *
  • Posts: 27
  • Karma: 4
Re: PHP upgraded now getting errors
September 09, 2008, 11:10:04 am
We're running 2.0.5 of CiviCRM.
I'm not sure exactly what version of PHP was running before, but it was an earlier version of 5.x.

MacRonin

  • I post frequently
  • ***
  • Posts: 153
  • Karma: 14
Re: PHP upgraded now getting errors
September 09, 2008, 12:53:48 pm
Hmm ... not sure, but since you were already on PHP5 it sounds like it wasn't my first thought.

I'll have to think a bit more on this ...

BobM

  • I’m new here
  • *
  • Posts: 27
  • Karma: 4
Re: PHP upgraded now getting errors
September 09, 2008, 01:00:50 pm
It turns out it's not just an issue with civicrm. i've discovered there are some x-cart sites which are not functioning as well (can't find the templates). So, it's definitely a path issue that somehow got messed up in the PHP upgrade.

BobM

  • I’m new here
  • *
  • Posts: 27
  • Karma: 4
Re: PHP upgraded now getting errors
September 10, 2008, 04:19:26 pm
Is it possible CiviCRM is just not compatible with PHP 5.2.6?

MacRonin

  • I post frequently
  • ***
  • Posts: 153
  • Karma: 14
Re: PHP upgraded now getting errors
September 10, 2008, 04:36:42 pm
I would assume that it is some type of configuration error or maybe some other package/combo.

BTW I am running PHP 5.2.6 and its working for me.

BobM

  • I’m new here
  • *
  • Posts: 27
  • Karma: 4
Re: PHP upgraded now getting errors
September 10, 2008, 04:51:26 pm
Yeah. I can't imagine that being a problem. I'm just grasping at straws. I've discovered a 3rd application on the server that's affected called slide show pro director. It can't find its files either.

BobM

  • I’m new here
  • *
  • Posts: 27
  • Karma: 4
Re: PHP upgraded now getting errors
September 12, 2008, 10:26:22 am
It's fixed with the help of data center support. In case anyone runs in to this here is what was discovered and the fix:

Each VirtualHost declaration contains include file in form like this:

include /usr/local/apache/conf/userdata/std/1/<username>/*

At this location you can find file: cp_php_magic_include_path.conf which contains:

php_admin_value include_path "..." declarations. Values set  by php_admin_value directive can not be overwritten anyhow (not by .htaccess file not by set_ini function).

The solution is replace 'php_admin_value include_path' with 'php_value include_path' anywhere it exists.

Now, why this happened with the upgrade to php 5.2.6 is still unclear and may have to do with the fact that this is a Cpanel server.

Brainwrap

  • Guest
Re: PHP upgraded now getting errors
October 08, 2008, 02:19:28 pm
Hi there! I've been going nuts suffering from the same error message that you mentioned. Here's my own tale of woe:

http://forum.civicrm.org/index.php/topic,4594.0.html

I see that you came up with a solution for this error in your case, which apparently involved "replacing 'php_admin_value include_path' with 'php_value include_path' anywhere it exists."

My question is, where exactly did you make that change? Was it in a single file within the CiviCRM directory? Multiple files? Also, did you have to actually change anything on the server itself (that is, within the server settings, *not* within CiviCRM?)

My server is probably set up a bit differently than yours: I'm using a MediaTemple DV server, running Apache/Linux, and using the Plesk 8.3 control panel. The website in question is: http://www.justice4michigan.org

I would greatly appreciate any assistance or suggestions that you could give me on this--this is kind of an important project, and I've been tearing my hair out trying to resolve the problem (oddly, the error message only pops up some of the time, seemingly at random).

Thanking you in advance for any assistance you can offer!


BobM

  • I’m new here
  • *
  • Posts: 27
  • Karma: 4
Re: PHP upgraded now getting errors
October 08, 2008, 03:15:45 pm
Unfortunately, I can't provide much more information than what I have posted as I did not personally find the cause or make the fix. However, I can assure you that this did not have anything to do with the CiviCRM settings, but with the file cp_php_magic_include_path.conf which is (as the cp_ prefix suggests) a file specific to cpanel and can be found at /usr/local/apache/conf/userdata/std/1/<username>/* . This was on a shared server, so there were a bunch of usernames and that file had to be fixed for all of them. Well, any that were using PHP 5.

But as yours is running Plesk, this may not be your problem or if it's something similar the file may be called something else and be located somewhere else.

This was not easy to track down, took a couple days and a couple different techs digging around and trying different things. I wish you the best of luck with it!

Brainwrap

  • Guest
Re: PHP upgraded now getting errors
October 08, 2008, 06:15:43 pm
Bob--

(sigh) Well, thanks for the quick response and the guidance. I was obviously hoping that I could just root through the CiviCRM files and swap out that one line in a few places, but it sounds like the issue is at the Plesk end.

I'll contact MediaTemple support and see if they can assist.

Thanks again.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • PHP upgraded now getting errors

This forum was archived on 2017-11-26.