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) »
  • Installation Path Error
Pages: [1]

Author Topic: Installation Path Error  (Read 4292 times)

quiethero

  • I’m new here
  • *
  • Posts: 9
  • Karma: 0
  • CiviCRM version: 4.34
  • CMS version: Drupal 7.22
  • MySQL version: phpadmin
  • PHP version: 5.3+
Installation Path Error
June 25, 2013, 03:15:12 pm
Upon install I get the following message:

Warning: require_once(CRM/Utils/System.php) [function.require-once]: failed to open stream: No such file or directory in /home/mysite/public_html/sites/all/modules/civicrm/CRM/Core/ClassLoader.php on line 126

Fatal error: require_once() [function.require]: Failed opening required 'CRM/Utils/System.php' (include_path='.:/usr/lib/php:/usr/local/lib/php:/home/mysite/php') in /home/mysite/public_html/sites/all/modules/civicrm/CRM/Core/ClassLoader.php on line 126

I have found the problem and wanted to seek assistance. The reasons for the path issue is that CiviCRM assumes that all installs use the same path:

 /confluence/display/CRMDOC43/Drupal+Installation+Guide+for+CiviCRM+4.3+-+Drupal+7

(The rest of these instructions assume that you have Drupal installed in /var/www/drupal. Adjust paths as needed.)

Question:   How do I get CiviCRM to simply recognize my existing path during installation instead of the default path built into the CiviCRM installation???

« Last Edit: June 25, 2013, 03:23:48 pm by quiethero »

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Installation Path Error
June 25, 2013, 03:35:12 pm
Quote from: quiethero on June 25, 2013, 03:15:12 pm
I have found the problem and wanted to seek assistance. The reasons for the path issue is that CiviCRM assumes that all installs use the same path:

 /confluence/display/CRMDOC43/Drupal+Installation+Guide+for+CiviCRM+4.3+-+Drupal+7

(The rest of these instructions assume that you have Drupal installed in /var/www/drupal. Adjust paths as needed.)

The page says that, but it's a mistake and I removed that note. There is no such assumption neither in CiviCRM itself nor on that page in reality.

Quote from: quiethero on June 25, 2013, 03:15:12 pm
Question:   How do I get CiviCRM to simply recognize my existing path during installation instead of the default path built into the CiviCRM installation???

It does this automatically. Is your CiviCRM in sites/all/modules?
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.

quiethero

  • I’m new here
  • *
  • Posts: 9
  • Karma: 0
  • CiviCRM version: 4.34
  • CMS version: Drupal 7.22
  • MySQL version: phpadmin
  • PHP version: 5.3+
Re: Installation Path Error
June 25, 2013, 03:42:17 pm
Yes, my civicrm is in /sites/all/modules

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Installation Path Error
June 25, 2013, 03:50:10 pm
And you have:

sites/all/modules/civicrm/CRM/Utils/System.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.

quiethero

  • I’m new here
  • *
  • Posts: 9
  • Karma: 0
  • CiviCRM version: 4.34
  • CMS version: Drupal 7.22
  • MySQL version: phpadmin
  • PHP version: 5.3+
Re: Installation Path Error
June 25, 2013, 04:00:50 pm
Exactly:

public_html/sites/all/modules/civicrm/CRM/Utils/System.php


Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Installation Path Error
June 25, 2013, 04:18:45 pm
and civicrm.settings.php is in sites/default ?
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.

quiethero

  • I’m new here
  • *
  • Posts: 9
  • Karma: 0
  • CiviCRM version: 4.34
  • CMS version: Drupal 7.22
  • MySQL version: phpadmin
  • PHP version: 5.3+
Re: Installation Path Error
June 25, 2013, 04:27:24 pm
It was never automatically created during installation.  Right before this step I get the errors. 
« Last Edit: June 25, 2013, 04:29:01 pm by quiethero »

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Installation Path Error
June 25, 2013, 04:28:49 pm
You must make sites/default writeable and run the installer again. Without that file, CiviCRM can not work.
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.

quiethero

  • I’m new here
  • *
  • Posts: 9
  • Karma: 0
  • CiviCRM version: 4.34
  • CMS version: Drupal 7.22
  • MySQL version: phpadmin
  • PHP version: 5.3+
