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) »
  • Install successful but no CiviCRM access
Pages: 1 [2] 3

Author Topic: Install successful but no CiviCRM access  (Read 6972 times)

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Install successful but no CiviCRM access
September 18, 2011, 07:15:52 am
I'm not sure. Can you ask your host or ISP to look at this?
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.

clayhaus

  • I’m new here
  • *
  • Posts: 20
  • Karma: 0
  • CiviCRM version: 4.0
  • CMS version: Drupal 7.7
  • MySQL version: 5.1
  • PHP version: 5.5
Re: Install successful but no CiviCRM access
September 19, 2011, 02:49:41 pm
At this point I'm not sure what to ask them as it appears that the issue that CiviCRM doesn't know where to access its files. is there anywhere else that I can change path settings?

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Install successful but no CiviCRM access
September 20, 2011, 02:21:54 am
You can manually review the settings for paths and URL in sites/default/civicrm.settings.php and see if they are all correct.
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.

mattjacobson

  • Guest
Re: Install successful but no CiviCRM access
September 20, 2011, 07:37:30 am
I just attempted an install of CiviCRM (newbie to the package, but less so to drupal), and I ran into the same exact problem.  I think it has to do with path issues, as I too am installing to a subdirectory (the primary website is running on wordpress).  I can rule out server hardware issues quite quite some certainty; I have nearly full access to the server, and resource usage is minimal.

I installed it to a subdirectory named 'team', but no links to the CRM itself seem to work (but all module control functions work and it said that it installed properly).

I skimmed over the civicrm.settings.php file, and from my first look, the variables seem right...  that is to say that:
---
global $civicrm_root;
$civicrm_root = '/var/www/vhosts/*subdomain.mydomain*/httpdocs/team/sites/all/modules/civicrm';
define( 'CIVICRM_TEMPLATE_COMPILEDIR', '/var/www/vhosts/*subdomain.mydomain*/httpdocs/team/sites/default/files/civicrm/templates_c/' );
define( 'CIVICRM_UF_BASEURL'      , 'http://*subdomain.mydomain*/team/' );
---

