Foren / Cotonti / Support / Wasup with my polls?

minoation
#1 19. Juli 2009, 08:09
When I click veiw all polls at the home page,it takes me to a page that says:
Fatal error: Uncaught exception 'Exception' with message 'Block POLL_VIEW_VOTED is not closed correctly in skins/sed-dark/polls.tpl' in /home/a5290112/public_html/system/xtemplate.php:171 Stack trace: #0 /home/a5290112/public_html/system/xtemplate.php(39): XTemplate->restart('skins/sed-dark/...') #1 /home/a5290112/public_html/system/core/polls/polls.inc.php(62): XTemplate->__construct('skins/sed-dark/...') #2 /home/a5290112/public_html/polls.php(26): require_once('/home/a5290112/...') #3 {main} thrown in /home/a5290112/public_html/system/xtemplate.php on line 171
Awesome!
Triton
#2 19. Juli 2009, 08:14
Make sure your BEGIN tags in polls.tpl are closed. Here is a sample:
<!-- BEGIN: POLL_VIEW_VOTED -->
Your code here
<!-- END: POLL_VIEW_VOTED -->

Make sure you have a <!-- END: POLL_VIEW_VOTED --> in your polls.tpl.
minoation
#3 19. Juli 2009, 09:20
I edited it and it has the same message.
Awesome!
Dr2005alex
#4 19. Juli 2009, 13:21
There are small nuances now! Previously, the system is not paying attention to extra spaces or the lack of them!
In this case, you need to check for double the space!

For example like this right:


<!-- BEGIN: POLL_VIEW_VOTED -->
Your code here
<!-- END: POLL_VIEW_VOTED -->

But both will not work:
<!-- BEGIN:POLL_VIEW_VOTED -->
Your code here
<!-- END:POLL_VIEW_VOTED -->

<!--  BEGIN: POLL_VIEW_VOTED  -->
Your code here
<!--  END: POLL_VIEW_VOTED  -->
WebKaa.ru - Cotonti Relax