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) »
  • Incorrect Drupal Version
Pages: [1] 2

Author Topic: Incorrect Drupal Version  (Read 12223 times)

kwixson

  • Guest
Incorrect Drupal Version
August 16, 2007, 05:11:06 am
I had CiviCRM 1.7 installed on this site, and then needed to start over. Installing 1.8 with the automated installer I get the error "Oops! Incorrect Drupal Version" but Drupal 5.1 is installed. WTF?

Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Incorrect Drupal Version
August 16, 2007, 05:19:24 am
Hm, the code that checks this is

Code: [Select]
<?php
if ( ( strpos( $drupal_version, 'Drupal 5.1' ) === false ) ) {
    
$errorTitle = "Oops! Incorrect Drupal Version";
    
…
}
?>


So you most probably have Drupal 5.2. Can you check whether changing the 96th line of drupal/install/index.php to

Code: [Select]
if ( ( strpos( $drupal_version, 'Drupal 5' ) === false ) ) {

(i.e., dropping the ‘.1’ from the Drupal version) fixes this problem for you?
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

kwixson

  • Guest
Re: Incorrect Drupal Version
August 16, 2007, 06:19:52 am
I've begun the manual installation procedure (the instructions for which are a nightmare) but I can tell you I checked the Drupal status admin page which reported I had Drupal 5.1 installed, and I am pretty sure Drupal was in version 5.1 when I installed this site. I haven't upgraded it. So, assuming I'm correct, this error is occurring with the proper Drupal version.

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Incorrect Drupal Version
August 16, 2007, 07:35:09 am
I hope you not using PHP 4. CiviCRM installer works only with PHP5.

kurund
Found this reply helpful? Support CiviCRM

Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Incorrect Drupal Version
August 16, 2007, 12:43:09 pm
By looking at the code, it seems that trying to run the installer on PHP 4 would throw a different error message.

Kurund, do you know whether we actually checked the installer on Drupal 5.2? I’m pretty sure we should scan for the ‘Drupal 5’ string, not ‘Drupal 5.1’.
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

kwixson

  • Guest
Re: Incorrect Drupal Version
August 16, 2007, 09:59:47 pm
Confirmed, using PHP 5, not PHP 4.

Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Incorrect Drupal Version
August 17, 2007, 01:09:18 am
Can you do a quick check and see what’s the value of the $drupal_version variable in your installer right prior to the check? All you have to do is edit the drupal/install/index.php file at the 96th line, so before the if it prints the variable out:

Code: [Select]
print $drupal_version;
if ( ( strpos( $drupal_version, 'Drupal 5.1' ) === false ) ) {
…
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Incorrect Drupal Version
August 17, 2007, 01:16:28 am
Ok, scratch that, I can see now that we just slurp the whole Drupal CHANGELOG.txt file into that variable (hence the check against the ‘Drupal 5.1’ string should work with Drupal 5.2).

My take is that we might get the path to the Drupal’s CHANGELOG.txt file wrong in your case. Did you put the CiviCRM files in sites/all/modules in your Drupal directory, or somewhere else?
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

kwixson

  • Guest
Re: Incorrect Drupal Version
August 19, 2007, 03:30:37 pm
Yes, I put the files in sites/all/modules

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: Incorrect Drupal Version
August 19, 2007, 03:41:20 pm

You will have to help us debug this.

1. Do you have the CHANGELOG.txt file in your drupal root directory. If so:

2. Can u please edit: drupal/install/index.php and add debugging code (the echo and exit statement below)

Code: [Select]
$drupalVersionFile = $cmsPath . DIRECTORY_SEPARATOR . 'CHANGELOG.txt';
if ( file_exists( $drupalVersionFile ) ) {
    $drupal_version = file_get_contents( $drupalVersionFile );
} else {
    $drupal_version = 'unknown';
}

echo "$drupalVersionFile<p>";
echo "$drupal_version<p>";
exit( );

and cut-n-paste the output from your browser here

thanx

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

Dave Smith

  • I post occasionally
  • **
  • Posts: 80
  • Karma: 1
  • CiviCRM version: 4.5.5
  • CMS version: Drupal 7.34
Re: Incorrect Drupal Version
September 03, 2007, 06:59:35 am
I have the same problem that was reported here. Has there been any progress on this?

Dave Smith
"The philosophers have only interpreted the world, in various ways; the point is to change it." ... Marx

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: Incorrect Drupal Version
September 03, 2007, 11:43:27 am

Can you please answer the questions we asked in the post prior to your post. That will help us debug and fix the issue

thanx

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

Dave Smith

  • I post occasionally
  • **
  • Posts: 80
  • Karma: 1
  • CiviCRM version: 4.5.5
  • CMS version: Drupal 7.34
Re: Incorrect Drupal Version
September 03, 2007, 06:18:38 pm
Working on it ...
"The philosophers have only interpreted the world, in various ways; the point is to change it." ... Marx

Dave Smith

  • I post occasionally
  • **
  • Posts: 80
  • Karma: 1
  • CiviCRM version: 4.5.5
  • CMS version: Drupal 7.34
Re: Incorrect Drupal Version
September 04, 2007, 02:06:48 am
The answer to your question is:

Oops! Incorrect Drupal Version
This installer can only be used with Drupal 5.x. Refer to the online Installation Guide for information about installing CiviCRM on other Drupal versions OR installing CiviCRM for Joomla!


Which is the same error message that I was getting before.
"The philosophers have only interpreted the world, in various ways; the point is to change it." ... Marx

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: Incorrect Drupal Version
September 04, 2007, 02:09:58 am

Not sure what question u r answering, BUT i wanted an answer to the questions in this forum post:

http://forum.civicrm.org/index.php/topic,916.msg3940.html#msg3940

thanx

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

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

This forum was archived on 2017-11-26.