and your web site

Tip

Have you been given the option by your host to install CloudFlare Security on your WebSpace?

Are you now getting problems with javascripts not working, or some php pages not working correctly?

If the answer to the above questions is Yes, then it appears that the problem with your scripts not working or your php pages not working correctly may be down to CloudFlare.

While trying to solve the same issues for a friend on her site, it was identified that there was nothing wrong with the php code or javascript code as the same pages worked fine on other servers.

Further investigation revealed that something was affecting the headers being processed by the php engine. Some php code requires that the php pages code is the first thing processed by the php engine, and on looking at error logs on the server, the error was ‘cannot send header code on page xxx.php, header already sent’.

The obvious reasons for this were checked, code was correct and in the right place as the first line in the php page, the file had was not saved as utf-8 with BOM, so something else was affecting the page headers.

CloudFlare was switched off and everything started working fine again. It appears that CloudFlare may be adding it’s own headers to pages before they are processed by the php engine and that was what was causing the pages not to perform correctly.


* CloudFlare orange cloud logo is a trademark of CloudFlare, Inc and is acknowledged as such.

*