Link to home
Start Free TrialLog in
Avatar of patilarvindg
patilarvindg

asked on

Undefined index error

On loading index.php file, it shows authentication box in the browser.
On entering user/password, there no response on the browser.
error_log shows lots of errors given below.
Please help to get rid of following errors.

index.php
-------------------------
<?php
include (dirname(__FILE__)."/../lib/company_info.php");
?>
<html><head>
<link rel="shortcut icon" href="../Images/favicon.ico" >
<link rel="icon" href="../Images/animated_favicon1.gif" type="image/gif" >
<title>..:: :<?php echo CCMAINTITLE; ?>: ::..</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <script LANGUAGE="JavaScript">
    <!--
     function test()
     {
      if(document.form.pr_login.value=="" || document.form.pr_password.value=="")
      {
       alert("You must enter a login and a password");
       return false;
      }
      else
      {
       return true;
      }
     }
    //-->
    </SCRIPT>
    <style TEXT="test/css">
    <!--
     
    BODY{scrollbar-face-color: #FFFF99; scrollbar-shadow-color: #000000;
    scrollbar-highlight-color: #FFFF99; scrollbar-3dlight-color: #000000;
    scrollbar-darkshadow-color: #000000; scrollbar-track-color: #FFFF99;
    scrollbar-arrow-color: #000000;
    bgproperties: fixed;
    }
     
       .heads {
            font-family: Arial, Helvetica, sans-serif;
            color: #FFFFFF;
            background-color: #FFA70F;
            font-size: 11px;
            text-transform: uppercase;
            font-weight: bold;
            padding: 2px;
      }
      .head_table_management {
            font-family: Arial, Helvetica, sans-serif;
            font-size: 11px;
            font-weight: bold;
            text-transform: uppercase;
            background-color: #BAAAFF; //BFCCD2
            color: #606060;
      }
      .form_enter {
      //background-color: #F3F4F3;
      font-family: Arial, Helvetica, sans-serif;
      font-size: 11px;
      font-weight: bold;
      color: #FF9900;
      border: 1px solid #C1C1C1;
}
    -->
    </style>
      
</head>
<body bgcolor="#FFFFF" text="#000000" topmargin="120" marginheight="120" leftmargin="0" OnLoad="document.form.pr_login.focus();">
<form name="form" method="POST" action="index2.php" OnSubmit="return test();">
<INPUT type="hidden" name="done" value="submit_log">
  <center>
  <?php  if ($_GET["error"]==1){ ?><font face="Arial, Helvetica, sans-serif" size="2" color="red"><b>AUTHENTICATION REFUSED, please check your login/password!</b></font>
 
  <?php  } ?> <br> <br>
 
    <table width="350" height=50  align="center" cellPadding=0 cellSpacing=0 class=form_enter>
        <tbody>
          <tr><td bgColor=#7f99cc align="center" colSpan=3 height=16 >             
                    <table  width="100%" align="center" height="22" class=form_enter  cellpadding="0" cellspacing="0">
      
                              <tbody><tr>
                                    <td align="center"><img src="images/icon_arrow_orange.gif" width="15" height="15">
                                    &nbsp;<font size="3" color="white" ><b> AUTHENTICATION </b></font> &nbsp; </td>
                              </tr></tbody>
                        </table>
              </td>
          </tr>
          <tr>
                <td bgColor=#7f99cc width="1"><img height=1 src="../Images/clear.gif" width=1></td>
            <td bgColor=#edf3ff style="PADDING-BOTTOM: 2px; PADDING-LEFT: 5px; PADDING-RIGHT: 5px; PADDING-TOP: 5px">
              <table width="90%" border=0 align="center" cellPadding=0 cellSpacing=0>                        
                        
                                    <tr align="center">  
                                      <td width="30%">&nbsp;</td>
                                      <td width="40%" bgcolor="#edf3ff"><font size="2" face="Arial, Helvetica, sans-serif"><b>LOGIN</b></font></td>
                                      <td width="30%">&nbsp;</td>
                                    </tr>
                                    <tr align="center">  
                                      <td width="30%">&nbsp;</td>
                                      <td width="40%" bgcolor="#edf3ff">  
                                          <input class="form_enter" type="text" name="pr_login" > 
                                      </td>
                                      <td width="30%">&nbsp;</td>
                                    </tr>
                                    <tr align="center">  
                                      <td width="30%">&nbsp;</td>
                                      <td width="40%" bgcolor="#edf3ff">&nbsp;</td>
                                      <td width="30%">&nbsp;</td>
                                    </tr>
                                    <tr align="center">  
                                      <td width="30%">&nbsp;</td>
                                      <td width="40%" bgcolor="#edf3ff"><font face="Arial, Helvetica, sans-serif" size="2"><b>PASSWORD</b></font></td>
                                      <td width="30%">&nbsp;</td>
                                    </tr>
                                    <tr align="center">  
                                      <td width="30%">&nbsp;</td>
                                      <td width="40%" bgcolor="#edf3ff">  
                                          <input class="form_enter" type="password" name="pr_password" > 
                                      </td>
                                      <td width="30%">&nbsp;</td>
                                    </tr>
                        
                               <tr align="center">  
                                      <td width="30%">&nbsp;<img src="images/security.png"></td>
                                      <td width="40%" bgcolor="#edf3ff"><input type="submit" name="submit" value="LOGIN" class="form_enter"></td>
                                      <td width="30%">&nbsp;</td>
                                    </tr>
                              
                </form>
              </table></td>
            <td bgColor=#7f99cc><img height=1 src="../Images/clear.gif" width=1></td>
          </tr>
          <tr>
            <td bgColor=#7f99cc colSpan=3><img height=1 src="../Images/clear.gif" width=1></td>

          </tr>
        </tbody>
      </table>
   

</center>
</form>
</body>
</html>
-----------------------------


error_log file:
---------------------------------
[Sun May 21 09:44:30 2006] [error] [client 127.0.0.1] PHP Notice:  Undefined index:  error in /var/www/html/A2Billing_UI/Public/index.php on line 68
[Sun May 21 09:44:35 2006] [error] [client 127.0.0.1] PHP Warning:  parse_ini_file(/etc/asterisk/a2billing.conf) [<a href='function.parse-ini-file'>function.parse-ini-file</a>]: failed to open stream: Permission denied in /var/www/html/A2Billing_UI/lib/Class.A2Billing.php on line 222, referer: http://localhost/A2Billing_UI/Public/index.php
[Sun May 21 09:44:35 2006] [error] [client 127.0.0.1] PHP Notice:  Undefined index:  debugshell in /var/www/html/A2Billing_UI/lib/Class.A2Billing.php on line 392, referer: http://localhost/A2Billing_UI/Public/index.php
[Sun May 21 09:44:35 2006] [error] [client 127.0.0.1] PHP Notice:  Undefined index:  api_security_key in /var/www/html/A2Billing_UI/lib/defines.php on line 21, referer: http://localhost/A2Billing_UI/Public/index.php
[Sun May 21 09:44:35 2006] [error] [client 127.0.0.1] PHP Notice:  Undefined index:  email_admin in /var/www/html/A2Billing_UI/lib/defines.php on line 27, referer: http://localhost/A2Billing_UI/Public/index.php
[Sun May 21 09:44:35 2006] [error] [client 127.0.0.1] PHP Notice:  Undefined index:  manager_host in /var/www/html/A2Billing_UI/lib/defines.php on line 32, referer: http://localhost/A2Billing_UI/Public/index.php
[Sun May 21 09:44:35 2006] [error] [client 127.0.0.1] PHP Notice:  Undefined index:  manager_username in /var/www/html/A2Billing_UI/lib/defines.php on line 33, referer: http://localhost/A2Billing_UI/Public/index.php
[Sun May 21 09:44:35 2006] [error] [client 127.0.0.1] PHP Notice:  Undefined index:  manager_secret in /var/www/html/A2Billing_UI/lib/defines.php on line 34, referer: http://localhost/A2Billing_UI/Public/index.php
[Sun May 21 09:44:35 2006] [error] [client 127.0.0.1] PHP Notice:  Undefined index:  link_audio_file in /var/www/html/A2Billing_UI/lib/defines.php on line 43, referer: http://localhost/A2Billing_UI/Public/index.php
[Sun May 21 09:44:35 2006] [error] [client 127.0.0.1] PHP Notice:  Undefined index:  monitor_path in /var/www/html/A2Billing_UI/lib/defines.php on line 44, referer: http://localhost/A2Billing_UI/Public/index.php
[Sun May 21 09:44:35 2006] [error] [client 127.0.0.1] PHP Notice:  Undefined index:  monitor_formatfile in /var/www/html/A2Billing_UI/lib/defines.php on line 45, referer: http://localhost/A2Billing_UI/Public/index.php
[Sun May 21 09:44:35 2006] [error] [client 127.0.0.1] PHP Notice:  Undefined index:  show_icon_invoice in /var/www/html/A2Billing_UI/lib/defines.php on line 46, referer: http://localhost/A2Billing_UI/Public/index.php
[Sun May 21 09:44:35 2006] [error] [client 127.0.0.1] PHP Notice:  Undefined index:  paypal_email in /var/www/html/A2Billing_UI/lib/defines.php on line 56, referer: http://localhost/A2Billing_UI/Public/index.php
[Sun May 21 09:44:35 2006] [error] [client 127.0.0.1] PHP Notice:  Undefined index:  from_email in /var/www/html/A2Billing_UI/lib/defines.php on line 57, referer: http://localhost/A2Billing_UI/Public/index.php
[Sun May 21 09:44:35 2006] [error] [client 127.0.0.1] PHP Notice:  Undefined index:  from_name in /var/www/html/A2Billing_UI/lib/defines.php on line 58, referer: http://localhost/A2Billing_UI/Public/index.php
[Sun May 21 09:44:35 2006] [error] [client 127.0.0.1] PHP Notice:  Undefined index:  company_name in /var/www/html/A2Billing_UI/lib/defines.php on line 59, referer: http://localhost/A2Billing_UI/Public/index.php
[Sun May 21 09:44:35 2006] [error] [client 127.0.0.1] PHP Notice:  Undefined index:  error_email in /var/www/html/A2Billing_UI/lib/defines.php on line 60, referer: http://localhost/A2Billing_UI/Public/index.php
[Sun May 21 09:44:35 2006] [error] [client 127.0.0.1] PHP Notice:  Undefined index:  notify_url in /var/www/html/A2Billing_UI/lib/defines.php on line 63, referer: http://localhost/A2Billing_UI/Public/index.php
[Sun May 21 09:44:35 2006] [error] [client 127.0.0.1] PHP Fatal error:  Call to undefined function pg_connect() in /var/www/html/A2Billing_UI/lib/DB-modules/phplib_postgres.php on line 68, referer: http://localhost/A2Billing_UI/Public/index.php
[Sun May 21 09:44:35 2006] [error] [client 127.0.0.1] File does not exist: /var/www/html/favicon.ico
------------------------------
ASKER CERTIFIED SOLUTION
Avatar of Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3]
Flag of Luxembourg image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
>failed to open stream: Permission denied in /var/www/html/A2Billing_UI/lib/Class.A2Billing.php on line 222, referer: http://localhost/A2Billing_UI/Public/index.php

this error should be obvious, you don't have permission to read the referred file.

>Undefined index:  debugshell in /var/www/html/A2Billing_UI/lib/Class.A2Billing.php on line 392, ...
This is probably the same problem as on the first comment, please check and come back