just closing the loop on this one…
After extensive investigation and stepping through the code, I found where it is coming from and why.
Freemius (embedded within FooGallery and other plugins) makes calls to?www.ads-software.com?API within the file “class-fs-plugin-updater.php” :?
https://github.com/Freemius/wordpress-sdk/blob/master/includes/class-fs-plugin-updater.php#L928
Dreamhost deploys the following plugin to all of their WordPress sites and activates it by default:
https://gist.github.com/bradvin/54bfdb40b72f6faae396ed71f1212ed5
There is no way to disable the plugin, as they remove the row from the plugin listing page within the WP admin.
https://gist.github.com/bradvin/54bfdb40b72f6faae396ed71f1212ed5#file-dreamhost-panel-login-php-L173
They also intercept all HTTP requests and check if the call was the update endpoint on wp.org and manipulate the response. They do not cater for the calls that Freemius SDK makes to that endpoint mentioned above, and a fatal error ensues.
To fix the bugs, a simple check can be made to check as commented on that gist page. Unfortunately, this needs to be done by Dreamhost and rolled out to all their sites.
Anyone with this issue, please contact Dreamhost and link to this ticket and ask them to fix their plugin code.