Author Topic: Fatal error: vlibTemplate Error: Parse error  (Read 793 times)

0 Members and 1 Guest are viewing this topic.

shadowman

  • Guest
Fatal error: vlibTemplate Error: Parse error
on: Mon, 17. January 2005 - 23:01:39
ich habe ein längeres verschachteltes script, das die ausgabe mit dem vlib template handelt.
jedoch erhalte ich nun diese fehlermeldung keine weiteren infos, ausser: To debug this file, use vlibTemplateDebug instead of vlibTemplate in the class instantiation(i.e. new vlibTemplateDebug). in e:broxx-com.downloadcgi-bintemplatevlibTemplateerror.php on line 85

dann habe ich das ganze nach anleitung mit: tmpl = new vlibTemplateDebug(templates/upgrade.html); initialisiert, was mir aber auch keine detailierte fehlermeldung bringt.

was könnte mir denn dabei helfen den fehler zu finden?

shadowman

  • Guest
Fatal error: vlibTemplate Error: Parse error
Reply #1 on: Tue, 18. January 2005 - 01:09:59
Code: [Select]
html
head
tmpl_if name=upgrade_done
     meta http-equiv=refresh content=0; URL=login.php
     /head
     body
     /body
     /html
tmpl_else -- tmpl_if name=upgrade_done --
     titletmpl_var name=title/title
     /head
     body
     table border=1
          tr
          tmpl_if name=upgrade
               tdAufrüsten von/td
               tdAufrüsten zu/td
               tdDauer/td
          tmpl_else -- tmpl_if name=upgrade --
               tdAufrüsten von/td
               tdAufrüsten zu/td
               tdKosten/td
               tdKaufen/td
          /tmpl_if -- tmpl_if name=upgrade --
          /tr
          tmpl_if name=upgrade2
               tr
               tdtmpl_var name=upgrade_from_name/td
               tdtmpl_var name=upgrade_to_name/td
               tdtmpl_var name=upgrade_time/td
               /tr
          tmpl_else -- tmpl_if name=upgrade2 --
               tmpl_loop name=upgrade_loop -- loop auf --
                    tr
                    tdtmpl_var name=component_upgrade_from_name/td
                    tdtmpl_var name=component_upgrade_to_name/td
                    tdtmpl_var name=component_upgrade_cost/td
                    tmpl_if name=enough_money
                         td
                         form method=post action=upgrade.php
                         input type=hidden name=mode value=upgrade
                         input type=hidden name=id value=tmpl_var name=component_upgrade_to_id
                         input type=submit value=Kaufen
                         /form
                         /td
                    tmpl_else -- tmpl_if name=enough_money --
                         tdZu Wenig Geld/td
                    /tmpl_if -- tmpl_if name=enough_money --
                    /tr
               /tmpl_loop -- tmpl_loop name=upgrade_loop --
          /tmpl_if -- tmpl_if name=upgrade2 --
     /table
     /body
     /html
/tmpl_if -- if zuende tmpl_if name=upgrade_done --

Ich habe nun die fehlermeldung erhalten. angeblich ist etwas mit der tag setzung in diesem script falsch, allerdings finde ich keinen fehler.
folgende fehlermeldungen kamen:
Quote
Error: tmpl_endloop   The following end loop tag was found as a closing tag to a tmpl_if:</tmpl_loop>, whilst this may not cause an error, it is incorrect vlibTemplate syntax (this maybe because of previous errors).  Line: 50, in file: e:broxx-com.downloadbrowsergametemplatesupgrade.html   
Error: tmpl_endif   The following end if tag was found without its opening tag (this maybe because of previous errors): </tmpl_if>  Line: 51, in file: e:broxx-com.downloadbrowsergametemplatesupgrade.html   
Error: tmpl_if   The following tmpl_if tag was found without its closing tag (this maybe because of previous errors): <tmpl_if name="upgrade_done">  Line: 3, in file: e:broxx-com.downloadbrowsergametemplatesupgrade.html   
Error: tmpl_if   The following tmpl_if tag was found without its closing tag (this maybe because of previous errors): <tmpl_if name="upgrade_done">  Line: 9, in file: e:broxx-com.downloadbrowsergametemplatesupgrade.html   
Error: tmpl_if   The following tmpl_if tag was found without its closing tag (this maybe because of previous errors): <tmpl_if name="upgrade">  Line: 15, in file: e:broxx-com.downloadbrowsergametemplatesupgrade.html   
Error: tmpl_if   The following tmpl_if tag was found without its closing tag (this maybe because of previous errors): <tmpl_if name="upgrade">  Line: 24, in file: e:broxx-com.downloadbrowsergametemplatesupgrade.html   
Error: tmpl_if   The following tmpl_if tag was found without its closing tag (this maybe because of previous errors): <tmpl_if name="upgrade2">  Line: 26, in file: e:broxx-com.downloadbrowsergametemplatesupgrade.html   
Error: tmpl_if   The following tmpl_if tag was found without its closing tag (this maybe because of previous errors): <tmpl_if name="upgrade2">  Line: 32, in file: e:broxx-com.downloadbrowsergametemplatesupgrade.html   
Error: tmpl_loop   The following tmpl_loop tag was found without its closing tag (this maybe because of previous errors): <tmpl_loop name="upgrade_loop">  Line: 33, in file: e:broxx-com.downloadbrowsergametemplatesupgrade.html   
Error: tmpl_loop   The following tmpl_loop tag was found without its closing tag (this maybe because of previous errors): -- loop auf --  Line: 33, in file: e:broxx-com.downloadbrowsergametemplatesupgrade.html   
Error: tmpl_if   The following tmpl_if tag was found without its closing tag (this maybe because of previous errors): <tmpl_if name="enough_money">  Line: 38, in file: e:broxx-com.downloadbrowsergametemplatesupgrade.html   
Error: tmpl_if   The following tmpl_if tag was found without its closing tag (this maybe because of previous errors): <tmpl_if name="enough_money">  Line: 48, in file: e:broxx-com.downloadbrowsergametemplatesupgrade.html   
Error: tmpl_loop   The following tmpl_loop tag was found without its closing tag (this maybe because of previous errors): <tmpl_loop name="upgrade_loop">  Line: 50, in file: e:broxx-com.downloadbrowsergametemplatesupgrade.html   
Error: tmpl_if   The following tmpl_if tag was found without its closing tag (this maybe because of previous errors): <tmpl_if name="upgrade_done">  Line: 55, in file: e:broxx-com.downloadbrowsergametemplatesupgrade.html

ich habe das file schon so gut verschachtelt wie nur möglich um zu erkennen ob jeder tag auch wieder geschlossen wird, jedoch ohne erfolg.

weiss jemand weiter?

Guest

  • Guest
Fatal error: vlibTemplate Error: Parse error
Reply #2 on: Tue, 18. January 2005 - 01:17:21
sorry, problem gefunden