Foros del Web » Creando para Internet » Sistemas de gestión de contenidos »

Parse error: syntax error

Estas en el tema de Parse error: syntax error en el foro de Sistemas de gestión de contenidos en Foros del Web. La cuestión es llevo desde hace unos días con un problema en mi foro. Cuando pulso el boton de nuevo tema o de respuesta me ...
  #1 (permalink)  
Antiguo 04/07/2008, 19:12
 
Fecha de Ingreso: julio-2008
Mensajes: 4
Antigüedad: 15 años, 9 meses
Puntos: 0
Parse error: syntax error

La cuestión es llevo desde hace unos días con un problema en mi foro. Cuando pulso el boton de nuevo tema o de respuesta me este error.

Cita:
Parse error: syntax error, unexpected $end in /www/vndv.com/s/s/s/ssshinden/htdocs/foro/cache/tpl_AnimeZone_posting_body.html.php on line 63
Aquí os dejo la linea 63

Código PHP:
<td class="row2" align="center"><span class="gen"><?php echo((isset($this->_rootref['L_UNGLOBALISE_EXPLAIN'])) ? $this->_rootref['L_UNGLOBALISE_EXPLAIN'] : ((isset($user->lang['UNGLOBALISE_EXPLAIN'])) ? $user->lang['UNGLOBALISE_EXPLAIN'] : '{ UNGLOBALISE_EXPLAIN }')); ?><br
Todo el codigo:
Código PHP:
<?php if ($this->_rootref['S_PRIVMSGS']) {  $this->_tpl_include('ucp_header.html'); } else { $this->_tpl_include('overall_header.html'); } if (! $this->_rootref['S_PRIVMSGS']) {  ?>
    <div id="pageheader">
        <h2><?php if ($this->_rootref['TOPIC_TITLE']) {  ?><a class="titles" href="<?php echo (isset($this->_rootref['U_VIEW_TOPIC'])) ? $this->_rootref['U_VIEW_TOPIC'] : ''?>"><?php echo (isset($this->_rootref['TOPIC_TITLE'])) ? $this->_rootref['TOPIC_TITLE'] : ''?></a><?php } else { ?><a class="titles" href="<?php echo (isset($this->_rootref['U_VIEW_FORUM'])) ? $this->_rootref['U_VIEW_FORUM'] : ''?>"><?php echo (isset($this->_rootref['FORUM_NAME'])) ? $this->_rootref['FORUM_NAME'] : ''?></a><?php ?></h2>

        <?php if ($this->_rootref['MODERATORS']) {  ?>
            <p class="moderators"><?php echo ((isset($this->_rootref['L_MODERATORS'])) ? $this->_rootref['L_MODERATORS'] : ((isset($user->lang['MODERATORS'])) ? $user->lang['MODERATORS'] : '{ MODERATORS }')); ?><?php echo (isset($this->_rootref['MODERATORS'])) ? $this->_rootref['MODERATORS'] : ''?></p>
        <?php } if ($this->_rootref['U_MCP']) {  ?>
            <p class="linkmcp">[ <a href="<?php echo (isset($this->_rootref['U_MCP'])) ? $this->_rootref['U_MCP'] : ''?>"><?php echo ((isset($this->_rootref['L_MCP'])) ? $this->_rootref['L_MCP'] : ((isset($user->lang['MCP'])) ? $user->lang['MCP'] : '{ MCP }')); ?></a> ]</p>
        <?php ?>
    </div>

    <br clear="all" /><br />
<?php } if (! $this->_rootref['S_SHOW_PM_BOX']) {  ?>
    <form action="<?php echo (isset($this->_rootref['S_POST_ACTION'])) ? $this->_rootref['S_POST_ACTION'] : ''?>" method="post" name="postform"<?php echo (isset($this->_rootref['S_FORM_ENCTYPE'])) ? $this->_rootref['S_FORM_ENCTYPE'] : ''?>>
<?php } if ($this->_rootref['S_DRAFT_LOADED']) {  ?>
    <table class="tablebg" width="100%" cellspacing="1">
    <tr>
        <th align="center"><?php echo ((isset($this->_rootref['L_INFORMATION'])) ? $this->_rootref['L_INFORMATION'] : ((isset($user->lang['INFORMATION'])) ? $user->lang['INFORMATION'] : '{ INFORMATION }')); ?></th>
    </tr>
    <tr>
        <td class="row1" align="center"><span class="gen"><?php if ($this->_rootref['S_PRIVMSGS']) {  echo ((isset($this->_rootref['L_DRAFT_LOADED_PM'])) ? $this->_rootref['L_DRAFT_LOADED_PM'] : ((isset($user->lang['DRAFT_LOADED_PM'])) ? $user->lang['DRAFT_LOADED_PM'] : '{ DRAFT_LOADED_PM }')); } else { echo ((isset($this->_rootref['L_DRAFT_LOADED'])) ? $this->_rootref['L_DRAFT_LOADED'] : ((isset($user->lang['DRAFT_LOADED'])) ? $user->lang['DRAFT_LOADED'] : '{ DRAFT_LOADED }')); } ?></span></td>
    </tr>
    </table>

    <br clear="all" />
<?php } if ($this->_rootref['S_SHOW_DRAFTS']) {  ?>
    <table class="tablebg" width="100%" cellspacing="1">
    <tr>
        <th colspan="3" align="center"><?php echo ((isset($this->_rootref['L_LOAD_DRAFT'])) ? $this->_rootref['L_LOAD_DRAFT'] : ((isset($user->lang['LOAD_DRAFT'])) ? $user->lang['LOAD_DRAFT'] : '{ LOAD_DRAFT }')); ?></th>
    </tr>
    <tr>
        <td class="row1" colspan="3" align="center"><span class="gen"><?php echo ((isset($this->_rootref['L_LOAD_DRAFT_EXPLAIN'])) ? $this->_rootref['L_LOAD_DRAFT_EXPLAIN'] : ((isset($user->lang['LOAD_DRAFT_EXPLAIN'])) ? $user->lang['LOAD_DRAFT_EXPLAIN'] : '{ LOAD_DRAFT_EXPLAIN }')); ?></span></td>
    </tr>
    <tr>
        <th><?php echo ((isset($this->_rootref['L_SAVE_DATE'])) ? $this->_rootref['L_SAVE_DATE'] : ((isset($user->lang['SAVE_DATE'])) ? $user->lang['SAVE_DATE'] : '{ SAVE_DATE }')); ?></th>
        <th><?php echo ((isset($this->_rootref['L_DRAFT_TITLE'])) ? $this->_rootref['L_DRAFT_TITLE'] : ((isset($user->lang['DRAFT_TITLE'])) ? $user->lang['DRAFT_TITLE'] : '{ DRAFT_TITLE }')); ?></th>
        <th><?php echo ((isset($this->_rootref['L_OPTIONS'])) ? $this->_rootref['L_OPTIONS'] : ((isset($user->lang['OPTIONS'])) ? $user->lang['OPTIONS'] : '{ OPTIONS }')); ?></th>
    </tr>
    <?php $_draftrow_count = (isset($this->_tpldata['draftrow'])) ? sizeof($this->_tpldata['draftrow']) : 0;if ($_draftrow_count) {for ($_draftrow_i 0$_draftrow_i $_draftrow_count; ++$_draftrow_i){$_draftrow_val = &$this->_tpldata['draftrow'][$_draftrow_i]; if (!($_draftrow_val['S_ROW_COUNT'] & 1)  ) {  ?><tr class="row1"><?php } else { ?><tr class="row2"><?php ?>

        <td class="postdetails" style="padding: 4px;"><?php echo $_draftrow_val['DATE']; ?></td>
        <td style="padding: 4px;"><b class="gen"><?php echo $_draftrow_val['DRAFT_SUBJECT']; ?></b>
            <?php if ($_draftrow_val['S_LINK_TOPIC']) {  ?><br /><span class="gensmall"><?php echo ((isset($this->_rootref['L_TOPIC'])) ? $this->_rootref['L_TOPIC'] : ((isset($user->lang['TOPIC'])) ? $user->lang['TOPIC'] : '{ TOPIC }')); ?>: <a href="<?php echo $_draftrow_val['../Escritorio/U_VIEW']; ?>"><?php echo $_draftrow_val['TITLE']; ?></a></span>
            <?php } else if ($_draftrow_val['S_LINK_FORUM']) {  ?><br /><span class="gensmall"><?php echo ((isset($this->_rootref['L_FORUM'])) ? $this->_rootref['L_FORUM'] : ((isset($user->lang['FORUM'])) ? $user->lang['FORUM'] : '{ FORUM }')); ?>: <a href="<?php echo $_draftrow_val['../Escritorio/U_VIEW']; ?>"><?php echo $_draftrow_val['TITLE']; ?></a></span>
            <?php } else if ($_draftrow_val['S_LINK_PM']) {  ?><br /><span class="gensmall"><?php echo ((isset($this->_rootref['L_PRIVATE_MESSAGE'])) ? $this->_rootref['L_PRIVATE_MESSAGE'] : ((isset($user->lang['PRIVATE_MESSAGE'])) ? $user->lang['PRIVATE_MESSAGE'] : '{ PRIVATE_MESSAGE }')); ?></span>
            <?php } else { ?><br /><span class="gensmall"><?php echo ((isset($this->_rootref['L_NO_TOPIC_FORUM'])) ? $this->_rootref['L_NO_TOPIC_FORUM'] : ((isset($user->lang['NO_TOPIC_FORUM'])) ? $user->lang['NO_TOPIC_FORUM'] : '{ NO_TOPIC_FORUM }')); ?></span><?php ?>
        </td>
        <td style="padding: 4px;" align="center"><span class="gen"><a href="<?php echo $_draftrow_val['../Escritorio/U_INSERT']; ?>"><?php echo ((isset($this->_rootref['L_LOAD_DRAFT'])) ? $this->_rootref['L_LOAD_DRAFT'] : ((isset($user->lang['LOAD_DRAFT'])) ? $user->lang['LOAD_DRAFT'] : '{ LOAD_DRAFT }')); ?></a></td>
    </tr>
    <?php }} ?>
    </table>

    <br clear="all" />
<?php } if ($this->_rootref['S_POST_REVIEW']) {  $this->_tpl_include('posting_review.html'); } if ($this->_rootref['S_DISPLAY_PREVIEW']) {  $this->_tpl_include('posting_preview.html'); } if (! $this->_rootref['S_PRIVMSGS'] && $this->_rootref['S_UNGLOBALISE']) {  ?>
    <table class="tablebg" width="100%" cellspacing="1">
    <tr>
        <th><?php echo ((isset($this->_rootref['L_MOVE'])) ? $this->_rootref['L_MOVE'] : ((isset($user->lang['MOVE'])) ? $user->lang['MOVE'] : '{ MOVE }')); ?></th>
    </tr>
    <tr>
        <td class="spacer" colspan="2"><img src="../Escritorio/images/spacer.gif" alt="" width="1" height="1" /></td>
    </tr>
    <tr>
        <td class="row2" align="center"><span class="gen"><?php echo ((isset($this->_rootref['L_UNGLOBALISE_EXPLAIN'])) ? $this->_rootref['L_UNGLOBALISE_EXPLAIN'] : ((isset($user->lang['UNGLOBALISE_EXPLAIN'])) ? $user->lang['UNGLOBALISE_EXPLAIN'] : '{ UNGLOBALISE_EXPLAIN }')); ?><br
Espero vuestra ayuda

Gracias de antemano

Última edición por Vitinello; 05/07/2008 a las 06:03
  #2 (permalink)  
Antiguo 05/07/2008, 15:08
 
Fecha de Ingreso: julio-2008
Mensajes: 4
Antigüedad: 15 años, 9 meses
Puntos: 0
Respuesta: Parse error: syntax error

Bueno me auto-respondo puesto que ya he solucionado el tema cortando por lo sano. He eliminado todos los tpl del style en cuestión, eliminé tb el style del server y lo volví a subir tal y como me lo descargué. Una vez instalado de nuevo, el problema ha desaparecido.

De todas formas si alguien sabe cual era el problema exacto del error que tenia, por favor q lo exponga.
  #3 (permalink)  
Antiguo 07/07/2008, 14:26
Avatar de newboy_master  
Fecha de Ingreso: enero-2008
Ubicación: Granada
Mensajes: 882
Antigüedad: 16 años, 3 meses
Puntos: 46
Respuesta: Parse error: syntax error

La etiqueta br y td no estaban cerradas ??

Cita:
<td class="row2" align="center"><span class="gen"><?php echo((isset($this->_rootref['L_UNGLOBALISE_EXPLAIN'])) ? $this->_rootref['L_UNGLOBALISE_EXPLAIN'] : ((isset($user->lang['UNGLOBALISE_EXPLAIN'])) ? $user->lang['UNGLOBALISE_EXPLAIN'] : '{ UNGLOBALISE_EXPLAIN }')); ?><br></td>
Puede que fuera por eso.

Salu2.
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 13:09.