[V7.1] Cannot print or make pdf of any report

Hello,

When I click on Print or PDF the chrome console shows this error on any report:

Error in Template:
desk.min.js:203 var _p=,print=function(){_p.push.apply(_p,arguments)};with(obj){
_p.push(’ ‘);
if (title ) {
_p.push(’

‘, __(title) ,’


‘, endif ,’ ‘);
for (var xtM=0, Aht=columns.length; xtM<Aht; xtM++) { var col = columns[xtM];
_p.push(’ ‘);
if (col.name && col._id !== “_check” ) {
_p.push(’ <th style=“min-width: ', col.minWidth ,'px” ‘);
if (col.docfield && in_list([“Float”, “Currency”, “Int”], col.docfield.fieldtype) ) {
_p.push(’ class=“text-right” ‘);
};
_p.push(’>‘, __(col.name) ,’ ‘);
};
_p.push(’ ‘);
};
_p.push(’ ‘);
for (var WiC=0, QaL=data.length; WiC<QaL; WiC++) { var row = data[WiC];
_p.push(’ ‘);
for (var zVf=0, RAh=columns.length; zVf<RAh; zVf++) { var col = columns[zVf];
_p.push(’ ‘);
if (col.name && col._id !== “_check” ) {
_p.push(’ ‘);
var value = col.fieldname ? row[col.fieldname] : row[col.id];
_p.push(’ ‘);
};
_p.push(’ ‘);
};
_p.push(’ ‘);
};
_p.push(’
‘, col.formatter ? col.formatter(i, c, value, col, row, true) : value ,’
‘);}return _p.join(’');
desk.min.js:204 Uncaught TypeError: frappe.template.compile(…) is not a functionfrappe.render @ desk.min.js:204frappe.render_template @ desk.min.js:205frappe.render_grid @ desk.min.js:207(anonymous function) @ report.min.js:8dispatch @ jquery.min.js:3$event.dispatch @ report.min.js:203r.handle @ jquery.min.js:3

I’ve already checked the permissions, and aparently everything is ok.

any ideas?

Do you have a custom print format for the report?

Facing same problem. Cannot print any document or report.
-Amit

Yes, I have a custom print format for almost every document, but I tried to remove the default custom print and still no luck

Seems like a bug. Let me check.

Pushed a fix.

Thank you!