Answers.Body: <p>Check what settings you have for <code>CIVICRM_MEMCACHE_PREFIX</code> in your civicrm.settings.php file. You can't define a constant more than once.  Maybe copy/paste the relevant sections into your question.  Don't include the whole file.</p>
  <p>The 'Deprecated function' relates to the Drupal backup_migrate module - nothing to to do with CiviCRM.  Have you just changed php version?  That message relates to a changes <a href="https://www.php.net/manual/en/migration70.deprecated.php" rel="nofollow noreferrer">introduced in php 7</a>  Make sure your Drupal modules are updated.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-05-24T09:36:46.800Z
Answers.LastActivityDate: 2021-05-24T09:36:46.800Z
Answers.UserDisplayName: Aidan
Body: <p>Here is what happened...</p>
  <p>I was doing an update to CiviCRM (through the recommended process) from .10 to .15.</p>
  <p>After I copied the files over, I was getting a 500.</p>
  <p>So I checked the log and I was getting an error message:</p>
  <p>Notice: Constant CIVICRM_MEMCACHE_PREFIX already defined in include_once() (line 310 of /home3/isrcus/public_html/sites/default/civicrm.settings.php).</p>
  <p>and the next one:</p>
  <p>Deprecated function: Methods with the same name as their class will not be constructors in a future version of PHP; backup_file has a deprecated constructor in require_once() (line 279 of /home3/isrcus/public_html/sites/all/modules/backup_migrate/backup_migrate.module).</p>
  <p>Why am I getting those error messages?</p>
  <p>Thanks!
  Kevin</p>
  
Tags: <drupal><drupal-7>
Title: Updating CiviCRM Module in Drupal 7
ThreadText: # Updating CiviCRM Module in Drupal 7
  
  (Asked by: username_0 on 2021-05-23)
  
  Here is what happened...
  
  I was doing an update to CiviCRM (through the recommended process) from .10 to .15.
  
  After I copied the files over, I was getting a 500.
  
  So I checked the log and I was getting an error message:
  
  Notice: Constant CIVICRM\_MEMCACHE\_PREFIX already defined in include\_once() (line 310 of /home3/isrcus/public\_html/sites/default/civicrm.settings.php).
  
  and the next one:
  
  Deprecated function: Methods with the same name as their class will not be constructors in a future version of PHP; backup\_file has a deprecated constructor in require\_once() (line 279 of /home3/isrcus/public\_html/sites/all/modules/backup\_migrate/backup\_migrate.module).
  
  Why am I getting those error messages?
  
  Thanks!
  username_0
  
  **Tags:** drupal, drupal-7
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2021-05-24. Score: 1 | Accepted answer
  
  Check what settings you have for `CIVICRM_MEMCACHE_PREFIX` in your civicrm.settings.php file. You can't define a constant more than once. Maybe copy/paste the relevant sections into your question. Don't include the whole file.
  
  The 'Deprecated function' relates to the Drupal backup\_migrate module - nothing to to do with CiviCRM. Have you just changed php version? That message relates to a changes [introduced in php 7](https://www.php.net/manual/en/migration70.deprecated.php) Make sure your Drupal modules are updated.
  
  
  ---
  
  