Menu

installation problem, undefined var. _SERVER

Help
Anonymous
2003-11-25
2003-11-25
  • Anonymous

    Anonymous - 2003-11-25

    No problem with the installation of the files and running the configuration. But the first login doesn't
    work however (error message see below).
    What can I do?

    Warning: Undefined variable: _SERVER in /home/dequeker/MX-portal/phpgetview/index.php on line 62
    ERROR:Table 'phpgedview.pgv_individuals' doesn't exist
    SQL:SELECT i_gedcom, i_name, i_isdead, i_file FROM pgv_individuals WHERE i_id='I1' AND i_file=''

     
    • John Finlay

      John Finlay - 2003-11-25

      What version of PHP are you running?

      --John

       
      • Anonymous

        Anonymous - 2003-11-25

        How can I know that?

         
        • Anonymous

          Anonymous - 2003-11-25

          Thanks a lot for the help yalnifj !!

          Ok, thus the version is:
          PHP Version 4.0.6

          What can I do now?  Is there a phpGedview available that's compatible with this version or
          how can I upgrade php?

           
    • John Finlay

      John Finlay - 2003-11-25

      PhpGedView requires PHP 4.1.0 or greater.  I suspect you are using an older version of PHP.  This can be found be going to admin.php and selecting the "Show PHPInfo Page" link.

      If you can't get to that page, then create temporary file called phpinfo.php and put the following three lines of php code in it:
      <?php
      phpinfo();
      ?>

      This will tell you all kinds of info about your php configuration.

      --John

       
    • John Finlay

      John Finlay - 2003-11-25

      You can start by adding this line to the session.php file:
      $_SERVER = $HTTP_SERVER_VARS;

      This should fix most of your problems.  Any other places where you get the error you will need to replace $_SERVER with $HTTP_SERVER_VARS

      To upgrade PHP, if you are the server administrator you can download and install PHP from http://www.php.net

      If you are not the server administrator you can put in a support request where you host your site and ask them to upgrade to a newer version.

      --John

       

Log in to post a comment.