Hello Community,
I just received a support request regarding a broken tracking image of Minicounter_XH. This image is dynamically generated by PHP. The cause was a BOM in one of the PHP files. Since CMSimple_XH 1.5.4 a respective error is shown, when there is a BOM in any of the PHP files, but not, if output_buffering is greater or equal than 3, in which case the BOM will usually go unnoticed (it has nothing to do with the PHP version, as I mistakenly stated in the other thread). However, a BOM will break any dynamically generated images and other binary files (e.g. downloads).
I suggest that we add a system check regarding the BOM. This will not be able to point out the very file that has a BOM, but at least it would clearly mark the issue.
Christoph
Add System Check for BOM
Add System Check for BOM
Last edited by cmb on Sat Apr 19, 2014 2:15 pm, edited 1 time in total.
Reason: changed Subject
Reason: changed Subject
Christoph M. Becker – Plugins for CMSimple_XH
Re: Add System Check for BOM
Implementation note: it should be sufficient to scan ob_get_contents() for BOMs.
Christoph M. Becker – Plugins for CMSimple_XH