Re: Installation Path Error
June 25, 2013, 05:42:34 pm
Should I erase civicrm and re-install?  Because Default is 0777.  and I get the following:

Warning: require_once(CRM/Utils/System.php) [function.require-once]: failed to open stream: No such file or directory in /home/mysite/public_html/sites/all/modules/civicrm/CRM/Core/ClassLoader.php on line 126

Fatal error: require_once() [function.require]: Failed opening required 'CRM/Utils/System.php' (include_path='.:/usr/lib/php:/usr/local/lib/php:/home/mysite/php') in /home/mysite/public_html/sites/all/modules/civicrm/CRM/Core/ClassLoader.php on line 126

(I am looking at the file in that same directory right now.. It's there)

Also, on the Modules page above the Install Button I get the following:

Notice: Undefined index: description in drupal_check_module() (line 1219 of /home/mysite/public_html/includes/install.inc)

function drupal_check_module($module) {
  module_load_install($module);
  if (module_hook($module, 'requirements')) {
    // Check requirements
    $requirements = module_invoke($module, 'requirements', 'install');
    if (is_array($requirements) && drupal_requirements_severity($requirements) == REQUIREMENT_ERROR) {
      // Print any error messages
      foreach ($requirements as $requirement) {
        if (isset($requirement['severity']) && $requirement['severity'] == REQUIREMENT_ERROR) {
          $message = $requirement['description'];
          if (isset($requirement['value']) && $requirement['value']) {
            $message .= ' (' . t('Currently using !item !version', array('!item' => $requirement['title'], '!version' => $requirement['value'])) . ')';
          }
          drupal_set_message($message, 'error');
        }
      }
      return FALSE;
    }
  }
  return TRUE;
}



By the way, I have no pending updates or errors on my Drupal Installation.
« Last Edit: June 25, 2013, 06:13:02 pm by quiethero »

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Installation Path Error
June 26, 2013, 03:41:53 am
Quote from: quiethero on June 25, 2013, 05:42:34 pm
Should I erase civicrm and re-install? 

Yes. I'm not sure what happened, but without civicrm.settings.php, CiviCRM can not work. At all.

But you don't have to delete anything--just run the installer I think: sites/all/modules/civicrm/install/index.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.

quiethero

  • I’m new here
  • *
  • Posts: 9
  • Karma: 0
  • CiviCRM version: 4.34
  • CMS version: Drupal 7.22
  • MySQL version: phpadmin
  • PHP version: 5.3+
Re: Installation Path Error
June 26, 2013, 03:58:36 am
I have repeatedly run the installer and with no success:   mysite/sites/all/modules/civicrm/install/index.php

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Installation Path Error
June 26, 2013, 05:06:28 am
Can you provide more details? It's all green and it runs? What message does it give? Any errors?
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.

quiethero

  • I’m new here
  • *
  • Posts: 9
  • Karma: 0
  • CiviCRM version: 4.34
  • CMS version: Drupal 7.22
  • MySQL version: phpadmin
  • PHP version: 5.3+
Re: Installation Path Error
June 26, 2013, 05:22:50 am
Notice: Undefined index: description in drupal_check_module() (line 1219 of /home/mysite/public_html/includes/install.inc)

It seems that the Message Module is the culprit but how I have no idea.

function drupal_check_module($module) {
  module_load_install($module);
  if (module_hook($module, 'requirements')) {
    // Check requirements
    $requirements = module_invoke($module, 'requirements', 'install');
    if (is_array($requirements) && drupal_requirements_severity($requirements) == REQUIREMENT_ERROR) {
      // Print any error messages
      foreach ($requirements as $requirement) {
        if (isset($requirement['severity']) && $requirement['severity'] == REQUIREMENT_ERROR) {
          $message = $requirement['description'];         ( ??? THIS IS LINE 1219)
          if (isset($requirement['value']) && $requirement['value']) {
            $message .= ' (' . t('Currently using !item !version', array('!item' => $requirement['title'], '!version' => $requirement['value'])) . ')';
          }
          drupal_set_message($message, 'error');
        }
      }
      return FALSE;
    }
  }
  return TRUE;
}

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Installation Path Error
June 26, 2013, 06:22:15 am
Google for Undefined index: description in drupal_check_module and you will find other reports. Perhaps some are relevant.
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]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Installation Path Error

This forum was archived on 2017-11-26.