Unable to Load Site Preferences Error
This isn’t a very helpful error when it comes up and it can throw off a lot of people. The first time I saw it, it made me scratch my head for a second.
The error is most likely caused by EE being unable to connect to your database server. Check your database hostname, username and password. It could also, however, be caused by something else (like a missing database table).
I’m unsure why a bad database connection doesn’t throw a database error first considering that is usually the underlying problem.
I was reminded of this by this tweet:
Moving #eecms to production gives “Site Error: Unable to Load Site Preferences; No Preferences Found” error… simple fix?
— Jason Varga (@jason_varga) June 26, 2012
Jason — 15:30 on 06.28.2012
Wasn’t expecting to see my name on EE Insider…
The issue was indeed a DB connection problem.
Moving to a production server, my DB hostname was set to localhost, which in this case was incorrect.
Dan — 13:16 on 12.25.2014
someone please talk to me like i’m an idiot