Answers.Body: <p>Some extensions don't fully clean up behind themselves when they are uninstalled causing problems when you attempt to install again.  You will need to look at what the extension is trying to do when it installs and find what is failing.  If the fields/options etc already exist you can comment out that part of the installation process.  Alternatively, remove them - but if possible use the API rather than direct SQL to reduce the chances of leaving things in an inconsistent state.</p>
  
  <p>If you can't install, uninstall and then reinstall an extension cleanly then it is worth logging an issue in the extension's issue queue.  I have just tested that sequence with the GDPR extension without problem.</p>
  
  <p>And please get your 4.7 system upgraded!  </p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-03-16T09:34:37.907Z
Answers.Text: thanks! I have logged an issue with them. and planning upgrade soon.
Answers.UserDisplayName: Tapash
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-03-16T09:17:17.727Z
Answers.LastActivityDate: 2019-03-16T09:17:17.727Z
Answers.UserDisplayName: Aidan
Body: <p>I am on CiviCRM 4.7, Php 5.6, drupal 7. When installing GDPR extension, it failed. After that whenever I try to uninstall and reinstall, CiviCRM shows error "Found Name, activity_type, civicrm_option_group". Nothing happens after that. GDPR settings menu or manually not accessible. A custom data group is created for contacts but when clicked it shows error message "Unable to reach server, Please refresh this page on your browser and try again".</p>
  
  <p>I have tried manually removing the custom data using sql that was in the extension. but no luck. How can i resolve this please?</p>
  
Tags: <extension><gdpr>
Title: Extension install failed, now cant get the functions to work or reinstall successfully. How to fix please?
ThreadText: # Extension install failed, now cant get the functions to work or reinstall successfully. How to fix please?
  
  (Asked by: username_0 on 2019-03-15)
  
  I am on CiviCRM 4.7, Php 5.6, drupal 7. When installing GDPR extension, it failed. After that whenever I try to uninstall and reinstall, CiviCRM shows error "Found Name, activity\_type, civicrm\_option\_group". Nothing happens after that. GDPR settings menu or manually not accessible. A custom data group is created for contacts but when clicked it shows error message "Unable to reach server, Please refresh this page on your browser and try again".
  
  I have tried manually removing the custom data using sql that was in the extension. but no luck. How can i resolve this please?
  
  **Tags:** extension, gdpr
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2019-03-16. Score: 0
  
  Some extensions don't fully clean up behind themselves when they are uninstalled causing problems when you attempt to install again. You will need to look at what the extension is trying to do when it installs and find what is failing. If the fields/options etc already exist you can comment out that part of the installation process. Alternatively, remove them - but if possible use the API rather than direct SQL to reduce the chances of leaving things in an inconsistent state.
  
  If you can't install, uninstall and then reinstall an extension cleanly then it is worth logging an issue in the extension's issue queue. I have just tested that sequence with the GDPR extension without problem.
  
  And please get your 4.7 system upgraded!
  
  > **Comments:**
  > **username_0**: thanks! I have logged an issue with them. and planning upgrade soon.  
  
  ---
  
  