General Community > Scripting Help

Forum glitches out when anyone tries to post.

<< < (4/4)

MrPhil:
When someone attempts to view a post, the PHP code from Display.template.php is being shown. This usually means that somehow you lost the opening <?php. The beginning of the file should look like this:

--- Code: ---<?php
/**
 * Simple Machines Forum (SMF)
 *
 * @package SMF
 * @author Simple Machines
 * @copyright 2011 Simple Machines
 * @license http://www.simplemachines.org/about/smf/license.php BSD
 *
 * @version 2.0
 */

function template_main()
--- End code ---

It looks like <?php through */ are missing in your copy. Check if you were hacked, and the <?php disappeared in the process.

Navigation

[0] Message Index

[*] Previous page

Go to full version