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=''
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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=''
What version of PHP are you running?
--John
How can I know that?
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?
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
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