Home Forums Support Error when exporting report to PDF

This topic contains 1 reply, has 2 voices, and was last updated by  Hillel Coren 2 months, 3 weeks ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #19716

    Titanfail
    Participant

    Trying to export a report. Works fine with CSV or XLSX, but I get the “Oops!” page when specifying PDF. Happens regardless of report type.

    laravel-error.log:
    [2019-02-27 23:07:54] production.ERROR: ***ErrorException*** [0] : /var/www/ninja/vendor/dompdf/dompdf/include/text_frame_reflower.cls.php [Line 376] => Function create_function() is deprecated {"context":"PHP","user_id":1,"account_id":1,"user_name":"<USERNAME>","method":"POST","user_agent":"Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36","locale":"en","ip":"<IP_ADDR>","count":1,"is_console":"no","is_api":"no","db_server":"mysql","url":"reports"} []

    Invoice Ninja 4.5.10
    Ubuntu 18.04
    PHP 7.2.15
    PhantomJS 2.1.1

    While on the subject of reports, is there a way to switch from lines to bars on the graphs? I know how to do it with the dashboard, but not sure where the relevant code is for reports.

    #19718

    Hillel Coren
    Keymaster

    We’re going to be removing the PDF export feature in our next release, the library we’re using isn’t working correctly with all version of PHP. Once the underlying problem is fixed we’ll add the feature back.

    https://github.com/Maatwebsite/Laravel-Excel/issues/758

    The reports code is here:

    resources/views/reports/report_builder.blade.php

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

Posted in: