• Hello,

    without changing anything, now I get an error when I try to create a pdf.

    The error says:
    Fatal error: Uncaught Mpdf\MpdfException: Data has already been sent to output, unable to output PDF file in /www/htdocs/.../suedostasien.net/wp-content/plugins/pdf-print-pro/vendor/mpdf/mpdf/src/Mpdf.php:9545 Stack trace: #0 /www/htdocs/.../suedostasien.net/wp-content/plugins/pdf-print-pro/pdf-print-pro.php(1854): Mpdf\Mpdf->Output('suedostasien-na...', 'D') #1 /www/htdocs/.../suedostasien.net/wp-includes/class-wp-hook.php(292): pdfprnt_print(Object(WP)) #2 /www/htdocs/.../suedostasien.net/wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters(NULL, Array) #3 /www/htdocs/.../suedostasien.net/wp-includes/plugin.php(551): WP_Hook->do_action(Array) #4 /www/htdocs/.../suedostasien.net/wp-includes/class-wp.php(763): do_action_ref_array('wp', Array) #5 /www/htdocs/.../suedostasien.net/wp-includes/functions.php(1291): WP->main('') #6 /www/htdocs/.../suedostasien.net/wp-blog-header.php(16): wp() #7 /www/htdocs/.../suedostasien.net/index.php(17): require('/www/htdocs/w01...') #8 {m in /www/htdocs/.../suedostasien.net/wp-content/plugins/pdf-print-pro/vendor/mpdf/mpdf/src/Mpdf.php on line 9545

    I use WordPress 5.7.2, PHP 7.3, PDF & Print 2.2.8. When I change to PHP 7.4 the error message disappears, but no PDF is generated.

    I also tried this:
    1) Go to PDF & Print settings page;
    2) Open the “Misc” tab;
    3) Click the “Upgrade” button;
    4) Test the PDF doc creation.

    Do you have any ideas to solve this?

    Regards,
    Jürgen

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support andrewsupport

    (@andrewsupport)

    Hi,

    Perhaps WordPress lacks file permissions. With your FTP program or through Сpanel go to the folder of your site and check the rights to the wp-content, uploads, plugins, pdf-print folders – 755 rights must be set, and 644 for all files in the pdf-print folder.

    Plugin Support andrewsupport

    (@andrewsupport)

    Hi,

    Since there is no reply from you, we consider this topic as resolved. We hope you’ve found the solution. If you have any questions, please feel free to contact us via our Help Center – https://support.bestwebsoft.com/.

    Thread Starter koenigj

    (@koenigj)

    I am very sorry to reopen this ticket, I took some time to go on with the research. Unfortunately, it is not an issue of file permissions.

    It is an issue of a shortcode, I defined in function.php. The shortcode uses a function from the plugin “Co-Authors Plus” an is quite simple:

    function myshortcode_coauthor( ){
       return coauthors_links();
    }
    add_shortcode( 'post_coauthors', 'myshortcode_coauthor' );

    I also tried to return the_title() in this shortcode, this gives the same error.

    The shortcode [post-coauthors] is used in PDF&Print -> Settings -> Custom fields -> Data Before Content
    In the same field some other shortcodes are used like [su_post] and the self-generated code [post_category], which is also set up in function.php. Both work fine.

    [post-coauthors] also works fine in post and page content.

    Does this lead to a solution?

    Thank you for your patience,
    regards
    Jürgen

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Uncaught Mpdf\MpdfException’ is closed to new replies.