Answers.Body: <p>Aaron welcome to stack exchange, Can you logout and login again? If its a new install than you contact id might have not set properly in session.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-02-12T00:46:44.953Z
Answers.Text: I have tried that. No progress. Thanks for the idea though.
Answers.UserDisplayName: Aaron DeVandry
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-02-12T00:47:47.363Z
Answers.Text: can you check civicrm error log to find more details of db error?
Answers.UserDisplayName: Pradeep Nayak
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-02-11T22:06:37.787Z
Answers.LastActivityDate: 2020-02-11T22:06:37.787Z
Answers.UserDisplayName: Pradeep Nayak
Body: <p>I am trying to update an install from CiviCRM version 4.4.5 to the current version.</p>
  
  <p>I was unable to because the WordPress site was using PHP 5.6.</p>
  
  <p>So I installed CiviCRM 4.7.31, and then updated the server to PHP 7.0.</p>
  
  <p>Now when I click the CiviCRM menu link in the dashboard, I get this: </p>
  
  <p>DB Error: constraint violation</p>
  
  <p><a href="https://i.sstatic.net/6zpQM.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/6zpQM.png" alt="enter image description here"></a></p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-02-11T20:13:36.320Z
Comments.Text: Find your civicrm error log (see https://civicrm.stackexchange.com/questions/15931/where-are-the-configandlog-and-templates-c-directories) and inside the file there will be a more detailed error. If you think it will require some back and forth, then https://chat.civicrm.org is a better place for that.
Comments.UserDisplayName: Demerit
Tags: <wordpress><error><php7>
Title: DB Error: constraint violation (WordPress)
ThreadText: # DB Error: constraint violation (WordPress)
  
  (Asked by: username_0 on 2020-02-11)
  
  I am trying to update an install from CiviCRM version 4.4.5 to the current version.
  
  I was unable to because the WordPress site was using PHP 5.6.
  
  So I installed CiviCRM 4.7.31, and then updated the server to PHP 7.0.
  
  Now when I click the CiviCRM menu link in the dashboard, I get this:
  
  DB Error: constraint violation
  
  [![enter image description here](https://i.sstatic.net/6zpQM.png)](https://i.sstatic.net/6zpQM.png)
  
  **Tags:** wordpress, error, php7
  
  > **Comments:**
  > **username_1**: Find your civicrm error log (see https://civicrm.stackexchange.com/questions/15931/where-are-the-configandlog-and-templates-c-directories) and inside the file there will be a more detailed error. If you think it will require some back and forth, then https://chat.civicrm.org is a better place for that.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2020-02-11. Score: 1
  
  Aaron welcome to stack exchange, Can you logout and login again? If its a new install than you contact id might have not set properly in session.
  
  > **Comments:**
  > **username_0**: I have tried that. No progress. Thanks for the idea though.  
  > **username_2**: can you check civicrm error log to find more details of db error?  
  
  ---
  
  