{"id":3,"date":"2007-05-31T14:59:30","date_gmt":"2007-05-31T20:59:30","guid":{"rendered":"http:\/\/chriscarey.com\/wordpress\/?p=3"},"modified":"2007-05-31T15:06:30","modified_gmt":"2007-05-31T21:06:30","slug":"updating-to-debian-etch-broke-amavis-stats","status":"publish","type":"post","link":"https:\/\/chriscarey.com\/blog\/2007\/05\/31\/updating-to-debian-etch-broke-amavis-stats\/","title":{"rendered":"Updating to Debian Etch broke Amavis-Stats"},"content":{"rendered":"<p>Updating to Debian Etch broke Amavis-Stats:<\/p>\n<div class=\"codecolorer-container text blackboard\" style=\"overflow:auto;white-space:nowrap;width:565px;\"><div class=\"text codecolorer\">Amavis Detection Statistics<br \/>\nDaily Graphs<br \/>\namavis-stats::error: rrd_graph(): 1<br \/>\namavis-stats::error: rrd_graph(): 1<br \/>\nWeekly Graphs<br \/>\namavis-stats::error: rrd_graph(): 1<br \/>\namavis-stats::error: rrd_graph(): 1<br \/>\nMonthly Graphs<br \/>\namavis-stats::error: rrd_graph(): 1<br \/>\namavis-stats::error: rrd_graph(): 1<br \/>\nYearly Graphs<br \/>\namavis-stats::error: rrd_graph(): 1<br \/>\namavis-stats::error: rrd_graph(): 1<\/div><\/div>\n<p>I searched Google for a solution but every other post on the subject suggested downgrading rrdtool. This is not an appropriate fix. I debugged the actual amavis-stats script and here is my fix. It involves commenting out some lines in \/usr\/share\/amavis-stats\/amavis-stats.php:<\/p>\n<p>Line 650:<\/p>\n<div class=\"codecolorer-container text blackboard\" style=\"overflow:auto;white-space:nowrap;width:565px;\"><div class=\"text codecolorer\">\/\/ $opts[] = &quot;COMMENT:amavis-stats v$asVersion &quot;;<br \/>\n\/\/ $opts[] = &quot;COMMENT:$enddate \\\\r&quot;;<\/div><\/div>\n<p>Line 771:<\/p>\n<div class=\"codecolorer-container text blackboard\" style=\"overflow:auto;white-space:nowrap;width:565px;\"><div class=\"text codecolorer\">\/\/ $opts[] = &quot;COMMENT:amavis-stats v$asVersion &quot;;<br \/>\n\/\/ $opts[] = &quot;COMMENT:$enddate&quot; . str_replace(&quot;:&quot;, &quot;\\:&quot;, $enddate) . &quot; \\\\r&quot;;<\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Updating to Debian Etch broke Amavis-Stats: Amavis Detection Statistics Daily Graphs amavis-stats::error: rrd_graph(): 1 amavis-stats::error: rrd_graph(): 1 Weekly Graphs amavis-stats::error: rrd_graph(): 1 amavis-stats::error: rrd_graph(): 1 Monthly Graphs amavis-stats::error: rrd_graph(): 1 amavis-stats::error: rrd_graph(): 1 Yearly Graphs amavis-stats::error: rrd_graph(): 1 amavis-stats::error: rrd_graph(): 1 I searched Google for a solution but every other post on the subject suggested [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[3],"tags":[],"class_list":["post-3","post","type-post","status-publish","format-standard","hentry","category-Linux"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/prpYG-3","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/chriscarey.com\/blog\/wp-json\/wp\/v2\/posts\/3","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/chriscarey.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/chriscarey.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/chriscarey.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/chriscarey.com\/blog\/wp-json\/wp\/v2\/comments?post=3"}],"version-history":[{"count":0,"href":"https:\/\/chriscarey.com\/blog\/wp-json\/wp\/v2\/posts\/3\/revisions"}],"wp:attachment":[{"href":"https:\/\/chriscarey.com\/blog\/wp-json\/wp\/v2\/media?parent=3"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/chriscarey.com\/blog\/wp-json\/wp\/v2\/categories?post=3"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/chriscarey.com\/blog\/wp-json\/wp\/v2\/tags?post=3"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}