I just came into this problem and fixed it by editing the plugin file located in wp-content/plugins/easy-heads-up-bar/lib/ehb-frontend.php
I changed line 24:
$bar_array = "";
To this:
$bar_array = array();
Of course you should never edit plugin files as your changes will be overwritten with any future plugin updates. However, since it’s been a couple of years since this plugin has issued an update, I think you will be safe. And hopefully this bug will be fixed if any updates are rolled out.
As you can see the problem is that the type of variable is cast as a string, but it is used as an array later in the code. Interstingly enough, this bug only came to light when I moved my site to a new server. This bug must only affect certain PHP versions and/or server configurations.