Menu

Problem installing InSite

Help
2000-07-07
2000-07-18
  • Danh Nguyen

    Danh Nguyen - 2000-07-07

    Hello Everyone,

    I am trying to install InSite 2.1 and got the following errors when i execute insite from the bin directory:

    Use of uninitialized value at /sgdata_11/home/webadmin/cgi-bin/insite_2.02/lib/InSite.pm line 406.
    Use of uninitialized value at /sgdata_11/home/webadmin/cgi-bin/insite_2.02/bin/insite line 924.
    Use of uninitialized value at /sgdata_11/home/webadmin/cgi-bin/insite_2.02/bin/insite line 924.
    Use of uninitialized value at /sgdata_11/home/webadmin/cgi-bin/insite_2.02/bin/insite line 925.
    Use of uninitialized value at /sgdata_11/home/webadmin/cgi-bin/insite_2.02/bin/insite line 925.

    I was just wondering if anyone had came accross those errors and have found a solution for them.  Any help at all would be greatly appreciated.

    Thank you!

    Danh Nguyen
    dvn68@hotmail.com

     
    • Danh Nguyen

      Danh Nguyen - 2000-07-12

      I reinstall the DB_File & the URI modules and those error went away, but now I got a new set of errors:

      Value of readdir() operator can be "0"; test with defined() at /sgdata_11/home/webadmin/cgi-bin/insite_2.10/lib/InSite.pm line 65535.
      Use of uninitialized value at /sgdata_11/home/webadmin/cgi-bin/insite_2.10/lib/InSite.pm line 643

      Has anyone ever come accros this problem/errors?

      Help!!!  I really like to get this package (InSite) to work on my server.  Thanks in advance.

      Danh Nguyen
      dvn68@hotmail.com

       
      • Jason Priebe

        Jason Priebe - 2000-07-14

        The first error puzzles me, since it lists line number 65535, which of course is an invalid line number.

        The second indicates to me that InSite is having some sort of problem running CGI scripts on your server.  You might want to try adding a line just before line 629 in InSite.pm:

        print "cd $dir; $dir/$script < /dev/null\n";

        Now when InSite hits a CGI script, it will print out the commands it is using to run that CGI.  You can try running that command manually to see what happens on your server.  Out of curiosity, what kind of server are you running (platform, server software, etc.)?

         
        • Danh Nguyen

          Danh Nguyen - 2000-07-17

          Hello Priebe,

          Thank you sooo much for your response.

          I added the line of code as you've suggested above line 629 in InSite.pm, and got the following message:

          /sgdata_11/home/webadmin/cgi-bin/insite_2.10/bin$ insite
          Value of readdir() operator can be "0"; test with defined() at /sgdata_11/home/webadmin/cgi-bin/insite_2.10/lib/InSite.pm line 65535.
          cd /home/webadmin/cgi-bin; /home/webadmin/cgi-bin/passdown_dev.cgi < /dev/null
          cd /home/webadmin/cgi-bin; /home/webadmin/cgi-bin/sdisum_ui.cgi < /dev/null
          cd /home/webadmin/cgi-bin; /home/webadmin/cgi-bin/lot_dsa_ui.cgi < /dev/null
          cd /home/webadmin/cgi-bin; /home/webadmin/cgi-bin/pts_ui.cgi < /dev/null
          cd /home/webadmin/cgi-bin; /home/webadmin/cgi-bin/webteam.cgi < /dev/null
          cd /home/webadmin/cgi-bin; /home/webadmin/cgi-bin/Count.cgi < /dev/null
          Use of uninitialized value at /sgdata_11/home/webadmin/cgi-bin/insite_2.10/lib/InSite.pm line 645.

          I am using the Apache web server on HPUX 11.00.

          I tested those cgi scripts out at the command line and they all ran fine.  Except pts_ui.cgi.  It just needed some arguments.

          Thank you again,

          Danh Nguyen

           
          • Jason Priebe

            Jason Priebe - 2000-07-18

            I'm really at a loss.  You say that the scripts ran "fine".  Did you run them as the same user that is running InSite?  It's possible that there is a permissions issue.

            I'm pretty sure that something is going wrong when those scripts are running.  All CGI scripts must print out "Content-type:...", "Location:", or "HTTP/..." on the first line of output.  If they are printing "HTTP/...", they must be no-parse-header CGI scripts, in which case, you must have the config variable $NPH set appropriately.

            Here's what I suggest:
            <UL>
            <LI>log in as the user running InSite
            <LI>copy and paste the command being run by InSite (include the "cd" part as well!)
            <LI>post the output here
            </UL>

            Include any blank lines that might be in your CGI script's output.  Perhaps it's printing some whitespace before the "Content-type" header?

             

Log in to post a comment.