{"id":15642408,"date":"2022-05-13T10:49:01","date_gmt":"2022-05-13T10:49:01","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/neterr_aborted-500-minify-js\/"},"modified":"2022-05-13T10:49:01","modified_gmt":"2022-05-13T10:49:01","slug":"neterr_aborted-500-minify-js","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/neterr_aborted-500-minify-js\/","title":{"rendered":"net::ERR_ABORTED 500 minify js"},"content":{"rendered":"<p>Hello,<\/p>\n<p>I am using the latest version of the plugin and when minifying one of the JS files I get the title error.<\/p>\n<p>If I delete this JS, there is no problem, so I have intuited that it is because of the <code><\/code> that the js file contains&#8230;<\/p>\n<p>I leave here the conflicting js file:<\/p>\n<pre><code>function createCircleChart(percent, color, size, stroke, symboll) {\n    let svg = <\/code><\/pre>\n<p>&lt;svg class=&#8221;mkc_circle-chart&#8221; viewbox=&#8221;0 0 36 36&#8243; width=&#8221;${size}&#8221; height=&#8221;${size}&#8221; xmlns=&#8221;http:\/\/www.w3.org\/2000\/svg&#8221;&gt;<br \/>\n        &lt;path class=&#8221;mkc_circle-bg&#8221; stroke=&#8221;#eeeeee&#8221; stroke-width=&#8221;${stroke * 0.5}&#8221; fill=&#8221;none&#8221; d=&#8221;M18 2.0845<br \/>\n              a 15.9155 15.9155 0 0 1 0 31.831<br \/>\n              a 15.9155 15.9155 0 0 1 0 -31.831&#8243;\/&gt;<br \/>\n        &lt;path class=&#8221;mkc_circle&#8221; stroke=&#8221;${color}&#8221; stroke-width=&#8221;${stroke}&#8221; stroke-dasharray=&#8221;${percent},100&#8243; stroke-linecap=&#8221;round&#8221; fill=&#8221;none&#8221;<br \/>\n            d=&#8221;M18 2.0845<br \/>\n              a 15.9155 15.9155 0 0 1 0 31.831<br \/>\n              a 15.9155 15.9155 0 0 1 0 -31.831&#8243; \/&gt;<br \/>\n        &lt;text class=&#8221;mkc_info&#8221; x=&#8221;50%&#8221; y=&#8221;50%&#8221; alignment-baseline=&#8221;central&#8221; text-anchor=&#8221;middle&#8221; font-size=&#8221;8&#8243; style=&#8221;fill:#333&#8243;&gt;${symboll}${percent}%&lt;\/text&gt;<br \/>\n    &lt;\/svg&gt;`;<br \/>\n    return svg;<br \/>\n}<\/p>\n<p>let charts = document.getElementsByClassName(&#8216;mkCharts&#8217;);<\/p>\n<p>for(let i=0;i&lt;charts.length;i++) {<br \/>\n    let chart = charts[i];<br \/>\n    let percent = chart.dataset.percent;<br \/>\n    let color = (&#8216;color&#8217; in chart.dataset) ? chart.dataset.color : &#8220;#f2522e&#8221;;<br \/>\n    let size = (&#8216;size&#8217; in chart.dataset) ? chart.dataset.size : &#8220;100&#8221;;<br \/>\n    let stroke = (&#8216;stroke&#8217; in chart.dataset) ? chart.dataset.stroke : &#8220;1&#8221;;<br \/>\n    let symboll = (&#8216;symboll&#8217; in chart.dataset) ? chart.dataset.symboll : &#8220;&#8221;;<br \/>\n    charts[i].innerHTML = createCircleChart(percent, color, size, stroke, symboll);<br \/>\n}`<\/p>\n","protected":false},"template":"","class_list":["post-15642408","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/15642408","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/15642408\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=15642408"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}