Hi Harley,
The extension you pasted is empty - if there's nothing in there you should just remove it and that'll solve this. If there is something in there that you've just hidden for this post, I'd ensure you've done a /dev/build?flush=1 firstly. Also, your extension should be applied with:
SiteConfig::add_extension('CustomSiteConfig');
You mentioned that it only happens occasionally, which is odd given that a PHP class shouldn't be able to disappear at random. According to your _config.php, you're flushing the template cache on every page load - I wonder if this is somehow interfering with the class manifest as well (it definitely shouldn't affect this, but I've seen stranger), so I'd try removing that too.
Posted to: [SOLVED] CustomSiteConfig not found | Show Thread | Post Reply