Template Parse Error!

Started by ViewFromTheBoundary, November 26, 2013, 03:52:40 PM

Previous topic - Next topic

ViewFromTheBoundary

I was making a back up of my site as I'm planning on moving to a new domain, in the process of all this when going back to my site I encountered this issue:

QuoteThere was a problem loading the /Themes/default/index.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.

Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in .../Themes/default/index.template.php on line 85

76:
77: // The main sub template above the content.
78: function template_html_above()
79: {
80:    global $context, $settings, $options, $scripturl, $txt, $modSettings;
81:
82:    // Show right to left and the character set for ease of translating.
83:    echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
84: <html xmlns="http://www.w3.org/1999/xhtml"';, $context['right_to_left'] ? ' dir="rtl"' : '', '>

85: <head> echo ' <link rel="shortcut icon" href="favicon.ico" />';

86:
87:    // The ?fin20 part of this link is just here to make sure browsers don't cache it wrongly.
88:    echo '
89:    <link rel="stylesheet" type="text/css" href="', $settings['theme_url'], '/css/index', $context['theme_variant'], '.css?fin20" />';

Thanks,

Kindred

looks like someone badly pasted code


echo ' <link rel="shortcut icon" href="favicon.ico" />';
is within another echo...

so either get ride of the echo ' in front of that or add a '; after the opening head tag...
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

kat

I'd suggest that you remove this, after the <head> tag:

echo ' <link rel="shortcut icon" href="favicon.ico" />';

You don't need any code, for a favicon to show. If it exists, in the root, browsers will find it. :)

:P @ Kindred, again. ;)

Advertisement: