Hi, i have a problem with phpGedView. After putting it on my site and doing the initial run the Pedigree Tree comes up. So far so good i thought. But then it's over, can't search for anybody, can't view more generations, can't see the rest of the chart.
Could it be that this program had a timeout in creating the indexes? It's currently running on a P1-133 with 64 Mb ram. Or is there some bug in v1.02 causing this behaviour?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
PHP has a timeout that only allows scripts to run for a certain amount of time before it kills them. The default is 2 minutes. There is a PHP function called set_time_limit() that is used to change this. The first line in the config file changes this to 10 minutes by passing in 10*60. You can disable the time limit completely by passing in a 0.
My guess is that since you are running on a 133 that you will want to disable the timeout, especially while you build the index, then you can reset the config file back to something else.
Change the first line of the config file to look like this:
set_time_limit(0);
Then point your browser to buildindex.php again. You might also need to erase the index files. They have a *.ind extension.
A successful completion of the index builds will automatically take you back to the pedigree tree (index.php). If that doesn't work, post the address for your website so that I can take a look at it.
Hope this helps,
--John
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Another problem that you might be having is with the Register Globals setting in PHP. The new versions of PHP default to Register Globals being OFF but phpGedView requires that it be set to on.
To change this, open your "php.ini" file. On windows it is somewhere in the Windows directory. On linux it is probably in the /etc folder.
Search for the register_globals line and change it to look like this:
register_globals = On
--John
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi, i have a problem with phpGedView. After putting it on my site and doing the initial run the Pedigree Tree comes up. So far so good i thought. But then it's over, can't search for anybody, can't view more generations, can't see the rest of the chart.
Could it be that this program had a timeout in creating the indexes? It's currently running on a P1-133 with 64 Mb ram. Or is there some bug in v1.02 causing this behaviour?
PHP has a timeout that only allows scripts to run for a certain amount of time before it kills them. The default is 2 minutes. There is a PHP function called set_time_limit() that is used to change this. The first line in the config file changes this to 10 minutes by passing in 10*60. You can disable the time limit completely by passing in a 0.
My guess is that since you are running on a 133 that you will want to disable the timeout, especially while you build the index, then you can reset the config file back to something else.
Change the first line of the config file to look like this:
set_time_limit(0);
Then point your browser to buildindex.php again. You might also need to erase the index files. They have a *.ind extension.
A successful completion of the index builds will automatically take you back to the pedigree tree (index.php). If that doesn't work, post the address for your website so that I can take a look at it.
Hope this helps,
--John
Another problem that you might be having is with the Register Globals setting in PHP. The new versions of PHP default to Register Globals being OFF but phpGedView requires that it be set to on.
To change this, open your "php.ini" file. On windows it is somewhere in the Windows directory. On linux it is probably in the /etc folder.
Search for the register_globals line and change it to look like this:
register_globals = On
--John