I'm trying to duplicate a site onto a different server and am running into the old "Site Error: Unable to Load Site Preferences; No Preferences Found" error. Through searchign the forums some fixes I've tried are to re-export / import the database, re-uploaded all the files to the server and no dice. I've got 777 permissions on my config.php and database.php. I have also checked with simple PHP script to see if I am able to successfully connect to my DB with my settings and that worked fine.
I did find that the code causing the error (in /core/EE_Config.php):
if ($query->num_rows() == 0)
{
if ($site_name == '' && $site_id != 1)
{
$this->site_prefs('', 1);
return;
}
show_error("Site Error: Unable to Load Site Preferences; No Preferences Found", 503);
}
Can someone out there help to explain what this means and perhaps a potential solution?