How are you trying to change the settings? That indicates that it's attempting to insert a new row into the settings table, which it should never do. Have you changed anything in the settings section's code? Did you run install.php more than once? Check to make sure that there is only one, and I mean 1, row in the settings table. If there is more than one, you will have to delete until there is only one left.