Incompatibilidade de Template para Joomla 1.0.15 e PHP 5.4.1

  • lenardocs
  • Avatar de lenardocs Autor do Tópico
  • Offline
  • JCB! Novato
  • JCB! Novato
Mais
5 anos 10 meses atrás #96505 por lenardocs
lenardocs created the topic: Incompatibilidade de Template para Joomla 1.0.15 e PHP 5.4.1
Tenho um site desde 2008 com Joomla 1.0.15 no ar, mas agora ele parou de exibir os conteúdos no corpo do site. O template utiliza a seguinte chamada "<?php mosMainBody();" ?>. Não sei certamente se foi a manutenção dos servidores ao configurar o PHP 5.4.12.

Alguém poderia me ajudar a solucionar este problema de forma que eu não precise retornar a versão 5.2 do PHP e nem precise refazer o site em uma versão mais nova do Joomla, tal como a 3.3?

Acho que são só estas questões do template "dg_brown" que uso. O conteúdo do arquivo index.php do template é o seguinte:

<?php
defined( '_VALID_MOS' ) or die( 'Restricted access' );
// needed to seperate the ISO number from the language file constant _ISO
$iso = explode( '=', _ISO );
// xml prolog
echo '<?xml version="1.0" encoding="'. $iso[1] .'"?' .'>';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> ;
<html xmlns=" www.w3.org/1999/xhtml"> ;
<head>
<?php mosShowHead(); ?>
<?php
if ( $my->id ) {
initEditor();
}
//user1 combos
if ( mosCountModules( 'user1' ) + mosCountModules( 'user2' ) == 2) {
$user1 = 2;
$user2 = 2;
} elseif ( mosCountModules( 'user1' ) == 1 ) {
$user1 = 1;
} elseif ( mosCountModules( 'user2' ) == 1 ) {
$user2 = 1;
}

//right based combos
if ( mosCountModules( 'right' ) and ( empty( $_REQUEST ) || $_REQUEST != 'edit' ) ) {
$right = 1;
}
//top based combos
if ( mosCountModules( 'top' ) ) {
$top = 1;
}
?>


<meta http-equiv="Content-Type" content="text/html; <?php echo _ISO; ?>" />
<link href="templates/dg_brown/css/template_css.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" language="JavaScript" src="templates/dg_brown/scripts/funcoes.js"></script>

</head>

<body bgcolor="#999999" text="#FFFFFF" link="#000000" vlink="#000000" alink="#000000" >
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td valign="top" class="left">&nbsp;</td>
<td width="872" valign="top">
<table align="center" border="0" cellpadding="0" cellspacing="0" width="99%" style="background-color: #333333" >
<tr>
<td width="5">
<img border="0" src="templates/dg_brown/images/box/top_left.png" alt="" /></td>
<td>
<img border="0" src="templates/dg_brown/images/box/space.png" alt="" /></td>
<td width="5">
<img border="0" src="templates/dg_brown/images/box/top2_right.png" alt="" /></td>
</tr>
<tr>
<td>
<div id="header">
<div id="logo"><a href="<?php echo $mosConfig_live_site;?>"><img border="0" src="templates/dg_brown/images/logo.jpg" alt="" /> </a></div>
<div id="master"><?php mosLoadModules ( 'master', -1); ?></div>
<div id="contador"><script type="text/javascript" language="JavaScript">contagem_regressiva();</script></div>
<div id="data"><script type="text/javascript" language="JavaScript">insere_data();</script></div>
</div>
</td>
</tr>
</table>
<div align="center">
<table border="0" cellpadding="0" cellspacing="0" width="99%" style="background-color: #333333 " >
<tr>
<td width="3">
<img border="0" src="templates/dg_brown/images/menu_l.png" alt="" /></td>
<td style="background-image: url('templates/dg_brown/images/bac_menu.png'); background-repeat: repeat-x">
<?php mosLoadModules ( 'user3', -1 ); ?>
</td>
<td width="3">
<img border="0" src="templates/dg_brown/images/menu_r.png" alt="" /></td>
</tr>
<tr>
<td width="5">
<img border="0" src="templates/dg_brown/images/box/bot_left.png" alt="" /></td>
<td>
<img border="0" src="templates/dg_brown/images/box/space.png" alt="" /></td>
<td width="5">
<img border="0" src="templates/dg_brown/images/box/bot_right.png" alt="" /></td>
</tr>
</table>
</div>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td>
<table border="0" cellpadding="2" width="100%">
<tr>
<?php
if ( $user1 > 0 ) {
?>

<td valign="top" width="200">
<div align="center">
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="background-color: #333333">
<tr>
<td width="5">
<img border="0" src="templates/dg_brown/images/box/top_left.png" alt="" /></td>
<td>
<img border="0" src="templates/dg_brown/images/box/space.png" alt="" /></td>
<td width="5">
<img border="0" src="templates/dg_brown/images/box/top2_right.png" alt="" /></td>
</tr>
<tr>
<td width="5">&nbsp;</td>
<td style="height: 120px" valign="top">
<?php mosLoadModules ( 'user1', -2); ?></td>
<td width="5">&nbsp;</td>
</tr>
<tr>
<td width="5">
<img border="0" src="templates/dg_brown/images/box/bot_left.png" alt="" /></td>
<td>
<img border="0" src="templates/dg_brown/images/box/space.png" alt="" /></td>
<td width="5">
<img border="0" src="templates/dg_brown/images/box/bot_right.png" alt="" /></td>
</tr>
</table>
</div>
<?php
}
if ( $top > 0 ) {
?>
</td>
<td valign="top">
<div align="center">
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="background-color: #333333">
<tr>
<td width="5">
<img border="0" src="templates/dg_brown/images/box/top_left.png" alt="" /></td>
<td>
<img border="0" src="templates/dg_brown/images/box/space.png" alt="" /></td>
<td width="5">
<img border="0" src="templates/dg_brown/images/box/top2_right.png" alt="" /></td>
</tr>
<tr>
<td width="5">&nbsp;</td>
<td style="height: 120px" valign="top">
<?php mosLoadModules ( 'top', -2); ?></td>
<td width="5">&nbsp;</td>
</tr>
<tr>
<td width="5">
<img border="0" src="templates/dg_brown/images/box/bot_left.png" alt="" /></td>
<td>
<img border="0" src="templates/dg_brown/images/box/space.png" alt="" /></td>
<td width="5">
<img border="0" src="templates/dg_brown/images/box/bot_right.png" alt="" /></td>
</tr>
</table>
</div>
</td>
<?php
}
if ( $user2 > 0 ) {
?>
<td valign="top" width="200">
<div align="center">
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="background-color: #333333">
<tr>
<td width="5">
<img border="0" src="templates/dg_brown/images/box/top_left.png" alt="" /></td>
<td>
<img border="0" src="templates/dg_brown/images/box/space.png" alt="" /></td>
<td width="5">
<img border="0" src="templates/dg_brown/images/box/top2_right.png" alt="" /></td>
</tr>
<tr>
<td width="5">&nbsp;</td>
<td style="height: 120px" valign="top">
<?php mosLoadModules ( 'user2', -2); ?></td>
<td width="5">&nbsp;</td>
</tr>
<tr>
<td width="5">
<img border="0" src="templates/dg_brown/images/box/bot_left.png" alt="" /></td>
<td>
<img border="0" src="templates/dg_brown/images/box/space.png" alt="" /></td>
<td width="5">
<img border="0" src="templates/dg_brown/images/box/bot_right.png" alt="" /></td>
</tr>
</table>
</div>
</td>
<?php
}
?>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table border="0" cellpadding="2" width="100%">
<tr>
<td width="200" valign="top" rowspan="2">
<div align="center">
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="background-color: #333333">
<tr>
<td width="5">
<img border="0" src="templates/dg_brown/images/box/top_left.png" alt="" /></td>
<td>
<img border="0" src="templates/dg_brown/images/box/space.png" alt="" /></td>
<td width="5">
<img border="0" src="templates/dg_brown/images/box/top2_right.png" alt="" /></td>
</tr>
<tr>
<td width="5">&nbsp;</td>
<td style="height: 507px" valign="top">
<?php mosLoadModules ( 'left', -2); ?></td>
<td width="5">&nbsp;</td>
</tr>
<tr>
<td width="5">
<img border="0" src="templates/dg_brown/images/box/bot_left.png" alt="" /></td>
<td>
<img border="0" src="templates/dg_brown/images/box/space.png" alt="" /></td>
<td width="5">
<img border="0" src="templates/dg_brown/images/box/bot_right.png" alt="" /></td>
</tr>
</table>
</div>
</td>
<td valign="top" style="height: 70px">
<div align="center">
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="background-color: #333333">
<tr>
<td width="5">
<img border="0" src="templates/dg_brown/images/box/top_left.png" alt="" /></td>
<td>
<img border="0" src="templates/dg_brown/images/box/space.png" alt="" /></td>
<td width="5">
<img border="0" src="templates/dg_brown/images/box/top2_right.png" alt="" /></td>
</tr>
<tr>
<td width="5">&nbsp;</td>
<td valign="top">
<div align="center"><?php mosLoadModules ( 'banner', -1); ?></div>
</td>
<td width="5">&nbsp;</td>
</tr>
<tr>
<td width="5">
<img border="0" src="templates/dg_brown/images/box/bot_left.png" alt="" /></td>
<td>
<img border="0" src="templates/dg_brown/images/box/space.png" alt="" /></td>
<td width="5">
<img border="0" src="templates/dg_brown/images/box/bot_right.png" alt="" /></td>
</tr>
</table>
</div>
</td>
<?php
if ( $right > 0 ) {
?>
<td width="200" valign="top" rowspan="2">
<div align="center">
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="background-color: #333333">
<tr>
<td width="5">
<img border="0" src="templates/dg_brown/images/box/top_left.png" alt="" /></td>
<td>
<img border="0" src="templates/dg_brown/images/box/space.png" alt="" /></td>
<td width="5">
<img border="0" src="templates/dg_brown/images/box/top2_right.png" alt="" /></td>
</tr>
<tr>
<td width="5">&nbsp;</td>
<td style="height: 507px" valign="top">
<?php mosLoadModules ( 'right', -2); ?></td>
<td width="5">&nbsp;</td>
</tr>
<tr>
<td width="5">
<img border="0" src="templates/dg_brown/images/box/bot_left.png" alt="" /></td>
<td>
<img border="0" src="templates/dg_brown/images/box/space.png" alt="" /></td>
<td width="5">
<img border="0" src="templates/dg_brown/images/box/bot_right.png" alt="" /></td>
</tr>
</table>
</div>
</td>
<?php
}
?>
</tr>
<tr>
<td valign="top">
<div align="center">
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="background-color: #333333">
<tr>
<td width="5">
<img border="0" src="templates/dg_brown/images/box/top_left.png" alt="" /></td>
<td>
<img border="0" src="templates/dg_brown/images/box/space.png" alt="" /></td>
<td width="5">
<img border="0" src="templates/dg_brown/images/box/top2_right.png" alt="" /></td>
</tr>
<tr>
<td width="5">&nbsp;</td>
<td style="height: auto" valign="top">
<?php mosMainBody(); ?></td>
<td width="5">&nbsp;</td>
</tr>
<tr>
<td width="5">
<img border="0" src="templates/dg_brown/images/box/bot_left.png" alt="" /></td>
<td>
<img border="0" src="templates/dg_brown/images/box/space.png" alt="" /></td>
<td width="5">
<img border="0" src="templates/dg_brown/images/box/bot_right.png" alt="" /></td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<div id="footer" align="center">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="8">&nbsp;</td>
<td><?php include_once( 'templates/dg_brown/footer.php' ); ?></td>
<td width="10">&nbsp;</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</td>
<td valign="top" class="right">&nbsp;</td>
</tr>
</table>
</body>
</html>

Please Entrar ou Registrar to join the conversation.


Mais
5 anos 10 meses atrás #96506 por jhonny.nunes
jhonny.nunes replied the topic: Re: Incompatibilidade de Template para Joomla 1.0.15 e PHP 5.4.1
Me add ai no SKYPE....A melhor coisa a fazer é criar outro site com Joomla 3.3 <!-- s:ok: --><img src="{SMILIES_PATH}/ok.gif" alt=":ok:" title="Ok" /><!-- s:ok: --> <!-- s:ok: --><img src="{SMILIES_PATH}/ok.gif" alt=":ok:" title="Ok" /><!-- s:ok: -->

[b:fv29n2aj]Consultoria em joomla[/b:fv29n2aj]
Email:[b:fv29n2aj][color=#BF0000:fv29n2aj]Este endereço de email está sendo protegido de spambots. Você precisa do JavaScript ativado para vê-lo.[/color:fv29n2aj][/b:fv29n2aj]
[b:fv29n2aj]Whatszapp:[/b:fv29n2aj] (62) 8214-5113 (tim)
Skype: [b:fv29n2aj][color=#BF0000:fv29n2aj]jhonny.nunes2[/color:fv29n2aj][/b:fv29n2aj]
<!-- m --><a class="postlink" href=" www.hdsites.com.br " onclick="window.open(this.href);return false;"> www.hdsites.com.br </a><!-- m -->

Please Entrar ou Registrar to join the conversation.