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) »
  • Error with settings php file but its there
Pages: 1 [2]

Author Topic: Error with settings php file but its there  (Read 6702 times)

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Error with settings php file but its there
March 23, 2012, 03:47:41 am
Quote from: jenniwoo on March 22, 2012, 05:50:54 pm
Besides the "irritation factor," mentioned earlier, how can CiviCRM support & developer people let this problem for D7+C4 continue unaddressed and unsolved for so many months?  Surely other D7 users are whining loudly about the problem to you.  Does management put "less smart" people in "first tier support" positions... with no 2nd tier to back them up?

I am not a member of the CiviCRM team, so I can only speak for myself. I am, however, a person who regularly provides support on this forum. All people who provide support here do so for free, by the way, on their own time.

In regard to your question, it would appear that there is a problem, but it's not at all clear if the issue is in CiviCRM or in the server configuration of the host machine. Please note on the About CiviCRM page that the team does say:

Quote
We encourage users to consider Virtual Private Servers (VPS) OR (semi) dedicated hosting OR shared hosting from a host with experience hosting CiviCRM.

CiviCRM is not a simple package and the resources of the developers are limited. We are unfortunately not able to support every single server configuration in the world.

The only reports of this problem, as far as I know, are on this thread. Relatively speaking, this is a very small percentage of CiviCRM users. That, I would suggest, is one reason that the team is not able to devote significant time to debug this issue. That and perhaps that fact that a simple solution exists--move your site to a server with a configuration known to work with CiviCRM.

Quote from: jenniwoo on March 22, 2012, 05:50:54 pm
PS: It's not up to my host provider to debug this for me.

Different hosts provide differing levels of support. Some hosts would debug this issue for you, as the CiviCRM code is known to work on a standard LAMP machine.

Quote from: jenniwoo on March 22, 2012, 05:50:54 pm
If I / the site doesn't get a PHP error, e.g. an error message that some PHP module is missing or triggered an error, why should they?  Surely I'd see that error on the error answer page! I've got error reporting "turned on" for PHP.

You wrote earlier "I get the same error message as does 'galdi56.'  " and thus your error would be something like "Failed opening '/civicrm.settings.php' " So it seems you do get an error. No?

If that is the error, I would wonder why your host isn't willing or able to assist. It would certainly appear that this is a file permissions issue.

In sum, however, I can say that everyone would be happy if this issue was fixed. But if the team doesn't have the resources, perhaps you do. Your assistance is greatly valued. If you can't debug it yourself, perhaps consider hiring a consultant who could.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

jenniwoo

  • I’m new here
  • *
  • Posts: 4
  • Karma: -1
  • CiviCRM version: 4.0
  • CMS version: Drupal 7
  • MySQL version: 5
  • PHP version: 5
Re: Error with settings php file but its there
March 25, 2012, 07:10:03 am
Hershel, let me give more contextual information.  All files and sub-directories of the three sites that follow have 775 permissions and <myusername> <myusergroup> ownership:
  • I recently installed a Joomla! v2.5.3 site and added the civicrm4.1.1 joomla extension to it w/o difficulty on my web host. I.e. it works fine.
  • I recently installed a Wordpress 3.3.1 site and added the civicrm4.1.1 plugin to it w/o difficulty on the same web host. I.e. it also works fine.
  • On 3/24 I wiped my test d7 site on the same web host, dropped the corresponding d7db and civicrm4db, recreated both of them, clean installed drupal7.12 on the same web host w/o difficulty, "added new module" which was civicrm-4.1.1-drupal w/o difficulty, and did NOT enable any of the installed 8 civi sub-modules.  I then added civicrm-4.1.1-l10n to the all/modules/civicrm/ sub-dir and ran <root>/sites/all/modules/civicrm/install/index.php again w/o difficulty using the separate civicrm4db. All seemed AOK until I went to admin/modules.  There I got the same ol' same ol' blasted "include_once(sites/default/civicrm.settings.php) [function.include-once]: failure to open stream..." warning. 
 
