Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo

php code outputing at the top of the page [Fix]

Go to End



Community Member, 4 Posts

4 March 2008 at 3:18am

I have just been trying to upload my perfectly working site onto my web space. But i was getting outputing php code at the top of each page in the admin, site and db/build. after a day i have finally worked out what it is.

the naughty files were in the blog modual and ecommerce modual and it was down to the php short tags not being enabled on the server. these files start with <% instead of <%PHP after changing them it all work well. i also added this to my php.ini:

short_open_tag = On

to my sites php.ini file on the server.

Hope this helps anybody with the same problem.