alexmonteiro / Redmine-Monitoring-Controlling

Redmine Plugin that works with Highcharts to show tasks on project throught Charts.
Other
131 stars 79 forks source link

Error while converting SVG #67

Closed kadeshiseraph closed 11 years ago

kadeshiseraph commented 11 years ago

This plugin is fantastic. Everything works well for me except for the ability to download a chart. I can download as SVG, but when attempting to download in another format i get a 'Highcharts Export error' page which reads 'Error while transcoding svg file to an image'.

My apache2 error log has an entry for:

[Tue Oct 30 13:08:39 2012] [error] [client 192.168.1.57] File does not exist: /opt/redmine/apache2/htdocs/plugin_assets, referer: http://192.168.1.22/redmine/mc_human_resource_project/index/intranet

Any help would be very much appreciated as this is a great plugin that offers exactly what we need. Thanks in advance

kadeshiseraph commented 11 years ago

I know this is a lot of information, but here is the provided debug information:

<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="400" width="1349" version="1.1" xmlns="http://www.w3.org/2000/svg"><defs><clipPath id="highcharts-23"><rect stroke-width="0" height="227" width="1219" y="0" x="0" fill="none" ry="0" rx="0"></rect></clipPath><linearGradient id="highcharts-24" y2="1" x2="0" y1="0" x1="0"><stop stop-opacity="1" stop-color="#EEE" offset="0"></stop><stop stop-opacity="1" stop-color="#FFF" offset="1"></stop></linearGradient><linearGradient id="highcharts-25" y2="1" x2="0" y1="0" x1="0"><stop stop-opacity="1" stop-color="#FFF" offset="0"></stop><stop stop-opacity="1" stop-color="#CCC" offset="1"></stop></linearGradient><linearGradient id="highcharts-26" y2="1" x2="0" y1="0" x1="0"><stop stop-opacity="1" stop-color="#FFF" offset="0"></stop><stop stop-opacity="1" stop-color="#CCC" offset="1"></stop></linearGradient></defs><rect stroke-width="0" height="400" width="1349" y="0" x="0" fill="#FFFFFF" ry="5" rx="5"></rect><g transform="translate(80,372)"><rect ry="0" rx="0" stroke="#CCC" stroke-width="1" height="14" width="1219" y="-0.5" x="0" fill="url(#highcharts-24)"></rect><rect ry="2" rx="2" stroke="#666" stroke-width="1" height="14" width="NaN" y="-0.5" x="NaN" fill="url(#highcharts-25)"></rect><path visibility="hidden" d="M 0 0" stroke-width="1" stroke="#666" fill="none"></path><g><rect stroke="#666" stroke-width="1" height="14" width="14" y="-0.5" x="-0.5" fill="url(#highcharts-26)" ry="2" rx="2"></rect><path d="M 8 4 L 8 10 5 7" fill="#666"></path></g><g transform="translate(1205,0)"><rect stroke="#666" stroke-width="1" height="14" width="14" y="-0.5" x="-0.5" fill="url(#highcharts-26)" ry="2" rx="2"></rect><path d="M 6 4 L 6 10 9 7" fill="#666"></path></g></g><g class="highcharts-grid"></g><g class="highcharts-grid"><path stroke-width="1" stroke="#C0C0C0" d="M 80 220.5 L 1299 220.5" fill="none"></path><path stroke-width="1" stroke="#C0C0C0" d="M 80 163.5 L 1299 163.5" fill="none"></path><path stroke-width="1" stroke="#C0C0C0" d="M 80 107.5 L 1299 107.5" fill="none"></path><path stroke-width="1" stroke="#C0C0C0" d="M 80 50.5 L 1299 50.5" fill="none"></path><path stroke-width="1" stroke="#C0C0C0" d="M 80 276.5 L 1299 276.5" fill="none"></path></g><g class="highcharts-series-group"><g clip-path="url(#highcharts-23)" transform="translate(80,50)" visibility="visible" class="highcharts-series"><rect transform="translate(1,1)" stroke-opacity="0.05" ry="0" rx="0" stroke="rgb(0, 0, 0)" stroke-width="5" height="169" width="585" y="56.5" x="316.5" fill="none"></rect><rect transform="translate(1,1)" stroke-opacity="0.1" ry="0" rx="0" stroke="rgb(0, 0, 0)" stroke-width="3" height="169" width="585" y="56.5" x="316.5" fill="none"></rect><rect transform="translate(1,1)" stroke-opacity="0.15000000000000002" ry="0" rx="0" stroke="rgb(0, 0, 0)" stroke-width="1" height="169" width="585" y="56.5" x="316.5" fill="none"></rect><rect ry="0" rx="0" stroke="#FFFFFF" stroke-width="1" height="169" width="585" y="56.5" x="316.5" fill="#4572A7"></rect></g></g><text class="highcharts-title" text-anchor="middle" style="font-family:'lucida grande', 'lucida sans unicode', verdana, arial, helvetica, sans-serif;font-size:16px;color:#3e576f;fill:#3e576f;" y="25" x="675"><tspan x="675">Issues by Assignee</tspan></text><g transform="translate(80,50)" visibility="visible" class="highcharts-data-labels"><text transform="rotate(-90 900 67)" r="0" text-anchor="end" style="font-family:'lucida grande', 'lucida sans unicode', verdana, arial, helvetica, sans-serif;font-size:11px;color:#ffffff;line-height:14px;font:normal 13px verdana, sans-serif;fill:#ffffff;" y="67" x="900"><tspan x="900">6</tspan></text></g><g class="highcharts-axis"><text visibility="visible" transform="rotate(-45 689.5 290)" text-anchor="end" style="font-family:'lucida grande', 'lucida sans unicode', verdana, arial, helvetica, sans-serif;font-size:11px;color:#666;line-height:14px;font:normal 13px verdana, sans-serif;fill:#666;" y="290" x="689.5"><tspan x="689.5">Andrew W.</tspan></text><path stroke-width="1" stroke="#C0D0E0" d="M 1299.5 276 L 1299.5 281" fill="none"></path></g><g class="highcharts-axis"><text visibility="visible" text-anchor="end" style="font-family:'lucida grande', 'lucida sans unicode', verdana, arial, helvetica, sans-serif;font-size:11px;width:590px;color:#666;line-height:14px;fill:#666;" y="279.6" x="72"><tspan x="72">0</tspan></text><text visibility="visible" text-anchor="end" style="font-family:'lucida grande', 'lucida sans unicode', verdana, arial, helvetica, sans-serif;font-size:11px;width:590px;color:#666;line-height:14px;fill:#666;" y="223.1" x="72"><tspan x="72">2</tspan></text><text visibility="visible" text-anchor="end" style="font-family:'lucida grande', 'lucida sans unicode', verdana, arial, helvetica, sans-serif;font-size:11px;width:590px;color:#666;line-height:14px;fill:#666;" y="166.6" x="72"><tspan x="72">4</tspan></text><text visibility="visible" text-anchor="end" style="font-family:'lucida grande', 'lucida sans unicode', verdana, arial, helvetica, sans-serif;font-size:11px;width:590px;color:#666;line-height:14px;fill:#666;" y="110.1" x="72"><tspan x="72">6</tspan></text><text visibility="visible" text-anchor="end" style="font-family:'lucida grande', 'lucida sans unicode', verdana, arial, helvetica, sans-serif;font-size:11px;width:590px;color:#666;line-height:14px;fill:#666;" y="53.6" x="72"><tspan x="72">8</tspan></text><text visibility="visible" text-anchor="middle" transform="rotate(270 54.3671875 163)" style="font-family:'lucida grande', 'lucida sans unicode', verdana, arial, helvetica, sans-serif;font-size:12px;color:#6d869f;font-weight:bold;fill:#6d869f;" y="163" x="54.3671875"><tspan x="54.3671875">Count of Issues</tspan></text></g><path visibility="visible" stroke-width="1" stroke="#C0D0E0" d="M 80 276.5 L 1299 276.5" fill="none"></path><g visibility="hidden" style="padding:0;white-space:nowrap;" class="highcharts-tooltip"><rect transform="translate(1,1)" stroke-opacity="0.05" stroke="rgb(0, 0, 0)" fill-opacity="0.85" stroke-width="5" height="0" width="0" y="0" x="0" fill="none" ry="5" rx="5"></rect><rect transform="translate(1,1)" stroke-opacity="0.1" stroke="rgb(0, 0, 0)" fill-opacity="0.85" stroke-width="3" height="0" width="0" y="0" x="0" fill="none" ry="5" rx="5"></rect><rect transform="translate(1,1)" stroke-opacity="0.15000000000000002" stroke="rgb(0, 0, 0)" fill-opacity="0.85" stroke-width="1" height="0" width="0" y="0" x="0" fill="none" ry="5" rx="5"></rect><rect fill-opacity="0.85" stroke-width="2" height="0" width="0" y="0" x="0" fill="rgb(255,255,255)" ry="5" rx="5"></rect><text style="font-family:'lucida grande', 'lucida sans unicode', verdana, arial, helvetica, sans-serif;font-size:12px;color:#333333;fill:#333333;" y="13" x="0"></text></g><g class="highcharts-tracker"><g clip-path="url(#highcharts-23)" transform="translate(80,50)" ><rect style="cursor:pointer;" visibility="visible" fill-opacity="0.000001" height="169" width="585" y="56.5" x="316.5" fill="rgb(192,192,192)"></rect></g></g></svg>

alexmonteiro commented 11 years ago

All charts are render as SVG file and when it exports to another format the server will post the SVG at http://export.highcharts.com . Check if your server can reach this address. Ty for reporting.

kadeshiseraph commented 11 years ago

Thanks for the prompt response Alex. When I navigate to that page I receive the same 'Error while converting SVG' message, but with 'The required - svg - post parameter is missing' and 'null' in debug.

kadeshiseraph commented 11 years ago

This has just started working again with no input from me! Thanks for your help.