CiviCRM is finally installing without any errors and all the files from other open source packages are being recreated in the right place. But as soon as you load the CiviCRM dashboard, clicking on any of the CiviCRM links results in this error...

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.

The URL is /profiles/cm_starterkit_moderate/modules/civicrm//install/index.php/civicrm/admin/domain?action=update&reset=1&civicrmDestination=%2Fprofiles%2Fcm_starterkit_moderate%2Fmodules%2Fcivicrm%2F%2Finstall%2Findex.php%2Fcivicrm%2Fdashboard%3Freset%3D1

Might be related to #1830416: CiviCRM Install link does not work if in folder

Comments

kreynen’s picture

Priority: Normal » Critical
kreynen’s picture

Priority: Critical » Normal

This is actually an easy manual fix. For some reason, the CIVICRM_UF_BASEURL is wrong in the civicrm.settings.php file...

define( 'CIVICRM_UF_BASEURL'      , 'http://cm_starterkit_moderate.7/profiles/cm_starterkit_moderate/modules/civicrm//install/index.php/' );

Should be...

define( 'CIVICRM_UF_BASEURL'      , 'http://cm_starterkit_moderate.7/profiles/cm_starterkit_moderate/modules/civicrm//install/index.php/' );

Once that is changed, everything works as expected. Would be nice to get this right on install.

coderdan’s picture

StatusFileSize
new484 bytes
new529.31 KB

@kreynen -

The root of this problem appears to stem from the fact that the link to install CiviCRM on the Drupal requirement check page has an extra "/" in the URL. For instance during my tests the URL was (cm_starterkit_moderate via drush make):

http://localhost/sites/all/modules/civicrm//install/index.php

Modifying the civicrm.install file, line 65, I changed this:

$url = $base_url . '/' . $civicrm_path . '/install/index.php';

to this:

$url = $base_url . '/' . $civicrm_path . 'install/index.php';

This seems to solve the issue writing the correct 'CIVICRM_UF_BASEURL' value in civicrm.settings.php. I attempted a patch. Please let me know if you find any issues.

coderdan’s picture

Status: Active » Needs review
kreynen’s picture

Status: Needs review » Reviewed & tested by the community

This patch worked for me. I will commit this along with a few version updates and jquery tweaks today.

kreynen’s picture

Issue summary: View changes
Status: Reviewed & tested by the community » Closed (fixed)

closing old issues