This error occurred for me as well and it was strange that it did not always happen… I simple changed the troublesome line of code from:
$site_url = get_bloginfo(‘wpurl’); # seems to no longer work?
This is the replacement line of code that seems to work well for me.
$site_url = site_url();
Let me know if this helps 🙂