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) »
  • fresh install but empty dashboard: undefined constant DRUPAL_ROOT?
Pages: [1]

Author Topic: fresh install but empty dashboard: undefined constant DRUPAL_ROOT?  (Read 8198 times)

Beat

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
  • CiviCRM version: 4.0.8
  • CMS version: Drupal
  • MySQL version: MYSQL 5
  • PHP version: PHP 5
fresh install but empty dashboard: undefined constant DRUPAL_ROOT?
February 04, 2012, 01:58:25 am
I'm new to CIVICRM ...

I have a local Turnkey LAMP system (Ubuntu) with a fresh Drupal 7.10. Then I installed CIVICRM 4.0.8 without errors. At the frontpage I can see the new link for civicrm dashboard. But when I click this link I only get an empty page (no messages displayed at all).

In the apache log I can see "Use of undefined constant DRUPAL_ROOT".  I don't know which variable is related to DRUPAL_ROOT in sites/default/civicrm.settings.php. For me this configuration file looks correct.

Beat

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
  • CiviCRM version: 4.0.8
  • CMS version: Drupal
  • MySQL version: MYSQL 5
  • PHP version: PHP 5
Re: fresh install but empty dashboard: undefined constant DRUPAL_ROOT?
February 04, 2012, 02:20:20 am
Here also a snipped from my apache logfile:

Sat Feb 04 00:41:47 2012 error client 192.168.1.35 PHP Notice:  Use of undefined constant DRUPAL_ROOT - assumed 'DRUPAL_ROOT' in /var/www/drupal-7/sites/all/modules/civicrm/CRM/Core/Controller.php on line 332
Sat Feb 04 00:41:47 2012 error client 192.168.1.35 PHP Warning:  require_once(DRUPAL_ROOT/includes/errors.inc): failed to open stream: No such file or directory in /var/www/drupal-7/sites/all/modules/civicrm/CRM/Core/Controller.php on line 332
Sat Feb 04 00:41:47 2012 error client 192.168.1.35 PHP Fatal error:  require_once(): Failed opening required 'DRUPAL_ROOT/includes/errors.inc' (include_path='.:/var/www/drupal-7/sites/all/modules/civicrm:/var/www/drupal-7/sites/all/modules/civicrm/packages:.:/usr/share/php:/usr/share/pear') in /var/www/drupal-7/sites/all/modules/civicrm/CRM/Core/Controller.php on line 332

any hints ?


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: fresh install but empty dashboard: undefined constant DRUPAL_ROOT?
February 04, 2012, 07:33:26 am

most likely u r using a PHP Cache (xcache?) or optimizer. can you disable it and see if it works

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

mhonman

  • I’m new here
  • *
  • Posts: 20
  • Karma: 2
Re: fresh install but empty dashboard: undefined constant DRUPAL_ROOT?
February 28, 2012, 03:12:03 am
Just run into this too... yes, disabling xcache does the job... however xcache is really useful to us, so is there any workaround available?

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • fresh install but empty dashboard: undefined constant DRUPAL_ROOT?

This forum was archived on 2017-11-26.