• Resolved mltt

    (@mltt)


    These warnngs came up today, when trying to print a pdf – any idea how to fix it? It is not an issue of other plugins..

    Warning: Cannot modify header information – headers already sent by (output started at /www/htdocs/w00e3bfc/trinitymovie.de/wp-includes/post-template.php:51) in /www/htdocs/w00e3bfc/trinitymovie.de/wp-content/plugins/wp-mpdf/mpdf/mpdf.php on line 7447

    Warning: Cannot modify header information – headers already sent by (output started at /www/htdocs/w00e3bfc/trinitymovie.de/wp-includes/post-template.php:51) in /www/htdocs/w00e3bfc/trinitymovie.de/wp-content/plugins/wp-mpdf/mpdf/mpdf.php on line 1736
    mPDF error: Some data has already been output to browser, can’t send PDF file

    https://wordpress.org/plugins/wp-mpdf/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author fkrauthan

    (@fkrauthan)

    Do you use a custom template or the default template?

    It could be either the template or a different plugin that prints something out to the browser before the pdf plugin is finished. Please double check all your plugins and your template if you use a custom one.

    Thread Starter mltt

    (@mltt)

    ok – thanks I found it – it was caused by the custom template –
    for the footer setting the string changed – probably by the last update ?

    ‘C’ =>
    array (
    ‘content’ => get_permalink(). the_title(),
    ….

    in

    ‘C’ =>
    array (
    ‘content’ => ‘- {PAGENO} / {nb} -‘,
    …….

    – working fine again

    Plugin Author fkrauthan

    (@fkrauthan)

    Hmm the templates haven’t been updated for a while but maybe the wordpress APIs. E.g. one of the methods instead of returning a string directly printing out the value which could have caused that issue.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘warning – headers already sent’ is closed to new replies.