What was the cause? Is it something that other people would benefit from knowing?
Where is what I found out:
If you're in GoDaddy, the hostname may not be "localhost". You may have to get the hostname string from Godaddy settings. In other Godaddy hostings, "localhost" had worked perfectly for me, hence the confusion.