Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot modify header information - headers already sent by #28

Open
ZAJDAN opened this issue Nov 12, 2015 · 0 comments
Open

Cannot modify header information - headers already sent by #28

ZAJDAN opened this issue Nov 12, 2015 · 0 comments

Comments

@ZAJDAN
Copy link

ZAJDAN commented Nov 12, 2015

Hello
I insert QR code into my html which I render via phpwkhtlto pdf
The PDF is not rendered and browser just show me QR code and on the page is a few errors.

<b>Warning</b>:  Cannot modify header information - headers already sent by (output started at /mnt/databox/www/myweb/pdf/phpqrcode-master/qrvect.php:147) in <b>/mnt/databox/www/myweb/pdf/wkhtmltopdf/mikehaertl/php-tmpfile/src/File.php</b> on line <b>64</b><br />
<br />

page from where it is started:

  <?php
    ini_set("memory_limit", "128M");
    ini_set('display_errors', '1');
    error_reporting(E_ALL);

    require __DIR__ . '/wkhtmltopdf/autoload.php';
    require_once ('phpqrcode-master/qrlib.php');
    use mikehaertl\wkhtmlto\Pdf;

$svg_QR_Code = QRcode::svg('PHP QR Code :)');


    $pdf = new Pdf;
    $pdf->addPage('

    <html>
    <head>
    </head>
     <body>
     <div id="qr-picture">' .$svg_QR_Code. '  </div>
    </body>
    </html>
');

thank You for any help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant