News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Template Parse Error

Started by netmatrix, June 20, 2009, 02:18:47 AM

Previous topic - Next topic

netmatrix

I just upgraded my forum to the 2.0 RC1-1 and I seem to be able to access all the pages except the admin control panel.  When I click on the admin link I get this error that shows on my page:

       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: {
   

I have no idea what this is, let alone how to fix it.  This is the first time I've seen this type of error page.  I upgraded this through CuteFTP.  I also put the page in maintenance mode, and went to the link to upgrade the page.  Please help me with this problem I'm having right now.  Thank you,NetMatrix

P.S.  If you are in need of any other information please let me know just in case I left out other information that would be needed to help fix this problem.  Thank you once again.
[/]
(whoznext.net) WhoZ NeXt Gaming Clan

JBlaze

Can you attach your Login.template.php?

It will make it easier to spot a parse error when I can see the whole file.
Jason Clemons
Former Team Member 2009 - 2012

netmatrix

here ya go thank you for looking at this for me.  I'm still lost. lol
(whoznext.net) WhoZ NeXt Gaming Clan

JBlaze

/Themes/default/Login.template.php
Code (find) Select
<input type="hidden" name="hash_passwrd" value="" />
</form>';}

// Do the focus thing...
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
document.forms.frmLogin.user.focus();
// ]]></script>';
}

Code (replace) Select
<input type="hidden" name="hash_passwrd" value="" />
</form>';

// Do the focus thing...
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
document.forms.frmLogin.user.focus();
// ]]></script>';
}


OR

Download attached copy and upload it back to your server, overwriting the old one.
Jason Clemons
Former Team Member 2009 - 2012

netmatrix

Thank you it is now working.  I'm still new to PHP and everything, but it's all a learning experience.


I have no idea how to mark this as fixed. lol ok I figured it out.
(whoznext.net) WhoZ NeXt Gaming Clan

Advertisement: