Answers.Body: <p>I haven't experienced this myself, but -- skimming the code in <code>index.php</code> -- it appears to track a variable called <code>civicrm_install_type</code>. The variable defaults to <code>drupal</code> but can be set to <code>wordpress</code> by passing <code>?civicrm_install_type=wordpress</code>. Once it is set, it's stored in the <code>SESSION</code> and reused for future page-views.</p>
  
  <p>One way you could probably trigger this behavior is to install WordPress+CiviCRM, swap out the code base, and replace it with a Drupal+CiviCRM codebase (on the same server, using the same browser session).</p>
  
  <p>If this were the situation, you could get around it by either:</p>
  
  <ul>
  <li>Resetting the PHP session (eg deleting cookies or logging out).</li>
  <li>Explicitly passing <code>?civicrm_install_type=drupal</code> when visiting <code>civicrm/install/index.php</code>.</li>
  </ul>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-06-23T19:34:32.690Z
Answers.Text: I just needed to clear the session and my cookies, and bada bing.  All better.
Answers.UserDisplayName: Brad Hinson
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-06-23T18:04:31.113Z
Answers.LastActivityDate: 2015-06-23T22:44:19.837Z
Answers.LastEditDate: 2015-06-23T22:44:19.837Z
Answers.UserDisplayName: Tim Otten
Body: <p>I'm a newbie.  Attempting to install local MAMP Drupal CiviCRM - following the wiki steps.  When I get to the CiviCRM install script, it throws the following error - for some reason the install script seems to think I'm running WordPress.</p>
  
  <p>I've purged it all, tried a again from scratch.  Same issue.  </p>
  
  <p>=========================
  Notice: Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' in /Applications/MAMP/htdocs/drupal/sites/all/modules/civicrm/install/index.php on line 63</p>
  
  <p>Notice: Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' in /Applications/MAMP/htdocs/drupal/sites/all/modules/civicrm/install/index.php on line 64</p>
  
  <p>Notice: Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' in /Applications/MAMP/htdocs/drupal/sites/all/modules/civicrm/install/index.php on line 65</p>
  
  <p>Warning: require_once(WP_PLUGIN_DIR/civicrm/civicrm//CRM/Core/ClassLoader.php): failed to open stream: No such file or directory in /Applications/MAMP/htdocs/drupal/sites/all/modules/civicrm/install/index.php on line 75</p>
  
  <p>Fatal error: require_once(): Failed opening required 'WP_PLUGIN_DIR/civicrm/civicrm//CRM/Core/ClassLoader.php' (include_path='.:/Applications/MAMP/bin/php/php5.6.10/lib/php') in /Applications/MAMP/htdocs/drupal/sites/all/modules/civicrm/install/index.php on line 75</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-06-23T18:07:48.637Z
Comments.Text: Are you sure you downloaded the tarball for drupal?
Comments.UserDisplayName: Coleman
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-06-23T18:47:59.217Z
Comments.Text: Yes, I triple checked.  It's the right one.
Comments.UserDisplayName: Brad Hinson
Tags: <drupal><installation><mamp>
Title: system wordpress/drupal confusion
ThreadText: # system wordpress/drupal confusion
  
  (Asked by: username_0 on 2015-06-23)
  
  I'm a newbie. Attempting to install local MAMP Drupal CiviCRM - following the wiki steps. When I get to the CiviCRM install script, it throws the following error - for some reason the install script seems to think I'm running WordPress.
  
  I've purged it all, tried a again from scratch. Same issue.
  
  =========================
  Notice: Use of undefined constant WP\_PLUGIN\_DIR - assumed 'WP\_PLUGIN\_DIR' in /Applications/MAMP/htdocs/drupal/sites/all/modules/civicrm/install/index.php on line 63
  
  Notice: Use of undefined constant WP\_PLUGIN\_DIR - assumed 'WP\_PLUGIN\_DIR' in /Applications/MAMP/htdocs/drupal/sites/all/modules/civicrm/install/index.php on line 64
  
  Notice: Use of undefined constant WP\_PLUGIN\_URL - assumed 'WP\_PLUGIN\_URL' in /Applications/MAMP/htdocs/drupal/sites/all/modules/civicrm/install/index.php on line 65
  
  Warning: require\_once(WP\_PLUGIN\_DIR/civicrm/civicrm//CRM/Core/ClassLoader.php): failed to open stream: No such file or directory in /Applications/MAMP/htdocs/drupal/sites/all/modules/civicrm/install/index.php on line 75
  
  Fatal error: require\_once(): Failed opening required 'WP\_PLUGIN\_DIR/civicrm/civicrm//CRM/Core/ClassLoader.php' (include\_path='.:/Applications/MAMP/bin/php/php5.6.10/lib/php') in /Applications/MAMP/htdocs/drupal/sites/all/modules/civicrm/install/index.php on line 75
  
  **Tags:** drupal, installation, mamp
  
  > **Comments:**
  > **username_1**: Are you sure you downloaded the tarball for drupal?  
  > **username_0**: Yes, I triple checked.  It's the right one.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2015-06-23. Score: 4 | Accepted answer
  
  I haven't experienced this myself, but -- skimming the code in `index.php` -- it appears to track a variable called `civicrm_install_type`. The variable defaults to `drupal` but can be set to `wordpress` by passing `?civicrm_install_type=wordpress`. Once it is set, it's stored in the `SESSION` and reused for future page-views.
  
  One way you could probably trigger this behavior is to install WordPress+CiviCRM, swap out the code base, and replace it with a Drupal+CiviCRM codebase (on the same server, using the same browser session).
  
  If this were the situation, you could get around it by either:
  
  * Resetting the PHP session (eg deleting cookies or logging out).
  * Explicitly passing `?civicrm_install_type=drupal` when visiting `civicrm/install/index.php`.
  
  > **Comments:**
  > **username_0**: I just needed to clear the session and my cookies, and bada bing.  All better.  
  
  ---
  
  