I know that the warning comes from the conf_path() function defined in includes/bootstrap.inc.  I know that conf_path(xxx) is called from civicrm.module in the 1st 1 or 2 lines of civicrm_initialize(xxxx).  Figuring out how to trace the "returned string" from conf_path may take me some time, but I have an idea how I might do that by backing up and modifying the conf_path(xxx) function in the bootstrap.inc file to add a "print the-about-to-be-returned-string-to-a-file" statement in the root-directory and then let the function return normally.  If successful I just might get a better clue whether there is, as was suggested, a "relative path" creation error of some kind in that function and from what parts of the request-response cycle that error might have occurred.  That in turn might give me a clue of what "setting" at install time or somewhere else is missing. 

However given that 2 of the 3 sites I named above are on The Same Web Host and they work fine, I still very much doubt that "the apache web server configuration" (or php 5.x config) is screwing something up!  I don't have root access to either of those configs, and describing to the sys-admin what to look for is currently a big mystery to me.

So once again: What do you think is going on? 

The closest thing I have to a tiny clue is that after a successful clean D7 install and when I 1st went to the "admin" page, there was a "notice: Undefined index: distribution_name in drupal_install_profile_distribution_name() line 202 of [absolute path:] /www/my_domain_name/htdocs/my_drupal7/includes/install.inc" message.  I never saw it after that 1st hit on the admin page.

My edited settings.php and civicrm.settings.php files (as .txt files) are attached.

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Error with settings php file but its there
March 25, 2012, 07:19:13 am
You are installing Drupal in a directory of your site, not the root. This should, in theory, be fine, but I think I recall there being issues with that and CiviCRM. I don't recall the details but you may want to review these

http://forum.civicrm.org/index.php/topic,19655.msg81920.html#msg81920
http://forum.civicrm.org/index.php/topic,17424.msg73385.html#msg73385
http://forum.civicrm.org/index.php/topic,16715.msg72978.html

I, however, do not have a fix for you. I hope someone else will.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

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: Error with settings php file but its there
March 25, 2012, 07:53:27 am

1. so civicrm.settings.php is generated and present in sites/default? Might want to check the permissions and see if the webserver can read it etc

2. Might want to check what the include path is before the failed include_once and see why that fails

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

satchmo

  • I’m new here
  • *
  • Posts: 17
  • Karma: 0
    • Flying Horse Tech
  • CiviCRM version: 41
  • CMS version: Drupal 7.12
  • MySQL version: 5.2
  • PHP version: 5.2
Re: Error with settings php file but its there
April 09, 2012, 07:31:59 am
jenniwoo - If you have civi successfully installed with Joomla and Wordpress why don't you just use one of those instead of Drupal? Rather than saying Joomla and Wordpress work fine on your current server and Drupal doesn't you should try setting up Drupal/Civi on a VPS with another hosting provider to see if you can replicate the problem. As stated previously in this thread CiviCRM should ideally be setup on a VPS or dedicated server...I've experienced all manner of headaches with Civi on shared hosting.
“After one look at this planet any visitor from outer space would say ''I want to see the manager.''” - William S. Burroughs

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Error with settings php file but its there
April 09, 2012, 09:21:44 am
Quote from: satchmo on April 09, 2012, 07:31:59 am
As stated previously in this thread CiviCRM should ideally be setup on a VPS or dedicated server...I've experienced all manner of headaches with Civi on shared hosting.

For the sake of clarity, what I wrote above is that on the About CiviCRM page that the team does say:

Quote
We encourage users to consider Virtual Private Servers (VPS) OR (semi) dedicated hosting OR shared hosting from a host with experience hosting CiviCRM.

Many of not most shared hosts do have problems running CiviCRM, but there are a few that are known to run it just fine.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Pages: 1 [2]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Error with settings php file but its there

This forum was archived on 2017-11-26.