diff --git a/includes/html/graphs/bill/historicbits.inc.php b/includes/html/graphs/bill/historicbits.inc.php
index ae12b520d7..a4eaffb20f 100644
--- a/includes/html/graphs/bill/historicbits.inc.php
+++ b/includes/html/graphs/bill/historicbits.inc.php
@@ -63,6 +63,14 @@ function YCallback($y)
$graph = new Graph($vars['width'], $vars['height'], $graph_data['graph_name']);
$graph->img->SetImgFormat('png');
+// work around bug in jpgraph error handling
+$graph->title->Set(' ');
+$graph->subtitle->Set(' ');
+$graph->subsubtitle->Set(' ');
+$graph->footer->left->Set(' ');
+$graph->footer->center->Set(' ');
+$graph->footer->right->Set(' ');
+
$graph->SetScale('datlin', 0, 0, $graph_data['from'], $graph_data['to']);
$graph->SetMarginColor('white');
$graph->SetFrame(false);
diff --git a/includes/html/graphs/bill/historicmonthly.inc.php b/includes/html/graphs/bill/historicmonthly.inc.php
index 738f6e0c38..d077cd136e 100644
--- a/includes/html/graphs/bill/historicmonthly.inc.php
+++ b/includes/html/graphs/bill/historicmonthly.inc.php
@@ -27,6 +27,14 @@ for ($i = 0; $i < count($graph_data['ticklabels']); $i++) {
$graph = new Graph($vars['width'], $vars['height'], $graph_data['graph_name']);
$graph->img->SetImgFormat('png');
+// work around bug in jpgraph error handling
+$graph->title->Set(' ');
+$graph->subtitle->Set(' ');
+$graph->subsubtitle->Set(' ');
+$graph->footer->left->Set(' ');
+$graph->footer->center->Set(' ');
+$graph->footer->right->Set(' ');
+
$graph->SetScale('textlin');
// $graph->title->Set("$graph_name");
$graph->title->SetFont(FF_FONT2, FS_BOLD, 10);
diff --git a/includes/html/graphs/bill/historictransfer.inc.php b/includes/html/graphs/bill/historictransfer.inc.php
index 61fea133fc..e63c7c647b 100644
--- a/includes/html/graphs/bill/historictransfer.inc.php
+++ b/includes/html/graphs/bill/historictransfer.inc.php
@@ -29,6 +29,14 @@ for ($i = 0; $i < count($graph_data['ticklabels']); $i++) {
$graph = new Graph($vars['width'], $vars['height'], $graph_data['graph_name']);
$graph->img->SetImgFormat('png');
+// work around bug in jpgraph error handling
+$graph->title->Set(' ');
+$graph->subtitle->Set(' ');
+$graph->subsubtitle->Set(' ');
+$graph->footer->left->Set(' ');
+$graph->footer->center->Set(' ');
+$graph->footer->right->Set(' ');
+
$graph->SetScale('textlin');
$graph->title->SetFont(FF_FONT2, FS_BOLD, 10);
$graph->SetMarginColor('white');