Menu

Error staring IPM

2001-06-29
2002-02-12
  • Nobody/Anonymous

    I just installed the program and I get the following errors. I did change the config file to match my local machine. I am running it ona WIN32 running Apache. MySQL 3x and PHP 4x.

    Thank you and I really like what I see.

    Jim Ray

    Warning: Supplied argument is not a valid MySQL result resource in d:/abriasoft/abria sql/apache/htdocs/projects/index.php on line 1280

    Warning: Cannot add header information - headers already sent by (output started at d:/abriasoft/abria sql/apache/htdocs/projects/index.php:1280) in d:/abriasoft/abria sql/apache/htdocs/projects/index.php on line 1282

    Warning: Cannot add header information - headers already sent by (output started at d:/abriasoft/abria sql/apache/htdocs/projects/index.php:1280) in d:/abriasoft/abria sql/apache/htdocs/projects/index.php on line 1283

    Your attempts to access this has failed. Please stop trying.

    Here is the lines of code in question:

           dbconnect();
            $query="SELECT * FROM users where username='$PHP_AUTH_USER'";
            $result=mysql_query($query);
             $list=mysql_fetch_array($result);
            if ($PHP_AUTH_PW !== $list[password] || "" == $PHP_AUTH_PW){
                 Header("WWW-authenticate: basic realm=\"Incyte Project Manager\"");
             Header( "HTTP/1.0 401 Unauthorized");
             unauthorized();

     
    • phlux

      phlux - 2001-07-01

      I have no idea why that wouldn't be working. The only thing I can guess is that apache on windows uses a different authentication scheme. I know you've changed the config.php file. But just check it one more time. Make sure all 4 database options are right. Server,Username,Password, and database.

      -phlux

       
    • Nobody/Anonymous

      I get the same parse error when opening index.php and admin.php. I am running
      linux apache mysql php4 ssl-all the latest tarballs

      also, config.inc is configured correctly ....localhost...admin ...admin ...awol

      specific parse error line is 1281 .. vi line search points to the lines that begin
      with "HEADER"

      admin.php parse error points to the same lines

      without being a code cruncher, is there a quick way to disable authentication completely

      thanks
      ken

       
      • phlux

        phlux - 2001-08-26

        Yes, just find the authenticate() function in index.php and remove all of the code inside the function.

        -phlux

         
        • Nobody/Anonymous

          Thanks.

          I could be way off track here but I changed the comparison operator '!==' to '!=' in the line below and it seems to work fine now.

          if ($PHP_AUTH_PW !== $list[password] || "" == $PHP_AUTH_PW)

          Is '!==' a valid comparison operator in php ?

          or is this a vaild operator and I am breaking auth fuctionality by changing it ?

          Thanks for your input, very nice program you have.

          rgds
          ken

           
          • phlux

            phlux - 2001-08-27

            Oops, I made a serious booboo. You are right. The !== is wrong, it should be !=

            That's what I get for caffeineless coding.

            -phlux
            Which version are you using?

             
            • Nobody/Anonymous

              after massive quantities of jolt cola, I realized that my vi line search was incorrect
              and the error was pointing to that line.

              again, great program and very clean interface.

              using ver 6 ...

              rgds
              ken

               
    • Nobody/Anonymous

      Hello PHP guys...

      I do think to have the solution for this problem.
      PHP does not have the possibility to send header information in a CGI script installation of Apache.
      So forget this "www-authenticate" stuff ! Take a form and do it in an old way.

      I post my solution asap.

      Happy programming,
      Mosi
      mailto:alex.mosburger@chello.at

       
    • Nobody/Anonymous

      i have this errors can you help me...

      mailme to. raton_viadas@hotmail.com

      Warning: Undefined variable: op in C:\www\ipm-0.8\index.php on line 1948

      Warning: Cannot add header information - headers already sent by (output started at C:\www\ipm-0.8\index.php:1948) in C:\www\ipm-0.8\index.php on line 1889

      Warning: Cannot add header information - headers already sent by (output started at C:\www\ipm-0.8\index.php:1948) in C:\www\ipm-0.8\index.php on line 1890

      Incorrect password

       

Log in to post a comment.

MongoDB Logo MongoDB