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 in subdirectory: Oops! Incorrect Drupal Version (Bug)
Pages: [1]

Author Topic: Install in subdirectory: Oops! Incorrect Drupal Version (Bug)  (Read 1690 times)

Simon147

  • I post occasionally
  • **
  • Posts: 96
  • Karma: 3
  • CiviCRM version: 4.4.6
  • CMS version: Drupal 7.30
  • MySQL version: 5.0.92
  • PHP version: 5.2.9
Install in subdirectory: Oops! Incorrect Drupal Version (Bug)
November 24, 2010, 01:38:14 pm
Hello all,

On a new install (Drupal as well as CiviCRM): When try to run the install/index.php to install everything, I get the following message:

Oops! Incorrect Drupal Version
This version of CiviCRM can only be used with Drupal 6.x. Please ensure that '/home/asbest/public_html/modules/system/system.module' exists if you are running Drupal 6.0 and over. Refer to the online http://wiki.civicrm.org/confluence/display/CRMDOC/Installation+and+Upgrades for information about installing CiviCRM.


The point is, my install is on a addon domain, thus at '/home/asbest/public_html/asca/...' (additional directory "asca").

The work-around for the install: In the  install/index.php file, I added at line 169 the missing directory:
    $drupalVersionFile = implode(CIVICRM_DIRECTORY_SEPARATOR, array($cmsPath, 'asca', 'modules', 'system', 'system.module'));

However, there are other cross references between Drupal and CiviCRM seam to pose problem.

Is there any general advice on how to deal with such a situation? 


Simon
« Last Edit: November 24, 2010, 02:02:50 pm by Simon147 »

Kiran Jagtap

  • Ask me questions
  • ****
  • Posts: 533
  • Karma: 51
Re: Install in subdirectory: Oops! Incorrect Drupal Version (Bug)
November 24, 2010, 11:37:06 pm
could u debug and see what comes in $cmsPath

print_r( $cmsPath );
exit( );

Ideally it should return your drupal installation director path from /home onward.

let us know your findings.

thanks

kiran
You Are Designed To Choose... Defined By Choice.

Masked Marauder

  • I post occasionally
  • **
  • Posts: 30
  • Karma: 1
  • \__^..^
  • CiviCRM version: 4.5.5
  • CMS version: drupal-6.34
  • MySQL version: 5.5.40-36
  • PHP version: 5.4.34
Re: Install in subdirectory: Oops! Incorrect Drupal Version (Bug)
December 18, 2010, 01:23:09 pm
I think I'm having a similar problem.

installing a civicrm 3.3.1 onto a drupal 6.20 site.

the site is on a hostmonster server and is not the primary server for the main host.  It has a wholly independent IP and database. 

I have a similar arrangement with another website on the same server where I had installed civicrm 2.2.4 with no problem and upgraded to 3.3.1 with no problem.

when I try to install the new civicrm everything tests OK except the file write permission test: it is testing the default directory on the parent site instead of default directory of the actual host.  a snap of the error message is here: http://tinyurl.com/24wqbdf

note that it gets the files location right:  /home1/cdanewpo/public_html/roe/sites/all/modules/civicrm/install/
but gets the sites/default folder wrong:  /home1/cdanewpo/public_html/sites/default

the intercalated 'roe' directory is missing.

might it not be more robust to construct the presumed default directory by "nibbling" back on the original valid path until 'sites' is found?


Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Install in subdirectory: Oops! Incorrect Drupal Version (Bug)

This forum was archived on 2017-11-26.