I know very little PHP, so bear with me. But is this the right way:
$abspath = ‘https://binarybonsai.com’ . $relpath;
I’m guessing not, since that ends up breaking the frontend, and does nothing to the backend.
Is is possible to call wp-db.php directly? If so, it talks about problems connecting to the db (https://binarybonsai.com/b2-include/wp-db.php). I double checked the config, should be fine!