DB Error: constraint violation when I try to add profiles to contribution page
Can you compare your screen with this page:


http://wp46.demo.civicrm.org/wp-admin/admin.php?page=CiviCRM&amp;q=civicrm/admin/contribute/custom&amp;reset=1&amp;action=update&amp;id=2

(you will need to login as demo / demo)


I suspect its not the same, and most likely there are some javascript errors occuring on your site. You should check the js console when you load the page
Seems like the values submitted (i.e. a 0 for uf_group_id) is not expected and hence u get the mysql error