1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Parse error: syntax error, phpbb3 forum index

Discussion in 'PHP' started by bsb22, May 21, 2015.

  1. #1
    I'm testing a phpbb3 forum with custom themes/templates and modifications, and I'm getting this error on my home page:

    You can see it for yourself here:

    http://unissons.zz.mu/index.php


    This is the forumlist_body.html file in my template folder:

    <!-- BEGIN forumrow -->
       <!-- IF (forumrow.S_IS_CAT and not forumrow.S_FIRST_ROW) or
    
    forumrow.S_NO_CAT  -->
           </ul>
    
           {$CA_BLOCK2_END}
         </div>
       <!-- ENDIF -->
    
       <!-- IF forumrow.S_IS_CAT or forumrow.S_FIRST_ROW  or
    
    forumrow.S_NO_CAT  -->
         <div class="forabg" id="forabg-{forumrow.FORUM_ID}">
           {$CA_BLOCK2_START}
               <!-- IF forumrow.S_IS_CAT --><h2><a
    
    href="{forumrow.U_VIEWFORUM}">{forumrow.FORUM_NAME}</a></h2><!-- ELSE -->
    
    {L_FORUM}<!-- ENDIF -->
                {$CA_BLOCK2_START2}           
           <ul class="topiclist">
             <li class="header">
               <dl class="<!-- IF forumrow.S_THANKS_FORUM_REPUT_VIEW_COLUMN and not S_IS_BOT -->thanks<!-- ELSE -->icon<!-- ENDIF -->" id="expand-
    
    {forumrow.FORUM_ID}">
                 <dt class="forum">
    
    {L_FORUM}</dt>
                 <dd class="topics">
    
    {L_TOPICS}</dd>
                 <dd class="posts">
    
    {L_POSTS}</dd>
                 <dd class="lastpost"><span>
    
    {L_LAST_POST}</span></dd>
               </dl>
             </li>
           </ul>
           <ul class="topiclist forums">
       <!-- ENDIF -->
    
       <!-- IF not forumrow.S_IS_CAT -->
         <li class="row<!-- IF forumrow.S_UNREAD_FORUM --> row-new<!--
    
    ENDIF -->" id="forumrow-{forumrow.FORUM_ID}">
           <dl class="icon" style="background-image: url
    
    ({forumrow.FORUM_FOLDER_IMG_SRC}); background-repeat: no-repeat;">
             <dt>
                        <!-- IF S_ENABLE_FEEDS and forumrow.S_FEED_ENABLED --><a
    
    class="feed-icon-forum" title="{L_FEED} - {forumrow.FORUM_NAME}" href="{U_FEED}?f=
    
    {forumrow.FORUM_ID}"><img src="{T_THEME_PATH}/images/feed.gif" alt="{L_FEED} -
    
    {forumrow.FORUM_NAME}" /></a><!-- ENDIF -->
               <!-- IF forumrow.FORUM_IMAGE --
    
    ><span class="forum-image">{forumrow.FORUM_IMAGE}</span><span class="forum-
    
    image-div"><!-- ENDIF -->
               <a href="{forumrow.U_VIEWFORUM}"
    
    class="forumtitle">{forumrow.FORUM_NAME}</a><br />
               {forumrow.FORUM_DESC}
    
               <!-- BEGIN reput -->
               <!-- IF forumrow.reput.S_THANKS_FORUM_REPUT_VIEW and forumrow.reput.FORUM_REPUT and not S_IS_BOT and not forumrow.reput.S_THANKS_FORUM_REPUT_VIEW_COLUMN -->
               <span style="display: block;">
                 <!-- IF forumrow.reput.S_THANKS_REPUT_GRAPHIC -->
                 <span style="display: block; float: left; width: {forumrow.reput.THANKS_REPUT_GRAPHIC_WIDTH}; height: {forumrow.reput.THANKS_REPUT_HEIGHT}; background: url({forumrow.reput.THANKS_REPUT_IMAGE_BACK}); background-repeat: repeat-x;"><span style="display: block; height: {forumrow.reput.THANKS_REPUT_HEIGHT}; width: {forumrow.reput.FORUM_REPUT}; background: url({forumrow.reput.THANKS_REPUT_IMAGE}); background-repeat: repeat-x;"></span></span>&nbsp;
                 <!-- ENDIF -->
               {L_REPUT}:&nbsp;{forumrow.reput.FORUM_REPUT}   
               </span>
               <!-- ENDIF -->
               <!-- END reput -->
               <!-- IF forumrow.MODERATORS -->
                 <br /><strong>
    
    {forumrow.L_MODERATOR_STR}:</strong> {forumrow.MODERATORS}
               <!-- ENDIF -->
               <!-- IF forumrow.SUBFORUMS and
    
    forumrow.S_LIST_SUBFORUMS --><br /><strong>{forumrow.L_SUBFORUM_STR}
    
    </strong> {forumrow.SUBFORUMS}<!-- ENDIF -->
               <!-- IF forumrow.FORUM_IMAGE --
    
    ></span><!-- ENDIF -->
             </dt>
             <!-- IF forumrow.CLICKS -->
               <dd class="redirect"><span>
    
    {L_REDIRECTS}: {forumrow.CLICKS}</span></dd>
             <!-- ELSEIF not forumrow.S_IS_LINK -->
               <dd class="topics">{forumrow.TOPICS}
    
    <dfn>{L_TOPICS}</dfn></dd>
               <dd class="posts">{forumrow.POSTS}
    
    <dfn>{L_POSTS}</dfn></dd>
               <!-- BEGIN reput -->
                 <!-- IF forumrow.reput.S_THANKS_FORUM_REPUT_VIEW and not S_IS_BOT  and forumrow.reput.S_THANKS_FORUM_REPUT_VIEW_COLUMN -->     
                 <dd style="display: block; width: {forumrow.reput.THANKS_REPUT_GRAPHIC_WIDTH};">
                   <!-- IF  forumrow.reput.FORUM_REPUT -->   
                   <span style="display: block;">{forumrow.reput.FORUM_REPUT}
                     <!-- IF forumrow.reput.S_THANKS_REPUT_GRAPHIC -->
                     <span style="display: block; width: {forumrow.reput.THANKS_REPUT_GRAPHIC_WIDTH}; height: {forumrow.reput.THANKS_REPUT_HEIGHT}; background: url({forumrow.reput.THANKS_REPUT_IMAGE_BACK}); background-repeat: repeat-x;"><span style="display: block; height: {forumrow.reput.THANKS_REPUT_HEIGHT}; width: {forumrow.reput.FORUM_REPUT}; background: url({forumrow.reput.THANKS_REPUT_IMAGE}); background-repeat: repeat-x;">&nbsp;</span></span>
                     <!-- ENDIF -->
                   </span><dfn>{L_REPUT}</dfn>   
                   <!-- ENDIF -->
                 </dd>   
                 <!-- ENDIF -->
               <!-- END reput -->             
               <dd class="lastpost<!-- IF forumrow.S_THANKS_FORUM_REPUT_VIEW_COLUMN and not S_IS_BOT --> lastpostthanks<!-- ENDIF -->"><span>
                 <!-- IF
    
    forumrow.U_UNAPPROVED_TOPICS --><a href="{forumrow.U_UNAPPROVED_TOPICS}">
    
    {UNAPPROVED_IMG}</a><!-- ENDIF -->
                 <!-- IF
    
    forumrow.LAST_POST_TIME --><dfn>{L_LAST_POST}</dfn> {L_POST_BY_AUTHOR}
    
    {forumrow.LAST_POSTER_FULL}
                 <!-- IF not S_IS_BOT --><a
    
    href="{forumrow.U_LAST_POST}">{LAST_POST_IMG}</a> <!-- ENDIF --><br />
    
    {forumrow.LAST_POST_TIME}<!-- ELSE -->{L_NO_POSTS}<br />&nbsp;<!-- ENDIF --
    
    ></span>
               </dd>
                    <!-- ELSE -->
                        <dd>&nbsp;</dd>
             <!-- ENDIF -->
           </dl>
         </li>
       <!-- ENDIF -->
    
       <!-- IF forumrow.S_LAST_ROW -->
           </ul>
    
           {$CA_BLOCK2_END}
         </div>
       <!-- ENDIF -->
    
    <!-- BEGINELSE -->
       <div class="panel">
         {$CA_BLOCK_START}
         <strong>{L_NO_FORUMS}</strong>
         {$CA_BLOCK_END}
       </div>
    <!-- END forumrow -->
    
    <script type="text/javascript">
    // <![CDATA[
    var ca_mark_forums = '{U_MARK_FORUMS}';
    onload_functions[onload_functions.length] = 'ca_parse_forums();';
    // ]]>
    </script>
    Code (markup):

    I'm sure this is a simple problem... At least I hope it is. Thoughts?
     
    bsb22, May 21, 2015 IP
  2. PoPSiCLe

    PoPSiCLe Illustrious Member

    Messages:
    4,623
    Likes Received:
    725
    Best Answers:
    152
    Trophy Points:
    470
    #2
    Holy CRAP, phpbb hasn't gotten any better since last time I played with it. Makes WordPress look like the definition of well-constructed code.
    However, at a quick glance (on my phone) I can't really see any errors in the code you posted. However, the error might not actually be in that file. It depends on what is being included etc which will skew the line count somewhat.
     
    PoPSiCLe, May 22, 2015 IP
  3. bsb22

    bsb22 Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #3
    If the problem isn't in that file, is there any way I can figure out how the files may be combined with one another?

    Something else I don't understand is how the "forumlist_body.html" file becomes 'tpl_orbital_forumlist_body.html.php", which doesn't seem to exist as far as I can see. And definitely this directory does not appear for me on my site: /home/u753364033/public_html/cache/

    Does php create these things and combine coding files into single files in the cache?

    And one more question... Can I quickly browse all the other code files in my template folder without having to open them all individually and look for problems? Or can I look at the files that might be combined in the php?
     
    bsb22, May 22, 2015 IP
  4. PoPSiCLe

    PoPSiCLe Illustrious Member

    Messages:
    4,623
    Likes Received:
    725
    Best Answers:
    152
    Trophy Points:
    470
    #4
    It's adding the template name or something to the front of the file name, I'm guessing, and appending php, so as to parse it via the php parser - the /home/u.../public_html folder is probably your path to the root folder of your website.
    You can easily open all the template files in an editor, and search through all of them, but it will be very hard to search for your problem (unless you are an expert in regular expressions)
     
    PoPSiCLe, May 22, 2015 IP
  5. bsb22

    bsb22 Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #5
    Well I made some progress ....

    This cache directory does indeed exist, I just didn't notice it because the "root" it makes mention of is deeper than I'm allowed to see apparently.

    I found the file "tpl_orbital_forumlist_body.html.php", which is generated whenever I try to view the board index of the CA Orbital style. And it does have an out-of-place "}", which I can delete. There are two new problems: (1) whenever I clear the cache and this page is regenerated, it contains the same error; (2) if I remove this error manually from the cached page, there's another error of the same type, and so on, until the board finally loads but does not show any forums.

    This is the tpl_orbital_forumlist_body.html.php page as it's being generated:

    
    <?php if (!defined('IN_PHPBB')) exit; $_forumrow_count = (isset($this->_tpldata['forumrow'])) ? sizeof($this->_tpldata['forumrow']) : 0;if ($_forumrow_count) {for ($_forumrow_i = 0; $_forumrow_i < $_forumrow_count; ++$_forumrow_i){$_forumrow_val = &$this->_tpldata['forumrow'][$_forumrow_i]; ?>
    
       <!-- IF (forumrow.S_IS_CAT and not forumrow.S_FIRST_ROW) or
    
    forumrow.S_NO_CAT  -->
           </ul>
    
           <?php echo (isset($this->_tpldata['DEFINE']['.']['CA_BLOCK2_END'])) ? $this->_tpldata['DEFINE']['.']['CA_BLOCK2_END'] : ''; ?>
    
         </div>
       <?php } ?>
    
    
       <!-- IF forumrow.S_IS_CAT or forumrow.S_FIRST_ROW  or
    
    forumrow.S_NO_CAT  -->
         <div class="forabg" id="forabg-<?php echo $_forumrow_val['FORUM_ID']; ?>">
           <?php echo (isset($this->_tpldata['DEFINE']['.']['CA_BLOCK2_START'])) ? $this->_tpldata['DEFINE']['.']['CA_BLOCK2_START'] : ''; ?>
    
             <?php if ($_forumrow_val['S_IS_CAT']) {  ?><h2><a
    
    href="<?php echo $_forumrow_val['U_VIEWFORUM']; ?>"><?php echo $_forumrow_val['FORUM_NAME']; ?></a></h2><?php } else { ?>
    
    
    <?php echo ((isset($this->_rootref['L_FORUM'])) ? $this->_rootref['L_FORUM'] : ((isset($user->lang['FORUM'])) ? $user->lang['FORUM'] : '{ FORUM }')); } ?>
    
      <?php echo (isset($this->_tpldata['DEFINE']['.']['CA_BLOCK2_START2'])) ? $this->_tpldata['DEFINE']['.']['CA_BLOCK2_START2'] : ''; ?>        
           <ul class="topiclist">
             <li class="header">
               <dl class="<?php if ($_forumrow_val['S_THANKS_FORUM_REPUT_VIEW_COLUMN'] && ! $this->_rootref['S_IS_BOT']) {  ?>thanks<?php } else { ?>icon<?php } ?>" id="expand-
    
    <?php echo $_forumrow_val['FORUM_ID']; ?>">
                 <dt class="forum">
    
    <?php echo ((isset($this->_rootref['L_FORUM'])) ? $this->_rootref['L_FORUM'] : ((isset($user->lang['FORUM'])) ? $user->lang['FORUM'] : '{ FORUM }')); ?></dt>
                 <dd class="topics">
    
    <?php echo ((isset($this->_rootref['L_TOPICS'])) ? $this->_rootref['L_TOPICS'] : ((isset($user->lang['TOPICS'])) ? $user->lang['TOPICS'] : '{ TOPICS }')); ?></dd>
                 <dd class="posts">
    
    <?php echo ((isset($this->_rootref['L_POSTS'])) ? $this->_rootref['L_POSTS'] : ((isset($user->lang['POSTS'])) ? $user->lang['POSTS'] : '{ POSTS }')); ?></dd>
                 <dd class="lastpost"><span>
    
    <?php echo ((isset($this->_rootref['L_LAST_POST'])) ? $this->_rootref['L_LAST_POST'] : ((isset($user->lang['LAST_POST'])) ? $user->lang['LAST_POST'] : '{ LAST_POST }')); ?></span></dd>
               </dl>
             </li>
           </ul>
           <ul class="topiclist forums">
       <?php } if (! $_forumrow_val['S_IS_CAT']) {  ?>
    
         <li class="row<?php if ($_forumrow_val['S_UNREAD_FORUM']) {  ?> row-new<!--
    
    ENDIF -->" id="forumrow-<?php echo $_forumrow_val['FORUM_ID']; ?>">
           <dl class="icon" style="background-image: url
    
    (<?php echo $_forumrow_val['FORUM_FOLDER_IMG_SRC']; ?>); background-repeat: no-repeat;">
             <dt>
      <?php if ($this->_rootref['S_ENABLE_FEEDS'] && $_forumrow_val['S_FEED_ENABLED']) {  ?><a
    
    class="feed-icon-forum" title="<?php echo ((isset($this->_rootref['L_FEED'])) ? $this->_rootref['L_FEED'] : ((isset($user->lang['FEED'])) ? $user->lang['FEED'] : '{ FEED }')); ?> - <?php echo $_forumrow_val['FORUM_NAME']; ?>" href="<?php echo (isset($this->_rootref['U_FEED'])) ? $this->_rootref['U_FEED'] : ''; ?>?f=
    
    <?php echo $_forumrow_val['FORUM_ID']; ?>"><img src="<?php echo (isset($this->_rootref['T_THEME_PATH'])) ? $this->_rootref['T_THEME_PATH'] : ''; ?>/images/feed.gif" alt="<?php echo ((isset($this->_rootref['L_FEED'])) ? $this->_rootref['L_FEED'] : ((isset($user->lang['FEED'])) ? $user->lang['FEED'] : '{ FEED }')); ?> -
    
    <?php echo $_forumrow_val['FORUM_NAME']; ?>" /></a><?php } ?>
    
               <!-- IF forumrow.FORUM_IMAGE --
    
    ><span class="forum-image"><?php echo $_forumrow_val['FORUM_IMAGE']; ?></span><span class="forum-
    
    image-div"><?php } ?>
    
               <a href="<?php echo $_forumrow_val['U_VIEWFORUM']; ?>"
    
    class="forumtitle"><?php echo $_forumrow_val['FORUM_NAME']; ?></a><br />
               <?php echo $_forumrow_val['FORUM_DESC']; ?>
    
    
               <?php $_reput_count = (isset($_forumrow_val['reput'])) ? sizeof($_forumrow_val['reput']) : 0;if ($_reput_count) {for ($_reput_i = 0; $_reput_i < $_reput_count; ++$_reput_i){$_reput_val = &$_forumrow_val['reput'][$_reput_i]; if ($_reput_val['S_THANKS_FORUM_REPUT_VIEW'] && $_reput_val['FORUM_REPUT'] && ! $this->_rootref['S_IS_BOT'] && ! $_reput_val['S_THANKS_FORUM_REPUT_VIEW_COLUMN']) {  ?>
    
               <span style="display: block;">
                 <?php if ($_reput_val['S_THANKS_REPUT_GRAPHIC']) {  ?>
    
                 <span style="display: block; float: left; width: <?php echo $_reput_val['THANKS_REPUT_GRAPHIC_WIDTH']; ?>; height: <?php echo $_reput_val['THANKS_REPUT_HEIGHT']; ?>; background: url(<?php echo $_reput_val['THANKS_REPUT_IMAGE_BACK']; ?>); background-repeat: repeat-x;"><span style="display: block; height: <?php echo $_reput_val['THANKS_REPUT_HEIGHT']; ?>; width: <?php echo $_reput_val['FORUM_REPUT']; ?>; background: url(<?php echo $_reput_val['THANKS_REPUT_IMAGE']; ?>); background-repeat: repeat-x;"></span></span>&nbsp;
                 <?php } ?>
    
               <?php echo ((isset($this->_rootref['L_REPUT'])) ? $this->_rootref['L_REPUT'] : ((isset($user->lang['REPUT'])) ? $user->lang['REPUT'] : '{ REPUT }')); ?>:&nbsp;<?php echo $_reput_val['FORUM_REPUT']; ?>  
               </span>
               <?php } }} if ($_forumrow_val['MODERATORS']) {  ?>
    
                 <br /><strong>
    
    <?php echo $_forumrow_val['L_MODERATOR_STR']; ?>:</strong> <?php echo $_forumrow_val['MODERATORS']; ?>
    
               <?php } ?>
    
               <!-- IF forumrow.SUBFORUMS and
    
    forumrow.S_LIST_SUBFORUMS --><br /><strong><?php echo $_forumrow_val['L_SUBFORUM_STR']; ?>
    
    
    </strong> <?php echo $_forumrow_val['SUBFORUMS']; } ?>
    
               <!-- IF forumrow.FORUM_IMAGE --
    
    ></span><?php } ?>
    
             </dt>
             <?php if ($_forumrow_val['CLICKS']) {  ?>
    
               <dd class="redirect"><span>
    
    <?php echo ((isset($this->_rootref['L_REDIRECTS'])) ? $this->_rootref['L_REDIRECTS'] : ((isset($user->lang['REDIRECTS'])) ? $user->lang['REDIRECTS'] : '{ REDIRECTS }')); ?>: <?php echo $_forumrow_val['CLICKS']; ?></span></dd>
             <?php } else if (! $_forumrow_val['S_IS_LINK']) {  ?>
    
               <dd class="topics"><?php echo $_forumrow_val['TOPICS']; ?>
    
    <dfn><?php echo ((isset($this->_rootref['L_TOPICS'])) ? $this->_rootref['L_TOPICS'] : ((isset($user->lang['TOPICS'])) ? $user->lang['TOPICS'] : '{ TOPICS }')); ?></dfn></dd>
               <dd class="posts"><?php echo $_forumrow_val['POSTS']; ?>
    
    <dfn><?php echo ((isset($this->_rootref['L_POSTS'])) ? $this->_rootref['L_POSTS'] : ((isset($user->lang['POSTS'])) ? $user->lang['POSTS'] : '{ POSTS }')); ?></dfn></dd>
               <?php $_reput_count = (isset($_forumrow_val['reput'])) ? sizeof($_forumrow_val['reput']) : 0;if ($_reput_count) {for ($_reput_i = 0; $_reput_i < $_reput_count; ++$_reput_i){$_reput_val = &$_forumrow_val['reput'][$_reput_i]; if ($_reput_val['S_THANKS_FORUM_REPUT_VIEW'] && ! $this->_rootref['S_IS_BOT'] && $_reput_val['S_THANKS_FORUM_REPUT_VIEW_COLUMN']) {  ?>    
                 <dd style="display: block; width: <?php echo $_reput_val['THANKS_REPUT_GRAPHIC_WIDTH']; ?>;">
                   <?php if ($_reput_val['FORUM_REPUT']) {  ?>  
                   <span style="display: block;"><?php echo $_reput_val['FORUM_REPUT']; ?>
    
                     <?php if ($_reput_val['S_THANKS_REPUT_GRAPHIC']) {  ?>
    
                     <span style="display: block; width: <?php echo $_reput_val['THANKS_REPUT_GRAPHIC_WIDTH']; ?>; height: <?php echo $_reput_val['THANKS_REPUT_HEIGHT']; ?>; background: url(<?php echo $_reput_val['THANKS_REPUT_IMAGE_BACK']; ?>); background-repeat: repeat-x;"><span style="display: block; height: <?php echo $_reput_val['THANKS_REPUT_HEIGHT']; ?>; width: <?php echo $_reput_val['FORUM_REPUT']; ?>; background: url(<?php echo $_reput_val['THANKS_REPUT_IMAGE']; ?>); background-repeat: repeat-x;">&nbsp;</span></span>
                     <?php } ?>
    
                   </span><dfn><?php echo ((isset($this->_rootref['L_REPUT'])) ? $this->_rootref['L_REPUT'] : ((isset($user->lang['REPUT'])) ? $user->lang['REPUT'] : '{ REPUT }')); ?></dfn>  
                   <?php } ?>
    
                 </dd>  
                 <?php } }} ?>            
               <dd class="lastpost<?php if ($_forumrow_val['S_THANKS_FORUM_REPUT_VIEW_COLUMN'] && ! $this->_rootref['S_IS_BOT']) {  ?> lastpostthanks<?php } ?>"><span>
                 <!-- IF
    
    forumrow.U_UNAPPROVED_TOPICS --><a href="<?php echo $_forumrow_val['U_UNAPPROVED_TOPICS']; ?>">
    
    <?php echo (isset($this->_rootref['UNAPPROVED_IMG'])) ? $this->_rootref['UNAPPROVED_IMG'] : ''; ?></a><?php } ?>
    
                 <!-- IF
    
    forumrow.LAST_POST_TIME --><dfn><?php echo ((isset($this->_rootref['L_LAST_POST'])) ? $this->_rootref['L_LAST_POST'] : ((isset($user->lang['LAST_POST'])) ? $user->lang['LAST_POST'] : '{ LAST_POST }')); ?></dfn> <?php echo ((isset($this->_rootref['L_POST_BY_AUTHOR'])) ? $this->_rootref['L_POST_BY_AUTHOR'] : ((isset($user->lang['POST_BY_AUTHOR'])) ? $user->lang['POST_BY_AUTHOR'] : '{ POST_BY_AUTHOR }')); ?>
    
    <?php echo $_forumrow_val['LAST_POSTER_FULL']; ?>
    
                 <?php if (! $this->_rootref['S_IS_BOT']) {  ?><a
    
    href="<?php echo $_forumrow_val['U_LAST_POST']; ?>"><?php echo (isset($this->_rootref['LAST_POST_IMG'])) ? $this->_rootref['LAST_POST_IMG'] : ''; ?></a> <?php } ?><br />
    
    <?php echo $_forumrow_val['LAST_POST_TIME']; } else { echo ((isset($this->_rootref['L_NO_POSTS'])) ? $this->_rootref['L_NO_POSTS'] : ((isset($user->lang['NO_POSTS'])) ? $user->lang['NO_POSTS'] : '{ NO_POSTS }')); ?><br />&nbsp;<!-- ENDIF --
    
    ></span>
               </dd>
      <?php } else { ?>
    
      <dd>&nbsp;</dd>
             <?php } ?>
    
           </dl>
         </li>
       <?php } if ($_forumrow_val['S_LAST_ROW']) {  ?>
    
           </ul>
    
           <?php echo (isset($this->_tpldata['DEFINE']['.']['CA_BLOCK2_END'])) ? $this->_tpldata['DEFINE']['.']['CA_BLOCK2_END'] : ''; ?>
    
         </div>
       <?php } }} else { ?>
    
       <div class="panel">
         <?php echo (isset($this->_tpldata['DEFINE']['.']['CA_BLOCK_START'])) ? $this->_tpldata['DEFINE']['.']['CA_BLOCK_START'] : ''; ?>
    
         <strong><?php echo ((isset($this->_rootref['L_NO_FORUMS'])) ? $this->_rootref['L_NO_FORUMS'] : ((isset($user->lang['NO_FORUMS'])) ? $user->lang['NO_FORUMS'] : '{ NO_FORUMS }')); ?></strong>
         <?php echo (isset($this->_tpldata['DEFINE']['.']['CA_BLOCK_END'])) ? $this->_tpldata['DEFINE']['.']['CA_BLOCK_END'] : ''; ?>
    
       </div>
    <?php } ?>
    
    
    <script type="text/javascript">
    // <![CDATA[
    var ca_mark_forums = '<?php echo (isset($this->_rootref['U_MARK_FORUMS'])) ? $this->_rootref['U_MARK_FORUMS'] : ''; ?>';
    onload_functions[onload_functions.length] = 'ca_parse_forums();';
    // ]]>
    </script>
    
    Code (markup):

    You can see the extra "}" on line 105. There are other extra "}" symbols too. I don't know much about php but I'm guessing that this file is being generated by some other code automatically, and somewhere there is a bad code making it generate this extra crap. Am I wrong here?
     
    bsb22, May 22, 2015 IP
  6. PoPSiCLe

    PoPSiCLe Illustrious Member

    Messages:
    4,623
    Likes Received:
    725
    Best Answers:
    152
    Trophy Points:
    470
    #6
    Nope, that is quite correct. The cached file is generated, with the error, and changing that cached page (or deleting it) won't help, since it will just recreate the page again at a later stage.
    Unfortunately, the code for PHPBB is crap - pure and utter crap - I've been playing around with it before, and it's a complete pain in the ass to figure out where errors show up from.
    If you've changed the core files (adding plugins or similar), I would suggest just reinstalling the board (just reupload the core files), then add plugins one by one, checking after each one to see if there are errors again. Also, maybe remove the template (go back to default, or something), then reinstall that.
     
    PoPSiCLe, May 23, 2015 IP