phphtmlsmf-forum

SMF displays raw HTML and PHP on browser


I am new to SMF.

I just installed SMF on my website. I tried editing the index.template.php . After saving changes, it displays raw HTML and PHP on the browser. I tried fixing the prob by returning the the page back to the original state to no avail.

At the moment, everything is gibberish both frontend and backend.

Pls what do i do?


Solution

  • There should be at least an open tag at the top of the file (at the top of every .php file). Make sure you didn't remove this tag. Everything outside of a <?php is interpreted as normal text so if you have removed this it would explain your issue.