У меня проблема с развертыванием barryvdh / laravel -dompdf на производстве. я получил ошибку пустого ответа. Я не знаю, почему я получил пустой ответ, однако этот barryvdh / laravel -dompdf работает на моем локальном хосте, только на моем производстве не работает. Я покажу вам, ребята, ответ об ошибке, который я получил.
Ajax:
$.ajax({
url:'/mis_report/export_mis_report_pdf_higher_position',
type:'post',
data:pdf_selected_category,
processData: false,
contentType: false,
dataType:'JSON',
success:function(res) {
console.log(res);
},
error:function(error) {
console.log(error);
}
})
Возврат:
$pdf = PDF::loadView('mis_report.export_mis_report_pdf',
array(
'report_part_1' => $report_part_1,
'report_part_2_sales_channel'=>$report_part_2_sales_channel,
'report_part_2_daypart'=>$report_part_2_day_part,
'brand_weekly'=>$brand_weekly,
'high_item_a'=>$high_item_a,
'high_item_b'=>$high_item_b,
'high_item_c'=>$high_item_c,
'high_item_d'=>$high_item_d,
'low_item_a'=>$low_item_a,
'low_item_b'=>$low_item_b,
'low_item_c'=>$low_item_c,
'high_item_a_wtd' => $high_item_a_wtd,
'high_item_b_wtd' => $high_item_b_wtd,
'high_item_c_wtd' => $high_item_c_wtd,
'high_item_d_wtd' => $high_item_d_wtd,
'low_item_a_wtd' => $low_item_a_wtd,
'low_item_b_wtd' => $low_item_b_wtd,
'low_item_c_wtd' => $low_item_c_wtd,
'food_cost_weekly_metrics'=>$food_cost_weekly_metrics,
'food_cost_weekly_metrics_true_gap'=>$food_cost_weekly_metrics_true_gap,
'gap_contribution'=>$gap_contribution,
'labor_weekly'=>$labor_weekly,
'operation_kpis_weekly'=>$operation_kpis_weekly,
'header_reference' => $header_reference
))->setPaper('a4','portrait');
return $pdf->stream('mis_report_pdf.pdf');
Ошибка: