Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
- Index
- » MetaMod
- » MetaMod General Support
- » Error 500 in metamod (Solved)
Error 500 in metamod (Solved)
Error 500 in metamod (Solved)
Hello all, i recently installed metamod on a new fresh joomla instalation (1.5.26).
I was able to login into site page, but when i installed the metamod and i login into the site page, it's throws a erro 500.
The Apache (2.2.22) error log:
[Mon Jun 25 09:44:51 2012] [error] [client 192.168.1.146] PHP Fatal error: Call to undefined function mssql_connect() in C:\\www\\intranet\\modules\\mod_metamod\\helper.php(606) : eval()'d code on line 4, referer: http://192.168.1.146/index.php
I'm running on Windows Server 2003 and PHP 5.3.14.
If anyone of you could help me i'll be very happy
Thanks
25-Jun-12 21:51:07
Re: Error 500 in metamod (Solved)
Hi Raul,
Could you please post the contents of the PHP code you are using in MetaMod? It appears there's some sort of error near line 4 in that code.
Cheers,
Stephen
Re: Error 500 in metamod (Solved)
I'm running the same script on a windows server 2000.
It's a little big, i'll post the begin of the code:
---------------------------------------------------
//if ( $user->username == "admin" || $user-//>username == "luis.***" || $user->username //== "teste" || $user->username //== "mar***.***" )
//return 120;
//if ( MM_LOGGED_IN ) Return 120;
//FAVOR NÃO MEXER NOS CÓDIGOS SEM SOLIC. À RAUL
//IDENTIFICAÇÃO DE VARIÁVEIS
//return "82,85,79,87,84,80,86,99,17";
$idpfqual = $user->id;
$qualiron = "<a href='index.php?option=com_chronocontact&Itemid=134&id=".$idpfqual."'>Solicitação IRON</a>";
$tirairon = "<a href='index.php?option=com_content&view=article&id=472&Itemid=172'>Cancelar IRON</a>";
$relatiron = "<a href='index.php?option=com_sql2excel&controller=download&task=dl&id=11'>Relatório Solic. IRON</a>";
$relathe = "<a href='index.php?option=com_sql2excel&controller=download&task=dl&id=14'>Relatórios DP</a>";
$adeccodr = "<a href='index.php?option=com_content&view=article&id=344&Itemid=158'>Adecco Dynamic Reports</a>";
$office = "<a href='http://intranet.adecco.com.br/dmdocumen … .rar' target='_blank'>Baixar Office 2003</a>";
$formcat = "<a href='index.php?option=com_chronocontact&Itemid=165&id=".$idpfqual."'>Análise de Acidente de Trabalho</a>";
$formhex = "<a href='index.php?option=com_chronocontact&chronoformname=rhinterno_horaextra&Itemid=173&id=".$idpfqual."'>Autorização de Hora-Extra</a>";
//ACESSO ÀS SOLICITAÇÕES IRON
if ( $idpfqual > "0" ) {
echo "<ul><li>".$qualiron."</li></ul>";
}
//ACESSO AO RELATÓRIO IRON
if ( $user->username == "le**.****" ){
echo "<ul><li>".$relatiron."</li><li>".$tirairon."</li></ul>";
}
//ACESSO AO RELATÓRIO DE HORAS-EXTRAS
if ( $user->username == "ev****.*****" || $user->username == "ra****.****" || $user->username == "****.*****" || $user->username == "****.*****" || $user->username == "****.****" || $user->username == "****.****" || "****.*****"){
echo "<ul><li>".$relathe."</li></ul>";
}
//ACESSO AO ADECCO DYNAMIC REPORTS
if ( $user->username == "admin"
|| $user->username == "******.****"
|| $user->username == "*****.****"
|| $user->username == "****.****"
|| $user->username == "****.****"
|| $user->username == "****.****"
|| $user->username == "****.****"
|| $user->username == "raul.****" ) {
echo "<ul><li>".$adeccodr."</li></ul>";
}
//ACESSO A DOWNLOADS
if ( $user->username == "****" || $user->username == "****.*****" || $user->username == "****.****" || $user->username == "****.****" || $user->username == "****.****" ){
echo "<ul><li>".$office."</li></ul>";
}
//ACESSO AO FORMULÁRIO DO CAT
if ( $user->username == "admin" ||
$user->username == "****.****" ||
$user->username == "****.****" ||
$user->username == "***.***" ||
$user->username == "****.****" ||
$user->username == "****.****" ||
$user->username == "****.****" ||
$user->username == "****.****" ||
$user->username == "***.****" ||
$user->username == "****.****" ||
$user->username == "***.***" ||
$user->username == "***.***" ||
$user->username == "****.***" ||
$user->username == "***.****" ||
$user->username == "****.****" ||
$user->username == "***.****" ){
echo "<ul><li>".$formcat."</li></ul>";
}
//ACESSO AO FORMULÁRIO DE HORAS-EXTRAS
if ( $idpfqual > "0" ){
echo "<ul><li>".$formhex."</li></ul>";
}
//if ( $user->username == "****" )
//return "67,83,78,86,85,79,87,84,82,99,17";
if ( $user->username == "****" ){
echo "Você não tem autorização para navegar na Intranet";
}
if ( $user->id != 0 ) {
//if( $user->username == "****.****" ) {
echo '<ul><li><a style="padding:2px 0;display:block;color:#333;background: url(../images/hdot2.gif) repeat-x bottom;text-decoration:none;outline:none;" href="index.php?option=com_docman&task=cat_view&gid=109&Itemid=109">Compras Downloads</a></li></ul>';
}
if ( $user->username == "****.****" ) return "85,86,79,87,84,82,17,76,78,83";
if ( $user->username == "****.****" )return "83,86,85,79,87,84,82,101,17";
if ( $user->username == "****.****" )return "83,86,85,79,87,84,82,17";
if ( $user->username == "****.****" )return "83,86,85,79,87,84,82,103,17";
if ( $user->username == "****.****" )return "83,86,85,79,87,84,82,103,17";
if ( $user->username == "****.****" )return "83,86,85,79,87,84,82,17";
---------------------------------------------------
Re: Error 500 in metamod (Solved)
Yes, I knew you must have been trying to access the database directly! Glad you found the problem. Thanks for the feedback.
Best regards,
Stephen
- Index
- » MetaMod
- » MetaMod General Support
- » Error 500 in metamod (Solved)
Board Info
- Board Stats:
- Total Topics:
- 1689
- Total Polls:
- 6
- Total Posts:
- 5942
- Total Posts Today:
- 1
- User Info:
- Total Users:
- 7623
- Newest User:
- laptopreviews21
- Members Online:
- 0
- Guests Online:
- 129
- Online:
- There are no members online
Forum Legend:
Topic
New
Locked
Sticky
Active
New/Active
New/Locked
New Sticky
Locked/Active
Active/Sticky
Sticky/Locked
Sticky/Active/Locked