This topic is locked
[SOLVED]

 possible bug found

6/16/2008 6:19:55 AM
PHPRunner General questions
T
thesofa author

Hi, I keep getting this error from my listing page

PHP error happened
Technical information

Error type 256

Error description Smarty error: [in pupils_list.htm line 191]: syntax error: unclosed tag \{if} (opened line 21). (Smarty_Compiler.class5.php, line 317)

URL intranet/staff/rep2/pupils_list.php?mastertable=staff&masterkey1=7A

Error file E:\wwwroot\Intranet\staff\rep2\libs\Smarty.class5.php

Error line 1099

SQL query SELECT concat(Surname, ', ', Forename) AS Pupil, Reg, ID_pup, Intake, Gender, cont, att, beh, com, more_com, printed FROM pupils where (pupils.printed IS NULL = True AND pupils.more_com IS NOT NULL ) and (Reg='7A')


when i LOOK AT THE line mentioned, line 21 it reads thus

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<HTML><HEAD><TITLE>pupils</TITLE>

<META http-equiv=Content-Type content="text/html; charset=windows-1252"><LINK

href="include/style.css" type=text/css rel=stylesheet>

<META content="MSHTML 6.00.2900.3268" name=GENERATOR></HEAD>

<BODY bgColor=white topMargin=5 {$onload}>{$includes}{include_if_exists file="include/header.php"}

<FORM name=frmSearch action=pupils_list.php method=get><input type="Hidden" name="a" value="search"><input type="Hidden" name="value" value="1"><input type="Hidden" name="SearchFor" value=""><input type="Hidden" name="SearchOption" value=""><input type="Hidden" name="SearchField" value=""></FORM>

<TABLE cellSpacing=0 cellPadding=0 width="99%" align=center border=0>

<TBODY>

<TR>

<TD>{if $mastertable!=""}

<P align=center><A class=tablelinks href="{$mastertable_short}_list.php?a=return"><B>Back to Master

table</B></A></P>{/if}

<TABLE class=navigation cellSpacing=0 cellPadding=3 width="100%"

border=0><TBODY>

<TR>

<TD align=left><FONT style="FONT-FAMILY: Verdana, Arial">Logged

as</FONT>&nbsp;<B>{$userid}</B>&nbsp; <A

href="login.php?a=logout">Log out</A> &nbsp;&nbsp;&nbsp; <A

href="changepwd.php">Change password</A></TD>

<TD align=right>{if $rowsfound}{if $allow_export}&nbsp; {/if}&nbsp; {if $allow_export}&nbsp;

&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {/if}<!--language--></TD></TR></TBODY></TABLE><BR>


If I add an extra {/if} in the lst quoted line, after all the nbsp codes bur before the {/if} that is there, it seems to work fine, where do I alter the template to sort this?

J
Jane 6/17/2008

Hi,
what PHPRnner build, layout and style do you use in this project?

T
thesofa author 6/18/2008

Hi,

what PHPRnner build, layout and style do you use in this project?



build 379, layout paris color schema Rome

J
Jane 6/18/2008

I wasn't able to reproduce this error.

Please publish your project on Demo Account and send to support@xlinesoft.com a URL to your pages along with instructions on reproducing this error.

I'll find what's wrong with your project inspecting it at Demo account site.