News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Template Parse Error!

Started by chefjohnnie, April 22, 2009, 10:10:25 PM

Previous topic - Next topic

chefjohnnie

i got this error after installing a mod
Template Parse Error!
There was a problem loading the /Themes/default/Login.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 '}' in .../Themes/default/Login.template.php on line 161

152:
153:

   

   

   

<input type="hidden" name="hash_passwrd" value="" />
154:

   

   

</form>';}
155:
156:

   

// Do the focus thing...
157:

   

echo '
158:

   

   

<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
159:

   

   

   

document.forms.frmLogin.user.focus();
160:

   

   

// ]]></script>';

161: }

162:
163: // This is for maintenance mode.
164: function template_maintenance()
165: {

Gary

An opening bracket is probably missing somewhere. Can you attach the entire file?
Gary M. Gadsdon
Do NOT PM me unless I say so
War of the Simpsons
Bongo Comics Fan Forum
Youtube Let's Plays

^ YT is changing monetisation policy, help reach 1000 sub threshold.

RJGonzalez

no need look at line 1 57 thru 158

{

is missing

Gary

It is possible that the missing opening { can lie above line 152. Which is why I'd need to look at the entire file.
Gary M. Gadsdon
Do NOT PM me unless I say so
War of the Simpsons
Bongo Comics Fan Forum
Youtube Let's Plays

^ YT is changing monetisation policy, help reach 1000 sub threshold.

chefjohnnie

yes here is the file i have another login.template.php file saved on my computer will it work if i replace it

Gary

#5
That's the backup file that gets created when you're trying to install a mod, you should have one WITHOUT a tilda in it.

You can restore it with that if you want, but the mods functionality, wont be there.
Gary M. Gadsdon
Do NOT PM me unless I say so
War of the Simpsons
Bongo Comics Fan Forum
Youtube Let's Plays

^ YT is changing monetisation policy, help reach 1000 sub threshold.

greyknight17

chefjohnnie, is this issue resolved now? If not, please attach the Login.template.php file here (the one without the ~).

chefjohnnie

Quote from: greyknight17 on May 09, 2009, 12:55:19 PM
chefjohnnie, is this issue resolved now? If not, please attach the Login.template.php file here (the one without the ~).
sorry it took so long to get  back left town
here is the file

greyknight17

Did you modify that file? It looks different from what the error reported. That file should be fine.

Advertisement: