I have civicrm 2.0.5 running on a couple drupal 5 sites. Up until a couple days ago they were running fine. The server they are on had an upgrade of PHP from 5.x.x to 5.2.6. Most everything else on the server is running fine, but now civicrm is throwing the following errors:
"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/redwoodt/public_html/sites/all/modules/civicrm."
The path is actually correct and the module has been running correctly for months until this update. I've posted on the civicrm forum but haven't gotten anywhere. So, I am casting about for ideas. There are other applications on the server (x-cart, slideshow director) that are also having problems finding their files.
The path is actually correct and the module has been running correctly for months until this update. I've posted on the civicrm forum but haven't gotten anywhere. So, I am casting about for ideas. There are other applications on the server (x-cart, slideshow director) that are also having problems finding their files.
Seems clear that this is not a CiviCRM issue nor even a Drupal issue. If the other packages also can't find files, then either it's a PHP bug or something changed between the old version and the new version. Without access to a system set up precisely as yours, it will be difficult to guess what's wrong--it could also have to do with system settings or other software/modules installed on your server.
If it were me, I would choose one of these packages and start playing with the code to determine where the path is getting lost. This
echo $variable_x;die;
while ugly, works quite well in such a situation--keep sticking that in different places until you figure out what's happening.
HTH
Quoting Bob Morse bob@morsemedia.net:
I have civicrm 2.0.5 running on a couple drupal 5 sites. Up until a couple days ago they were running fine. The server they are on had an upgrade of PHP from 5.x.x to 5.2.6. Most everything else on the server is running fine, but now civicrm is throwing the following errors:
"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/redwoodt/public_html/sites/all/modules/civicrm."
The path is actually correct and the module has been running correctly for months until this update. I've posted on the civicrm forum but haven't gotten anywhere. So, I am casting about for ideas. There are other applications on the server (x-cart, slideshow director) that are also having problems finding their files.
An issue for the hosting provider needs to be opened. Also research the PHP bug list.
Earnie -- http://for-my-kids.com/ -- http://give-me-an-offer.com/
I'd already done that but hadn't gotten anywhere. But late last night there was a breakthrough with help from support at the data center.
It was definitely an issue with how PHP was reading paths. If I get a coherent explanation of why, I'll post it in case anyone else runs in to something similar.
Earnie Boyd wrote:
An issue for the hosting provider needs to be opened. Also research the PHP bug list.