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) »
  • Drupal + wamp + Oops!
Pages: [1]

Author Topic: Drupal + wamp + Oops!  (Read 1327 times)

lameei

  • I’m new here
  • *
  • Posts: 7
  • Karma: 0
Drupal + wamp + Oops!
November 18, 2010, 05:00:17 am
After a few hours of hard work which includes reading all the search results for this error i got it no working. by commenting out the lines of code mentioned here i can bypass the error but after installation i faced new problems with the Civicrm. when i click a link related to this very module it directs me to the new error:
Quote
Oops! CiviCRM is Already Installed
CiviCRM has already been installed in this Drupal site.

    * To start over, you must delete or rename the existing CiviCRM settings file - civicrm.settings.php - from [your Drupal root directory]/sites/default.
    * To upgrade an existing installation, refer to the online http://wiki.civicrm.org/confluence/display/CRMDOC/Installation+and+Upgrades.

There is no need to say that i'm running my Drupal website on windows using LAMP.

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Drupal + wamp + Oops!
November 18, 2010, 05:05:18 am
What code did you comment out?

What URL are you looking at when you see the error you quoted above?
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.

Michael McAndrew

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1274
  • Karma: 55
    • Third Sector Design
  • CiviCRM version: various
  • CMS version: Nearly always Drupal
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Drupal + wamp + Oops!
November 18, 2010, 06:07:03 am
Quote
by commenting out the lines of code mentioned here i can bypass the error but

i would advise against commenting out any lines of code if you are trying to install CiviCRM.  Instead you should try and address what is causing the error.

Have you tried 'starting again'.  If you get the error again, paste the error here and we can try and work out what the problem is.
Service providers: Grow your business, build your reputation and support CiviCRM. Become a partner today

lameei

  • I’m new here
  • *
  • Posts: 7
  • Karma: 0
Re: Drupal + wamp + Oops!
November 18, 2010, 06:37:19 pm
Quote
What code did you comment out?
This is the lines of code i've commented out:
Code: [Select]
// comment out the multi site check so drupal does not have to be checked - avoids requiring "drupal/www" path

// if ( $installType == 'drupal' ) {
//    // do not check 'sites/all/modules' only since it could be a multi-site
//    // install. Rather check for existance of sites & modules in the url
//    if ( ! preg_match( "/" . preg_quote('sites' . CIVICRM_DIRECTORY_SEPARATOR, CIVICRM_DIRECTORY_SEPARATOR) .
//                       "([a-zA-Z0-9_.]+)" .
//                       preg_quote(CIVICRM_DIRECTORY_SEPARATOR . 'modules', CIVICRM_DIRECTORY_SEPARATOR) . "/",
//                       str_replace( "\\","/",$_SERVER['SCRIPT_FILENAME'] ) ) ) {
//        $errorTitle = "Oops! Please Correct Your Install Location";
//        $errorMsg = "Please untar (uncompress) your downloaded copy of CiviCRM in the <strong>" .
//  implode(CIVICRM_DIRECTORY_SEPARATOR, array('sites', 'all', 'modules')) . "</strong> directory below your Drupal root
// directory. Refer to the online " . $docLink . " for more information.<p>If you want to setup / install a
// <strong>Standalone CiviCRM</strong> version (i.e. not a Drupal or Joomla module), <a href=\"?mode=standalone\">click
//  here</a>.</p>";
//        errorDisplayPage( $errorTitle, $errorMsg );
//    }
// }
Without doing this i were getting the wrong location error.
Quote
What URL are you looking at when you see the error you quoted above?
I see the error quoted above when ever i click on a link related to the Civicrm.
Quote
Have you tried 'starting again'
Yes i did, but I'm getting the error again. and the error is what quoted at the start of the topic.
« Last Edit: November 18, 2010, 11:06:35 pm by lameei »

Michael McAndrew

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1274
  • Karma: 55
    • Third Sector Design
  • CiviCRM version: various
  • CMS version: Nearly always Drupal
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Drupal + wamp + Oops!
November 25, 2010, 04:52:07 am
Is this still a problem? Did you install CiviCRM at sites/all/modules/ ?
Service providers: Grow your business, build your reputation and support CiviCRM. Become a partner today

lameei

  • I’m new here
  • *
  • Posts: 7
  • Karma: 0
Re: Drupal + wamp + Oops!
November 25, 2010, 06:07:06 am
yes the problem is still there preventing installation. i used the path you mentioned.

Michael McAndrew

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1274
  • Karma: 55
    • Third Sector Design
  • CiviCRM version: various
  • CMS version: Nearly always Drupal
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Drupal + wamp + Oops!
November 26, 2010, 02:03:29 am
Not sure - if you are still stuck and no one answers here, you might want to ask people on IRC (click IRC link above) - sometimes easier to debug these problems in real time (with someone better than me at installation issues  :) )
Service providers: Grow your business, build your reputation and support CiviCRM. Become a partner today

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Drupal + wamp + Oops!

This forum was archived on 2017-11-26.