By dleeward on
I'm trying to install CiviCRM 1.6 and accidentally activated the module before completely setting up the database and config files.
Now I get the following message when I try to access my Drupal site:
Fatal error: civicrm_initialize() [function.require]: Failed opening required 'CRM/Core/Config.php' (include_path='.:usr/home/leeward/www/htdocs/drupal-5.0-rc1/modules/civicrm:usr/home/leeward/www/htdocs/drupal-5.0-rc1/modules/civicrm/packages:.:/usr/local/lib/php') in /usr/home/leeward/www/htdocs/drupal-5.0-rc1/modules/civicrm/drupal/civicrm.module on line 227
Is there any way to edit a file to disable CiviCRM?
Or does anyone know how to fix this error?
Comments
you just off the module from
you just off the module from backend database table of modules, if you have phpmyadmin just login and change value 1 to 0 for deactivating module
System table
Thanks. That's the "System" table by the way.
Can anyone still help with the error message?
Being a bit bored I
Being a bit bored, I begain a civiCRM 1.6 installation on a Drupal 4.7.5 installation and am being handed the same error you are. Going to keep poking around.
question for you though?
Is your drupal installation in the public root or in a subdirectory ?
got a bit further. I was able to get to enable the civiCRM module but then I am handed there mkdir errors.
can't quite figure out where these folders should be created in the folder structure.
...
You guys might want to look on CivicCrm's site for this stuff.
http://wiki.civicrm.org/confluence/display/CRM/Install+CiviCRM+1.6+for+D...
-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain
-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide
Thanks Steven. The first
Thanks Steven.
The first doucment you link to is what I used to follow the install procedure. I am sifting through the trouble shooting area now.
I had also used those steps
I had also used those steps as well, although as I mentioned before, I accessed the site before I finished setting up the tables. Would a reinstall cure this?
In a subdirectory
It's installed in a subdirectory since my current website is using the public root.
you can of course
you can of course try.
Though I made it further than you did , I still wound up with errors. I havent had the time to reinstall my sandbox and try again.
I too am trying to do this in a subdirectory (subdomain) I will try to perform this directly in a public root and see where I get. Though not today.
Same problem. Resolution?
I'm getting the same errors:
(Note: /domain replaced my actual domain.)
I have followed the instructions as best I can, and have created the directories ("crm_docs", "upload", and "templates_c") in the correct location ("/files/civicrm/...") and given them full write access ("777").
Still getting those warnings.
Running Drupal 5.1 and CiviCRM 1.6
Any ideas on this?
Be sure the config file is in your sites directory
I corrected this error by moving the civicrm.settings.php to my sites/default folder.
That stopped the error - but now, when I click on the Civicrm link on my Drupal instal, the page goes blank. I am running Drupal 5.0 and Civicrm 1.6
Bobby Dean
Already had done this
I already had this file there and am still getting the error.
I did change the code in one of the modules to use the full path and that cured that specific instance, but there seem to be many places the wrong path is used.
In civicrm.settings.php
In civicrm.settings.php (should be located at /sites/default/civicrm.settings.php), find this line:
define('CIVICRM_DOMAIN_ID' , 1 );and change it to this:
define('CIVICRM_DOMAIN_ID' , 0 );... That worked for me so far on a Drupal version 5.0 with CiviCRM 1.6 (installed in a subdirectory on my site, and NOT using multiple sites on the same codebase) ...
I'm curious to know whether that works for others - please post your results here...
---
"Please drupal responsibly: give as much help as you get."
Thanks colorado.... will
Thanks colorado.... will definetly give it a try tomorrow if not later tonight and report back.
Not the solution...
It looks like the fix I posted above only seems to fix the problem, but is probably not the real solution. Please read on...
Here's a link to a thread on the CiviCRM developer's mailing list archive where I posted about this, and there is a good discussion going on with the CiviCRM developers to try and resolve this issue:
http://www.nabble.com/Drupal-5.0-and-CiviCRM-1.6-tf3061459s15986.html#a8...
---
"Please drupal responsibly: give as much help as you get."
Thanks for the update, will
Thanks for the update, will follow along in that thread as well.
Worked for me too
Thanks worked for me using:
drupal 5.1
civicrm 1.7
---------------------------------------------------------------
http://xamox.NET
Is it a PHP bug
I had the same issue with directories being created with incorrect permissions.
Heres what my isp said:
Any help to anyone?
Joe
I am having this same problem
I am using drupal 5.1 and civicrm 1.6.
I am getting the following message:
Fatal error: civicrm_initialize() [function.require]: Failed opening required 'CRM/Core/Config.php' (include_path='.:http://www.mcdemocrats.com/modules/civicrm/:http://www.mcdemocrats.com/modules/civicrm//packages:.:/usr/lib/php:/usr/local/lib/php') in /home/pyrelloc/public_html/sites/mcdemocrats.com/modules/civicrm/drupal/civicrm.module on line 227I can not figure out what I am doing wrong.
here is the civicrm.setting.php file contents:
Please help. I can't figure it out.
Your passwords are in that file
Pyrello, if you didn't change them in the file you posted, make sure you change your passwords on the server.
I'm having the same problem, haven't resolved it yet.
Resoloved?
I notice that this thread has paused over about the last month. However, my last several attempts at installation have netted a similar error:
Fatal error: civicrm_initialize() [function.require]: Failed opening required 'CRM/Core/Config.php' (include_path='.::/packages:.:/usr/lib/php:/usr/local/lib/php') in /home/lue42/public_html/dt4t/modules/civicrm/drupal/civicrm.module on line 226I also checked the Nabble thread. Is this issue resolved (for some at least), in progress, or just dead-and-given-up?
Brian
Two Things
Hey,
I finally got this to the point where I could access my website. The problem I was having was that I had my paths set to '/var/www/etc..." and when I was editing the file in filemanger through cpanel, I discovered that the path was actually '/home/public_html/etc..."
Also, I moved my civicrm install from my contrib modules folder to the core modules folder.
Hope that helps.
Resolution? One of two ...
Well, I tried again, following the instructions (http://wiki.civicrm.org/confluence/pages/viewpage.action?pageId=9452) to the absolute letter using a fine-toothed-comb. Or something like that. I made two changes and now I've made it past this error (onto a new error).
Less likely the problem, I used the root of my domain instead of a subdirectory. You never know, though, so I'm mentioning it.
More likely, I discovered my table import was incomplete. My host does not give shell access, rather providing cpanel for everything. Since Windows doesn't handle gzipped files well, I was unzipping remotely and then copying to my local machine for phpmyadmin import (which uses an upload dialog). I was getting about 30-40 tables, which it now seems is terribly low. This time, I used a Mac to extract the gzip locally for importing, and now I've more than 80 tables. I didn't realize this was a problem earlier.
Now, I'm getting a permission denied error, but at least it doesn't bring the whole site down any more.
Brian
In follow-up to my follow-up
I was receiving an error about "Permission Denied" in file.php on line 114, something like this:
[function.mkdir]: Permission denied in /blahblahblah/modules/civicrm/CRM/Utils/File.php on line 114.This is actually a simple fix, once your know what you're looking for. If you misset the "template" directory in the civicrm.settings.phpfile initially, your CiviCRM "Upload Directories" will be incorrect. When you correct civicrm.settings.php, Civicrm will not fix its Upload Directory settings. You should be able to go into Administer CiviCRM -> Global Seetings -> Upload Directories and correct these settings.
After actually making this thing work, and doing a little jig, I thought I'd post about it. Not the jig, I mean, the solution. Nevermind.
Brian
civicrm_domain not updating
I'm moving my CiviCRM installation to a new host. The paths are different.
I went to Administer CiviCRM -> Global Settings -> Upload Directories and changed to the new paths. The information was definitely saved because when I reload the Upload Directories page, I see my new paths. But I was still getting the "Permission Denied" in file.php on line 114. So I searched through the database and found occurances of my original path in the civicrm_domain table, config_backend field. Maybe these upload directory paths used to be stored in there. For good measure I updated them. It didn't help.
I can't find any occurances of my original paths anywhere. But I'm still seeing them show up on these permission denied errors. Not sure where to look now.
In
Pyrello,
In "civicrm.settings.php"
Please change:
define('CIVICRM_DOMAIN_ID' , 0 );to
define('CIVICRM_DOMAIN_ID' , 1 );I dont think, the Suggestion Posted by "Colorado" is correct
Internal paths
One problem I noticed is that in your
the paths should be absolute internal paths. You're not looking for "http://...", you need to find out where your site is on the server that it's hosted on and use that path. This is often "/home/user/sitename.com/..." so in your case it might be something like "/home/pyrello/mcdemocrats.com/etc..." Make sure you include the leading and trailing slashes as well.
Here's something that worked for me
I moved all files in modules/civicrm/drupal to modules/civicrm and it worked.
I'm having similar issues,
I'm having similar issues, and the civicrm module is not appearing in my system database, but still tries to be called.
HELP!
Thanks,
Larry
Finally! I have tryed
Finally! I have tryed everything from this post to make it work, but to no avail... until...
2 most important things:
1. create civicrm in your files dir and 3 subfolders, give them all 777.
2. There are 2 lines in sites/default/civicrm.settings.php, which have to be correct, representing your root path:
$civicrm_root = '/home/myserver/public_html/site.com/modules/civicrm/';
define( 'CIVICRM_TEMPLATE_COMPILEDIR', '/home/myserver/public_html/site.com/files/civicrm/templates_c/' );
I don't know about you, but my mistake was not entering the second value.
Hope this helps.
My (seemingly) working solution
So I have just had an identical problem with permissions as described and I think I solved (after several hours).....
To solve all I did was to go into civicrm/admin then click on global settings. I then changed all the paths in here from relative to absolute (e.g. /var/www/mysite/files/upload/ rather than /upload/).
Once I did that it all seems to be working. My version of civicrm is an upgrade (from v1.3) and it seems that the paths in the civicrm_domain table were all relative. I reckon this is probably an oversight in the upgrade process.
Hence the obvious error, it was trying to make an uploads folder at / in my file system!!
(Note: Setting define('CIVICRM_DOMAIN_ID' , 1 ); moved the error but all my contact no longer worked, so not useful for me.)
CiviCRM and Drupal Installation
I was wondering if somebody out there would help me out immensely and install both the CiviCRM and Drupal for me, or at least the CiviCRM. I am running into ALOT of trouble with the CiviCRM software. If you could provide any assistance I will provide you with the required information. Please contact me at; m.dellosso[@]sympatico.ca
Mario Dell'Osso