keychain not working, resetting does not help
Macbook Air 2012 running 10.9.5.
When i connect to my wifi, the sytem asks me for the wifi password which i type in (it works and i get connected). When i click join, a message pops up with a title of "Keychain Not Found" and a message: A keychain cannot be found to store "<wifi name>." There are to options: Cancel and Restore To Defaults When i choose Restore to Defaults it asks "Are you sure you want to reset your keychain? This will delete all your saved passwords, keys, and certificates. You cannot undo this operation." There's Cancel and Reset, so i choose Reset. Then another screen pops up:
The problem is, any typing goes to the wifi network password field, even if i click the keychain popup or its field first! However, i can make the wifi screen go away by clicking cancel:
and leaving only the keychain window. Clicking on the keychain window/field gives it focus, but typing adds no characters and just beeps. Clicking OK or Cancel makes the screen go away.
Here's the keychain window:
And here's ~/Library/Keychains:
I've deleted the keychain, renamed it, backed it up, unlock and relocked, first aid verify/repair (finds nothing wrong), Add Keychain..., rebooted. Nothing seems to work. I do not know what to do.
It does not look like iCloud is setup either:
Wiping the keychain completely is okay, it is empty. I just want to make it work so its stops showing the error message and have Safari not show me errors about secure sites. What can i do to make this work?
Mac mini, OS X Mavericks (10.9), null