09-11-2007, 11:43 PM
For some reason, after making a minor edit in the user_view.php file, I am getting the following error message when trying to load the page after logging in:
Code:
Fatal error: Smarty error: [in ../interface/user_view.php line 61]: syntax error: unrecognized tag: $created|date_format:"%A, %B %e, %Y - %H:%M:%S" (Smarty_Compiler.class.php, line 439) in G:\xampp\htdocs\webs\kboy2\php_mm\libs\Smarty.class.php on line 1095
Here is the part of the file with the offending statement.
Code:
<form action="{$SCRIPT_NAME}" method="post">
<input type="hidden" name="_p" value="_edit_user" />
<input type="hidden" name="num" value="{$num}" />
<fieldset>
<legend>Account Profile </legend>
<table width="100%" cellpadding="3" cellspacing="3" class="fixed12pt">
<tr>
<td align="center" colspan="2"> </td>
</tr>
<tr>
<td colspan="2" align="center" bgcolor="#EEEEEE">
<a href="{$SCRIPT_NAME}">View Account</a> |
<a href="{$SCRIPT_NAME}?edit_account=1">Edit Account</a> |
<a href="{$SCRIPT_NAME}?unsubscribe=1">Cancel Account</a> |
<a href="{$SCRIPT_NAME}?logoff=1">Log Off</a><br /></td>
</tr>
<tr>
<td valign="top"> </td>
<td valign="top"> </td>
</tr>
<tr>
<td width="120" valign="top">Account Created</td>
<td valign="top"> {$created|date_format:"%A, %B %e, %Y - %H:%M:%S"} </td>
</tr>
<tr>
<td valign="top">Last Modified</td>
<td valign="top"> {$modified|date_format:"%A, %B %e, %Y - %H:%M:%S"} </td>
</tr>
<tr>
<td valign="top">Account Expires</td>
<td valign="top"> {if ($expires == "0000-00-00") }
No Expiration
{else}
{$expires|date_format:"%B %e, %Y"} {/if} </td>
</tr>
Any ideas? I don't recall making any edits to that code.