I'd need to see a copy of the binDetails.php page to debug that error. Please attach it to a reply.
I don't see any changed code on the charts pages other than the "after conversion" one missing the connection file at the top. If you add the connection file reference back it will probably continue to work as it did before.