I’m getting an odd error with DOMPDF.
« MODx Parse Error »
MODx encountered the following error while attempting to parse the requested resource:
« PHP Parse Error »
PHP error debug
Error: Cannot modify header information - headers already sent
Error type/ Nr.: Warning - 2
File: /var/www/vhosts/Nimja.com/httpdocs/manager/includes/document.parser.class.inc.php
Line: 466
Line 466 source: header(’Content-Type: ’ . $type . ’; charset=’ . $this->config[’modx_charset’]);
Parser timing
MySQL: 0.0020 s (3 Requests)
PHP: 0.6041 s
Total: 0.6061 s
The annoying thing is that I use another PDF generator (FPDF) that does the same thing, with less HTML support, but doesn’t give an error.
Is it possible, through a snippet, to disallow/disable MODx header sending?