(I obviously edited out the site name for the time being...  Also, it won't let me wrap the code in "code" tags on this forum....  odd.)

Not sure if it matters much, but when I SCP into the server, my credentials do not show the "/war/www/vhosts/*subdomain.mydomain*/ path", but instead just show root, with a directory for 'httpdocs'....  Thoughts?

Any help would be much appreciated!
« Last Edit: September 20, 2011, 07:44:52 am by mattjacobson »

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Install successful but no CiviCRM access
September 20, 2011, 07:40:24 am
You mean your Drupal site is located at myurl.org/team or some such?

Perhaps post your civicrm.settings.php file. I install CiviCRM on URLs like that all the time and I never had a problem.
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.

mattjacobson

  • Guest
Re: Install successful but no CiviCRM access
September 20, 2011, 07:46:24 am
Thanks for the quick reply...  Yes, in my case, it is installed just as you said. 

I'll try to copy my settings file, but in the meantime, I updated my previous post with a few lines of the code, and a random thought about the server directories.

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Install successful but no CiviCRM access
September 20, 2011, 07:55:00 am
Quote from: mattjacobson on September 20, 2011, 07:37:30 am
Not sure if it matters much, but when I SCP into the server, my credentials do not show the "/war/www/vhosts/*subdomain.mydomain*/ path", but instead just show root, with a directory for 'httpdocs'....  Thoughts?

Umm, yes, that matters a lot. The path listed there must exist. If you know the correct path, then adjust it in civicrm.settings.php
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.

mattjacobson

  • Guest
Re: Install successful but no CiviCRM access
September 20, 2011, 08:21:54 am
Sorry for the confusion, let me try to clear it up.

The ending portion of the path matched (from 'httpdocs' onward; the prefixed "var..." part was not showing on my SCP login, but that just might be my permissions), and removing the prefix to list just "/httpdocs/team/sites/all/modules/civicrm/" throws an error on the webpage (previously there was none).

The problem still persists

clayhaus

  • I’m new here
  • *
  • Posts: 20
  • Karma: 0
  • CiviCRM version: 4.0
  • CMS version: Drupal 7.7
  • MySQL version: 5.1
  • PHP version: 5.5
Re: Install successful but no CiviCRM access
September 20, 2011, 12:00:19 pm
I've reinstalled from scratch once again and the exact same error message is thrown. I am also curious as to why when CiviCRM installs it creates in the /sites/default/files directory a directory 'civicrm' with the owner set to the server. Is this normal? And, anyone have any further thoughts on this apparent path problem?

clayhaus

  • I’m new here
  • *
  • Posts: 20
  • Karma: 0
  • CiviCRM version: 4.0
  • CMS version: Drupal 7.7
  • MySQL version: 5.1
  • PHP version: 5.5
Re: Install successful but no CiviCRM access
September 20, 2011, 01:48:45 pm
Further to this, I'd like to move the entire file hierarchy up from my current level to the root level to see if this fixes the apparent path problem. I know I will need to change the settings.php file, but will I need to mess with anything else? Database?

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Install successful but no CiviCRM access
September 20, 2011, 01:56:13 pm
Very good debugging idea. Change civicrm.settings.php directories and URL and then just run this in your CiviCRM DB:

Code: [Select]
UPDATE `civicrm_domain` SET `config_backend`=NULL ;
And that should be it. If it works, but the menus are off, then run :

Code: [Select]
mysite.com/civicrm/menu/rebuild?reset=1
also.
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.

clayhaus

  • I’m new here
  • *
  • Posts: 20
  • Karma: 0
  • CiviCRM version: 4.0
  • CMS version: Drupal 7.7
  • MySQL version: 5.1
  • PHP version: 5.5
Re: Install successful but no CiviCRM access
September 20, 2011, 03:12:33 pm
I'm now getting a fatal error when trying to access Drupal:

Fatal error: require_once() [function.require]: Failed opening required '/public_html/drupal/includes/database/query.inc' (include_path='.:/usr/share/php:/usr/share/pear') in /public_html/drupal/includes/database/select.inc on line 8

Somewhere is still  referencing the original drupal install sub-directory. I have emptied the db cache table and changed the base url in settings.php. I thought that was all I needed to do to move the files. Am I missing something?

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Install successful but no CiviCRM access
September 21, 2011, 03:07:16 am
In what directory is Drupal installed?
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.

clayhaus

  • I’m new here
  • *
  • Posts: 20
  • Karma: 0
  • CiviCRM version: 4.0
  • CMS version: Drupal 7.7
  • MySQL version: 5.1
  • PHP version: 5.5
Re: Install successful but no CiviCRM access
September 21, 2011, 06:44:01 am
It originally was installed in 'drupal' but have moved up one level to 'public_html'. In 'drupal' drupal itself works fine but CiviCRM does not. Now it 'public_html' nothing works.

clayhaus

  • I’m new here
  • *
  • Posts: 20
  • Karma: 0
  • CiviCRM version: 4.0
  • CMS version: Drupal 7.7
  • MySQL version: 5.1
  • PHP version: 5.5
Re: Install successful but no CiviCRM access
September 21, 2011, 02:49:36 pm
Okay, here is where I am with this (and I'm really hoping there are some experts out there that have some suggestion or better yet, solution in hand):

#1) Successfully installed Drupal at Root
#2) Updated Drupal to 7.8
#3) Dropped the CiviCRM DB
#4) Re-installed CiviCRM
#5) Errors upon installation (see #1 below)
#6) Trying to access configuration page no longer yields still yields an error (see #2 below)
#7) CiviCRM still is accessible from the Modules page
#8) Trying to add users generates error #2 below

So, after another 24+ hours I am exactly where I have been for about 5 days: CiviCRM does not work with Drupal 7.x. Can anyone make sense of the below? Is this a path problem? If so, how to rectify? This has been my most frustrating experience with Drupal. I really had no show-stopping issues with version 6. Should I just deploy that version?

#1 Error:
•   Warning: ini_set() [function.ini-set]: A session is active. You cannot change the session module's ini settings at this time in drupal_environment_initialize() (line 688 of/<mysite>/public_html/includes/bootstrap.inc).
•   Warning: Cannot modify header information - headers already sent by (output started at /<mysite>/public_html/sites/all/modules/civicrm/install/index.php:776) indrupal_send_headers() (line 1211 of /<mysite>/public_html/includes/bootstrap.inc).
•   Warning: Cannot modify header information - headers already sent by (output started at /<mysite>/public_html/sites/all/modules/civicrm/install/index.php:776) indrupal_send_headers() (line 1211 of /<mysite>/public_html/includes/bootstrap.inc).
•   Warning: Cannot modify header information - headers already sent by (output started at /<mysite>/public_html/sites/all/modules/civicrm/install/index.php:776) indrupal_send_headers() (line 1211 of /<mysite>/public_html/includes/bootstrap.inc).
•   Warning: Cannot modify header information - headers already sent by (output started at /<mysite>/public_html/sites/all/modules/civicrm/install/index.php:776) indrupal_send_headers() (line 1211 of /<mysite>/public_html/includes/bootstrap.inc).
•   PDOException: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'module' cannot be null: UPDATE {role_permission} SET module=:db_update_placeholder_0 WHERE ( (rid = :db_condition_placeholder_0) AND (permission = :db_condition_placeholder_1) ); Array ( [:db_update_placeholder_0] => [:db_condition_placeholder_0] => 2 [:db_condition_placeholder_1] => access CiviMail subscribe/unsubscribe pages ) in user_role_grant_permissions() (line 3028 of/<mysite>/public_html/modules/user/user.module).



#2 Error:
Notice: Use of undefined constant DRUPAL_ROOT - assumed 'DRUPAL_ROOT' in /<mysite>/public_html/sites/all/modules/civicrm/CRM/Core/Controller.phpon line 332

Warning: require_once(DRUPAL_ROOT/includes/errors.inc) [function.require-once]: failed to open stream: No such file or directory in/<mysite>/public_html/sites/all/modules/civicrm/CRM/Core/Controller.php on line 332

Fatal error: require_once() [function.require]: Failed opening required 'DRUPAL_ROOT/includes/errors.inc' (include_path='.:/<mysite>/public_html/sites/all/modules/civicrm:/<mysite>/public_html/sites/all/modules/civicrm/packages:.:/usr/share/php:/usr/share/pear') in /<mysite>/public_html/sites/all/modules/civicrm/CRM/Core/Controller.php on line 332

Pages: 1 [2] 3
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Install successful but no CiviCRM access

This forum was archived on 2017-11-26.