And now ?????
Warning: Undefined variable: _SERVER in /home/sites/site302/web/phpGedView/authentication_index.php on line 239
Warning: Cannot add header information - headers already sent by (output started at /home/sites/site302/web/phpGedView/authentication_index.php:239) in /home/sites/site302/web/phpGedView/login.php on line 41
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Log in and go to the admin screen
from there click on the link "Show PHPInfo Page"
If you can't get that far, here is what john posted a few times:
You can get the versions of PHP and Apache by creating a phpinfo file. Create a file named phpinfo.php and put the following three lines in it:
<?php
phpinfo();
?>
Then point your browser to it and you will see more than you ever wanted to know about your PHP configuration.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2003-12-16
Hello Cees,
Well visiting that link you gave shows me that the script is stuck in a loop. This is what I get:
Warning: Supplied argument is not a valid File-Handle resource in /home/sites/site302/web/phpGedView/functions.php on line 1262
Warning: Supplied argument is not a valid File-Handle resource in /home/sites/site302/web/phpGedView/functions.php on line 1263
Warning: Supplied argument is not a valid File-Handle resource in /home/sites/site302/web/phpGedView/functions.php on line 1262
The error relates to a problem opening a file, which makes sense because before that the following warning is shown: Warning: fopen("","r")
Between the "" should be a filename.
Anyway, lets go through this step by step.
First of all to see which version of PHP you are running you can make a file and call it info.php and put the following in it:
<?php
phpinfo();
?>
That is all. Save the file to your webserver folder and call it from the browser. All the way at the top left hand corner it will tell you your PHP version.
What I am actually more interested in now is to know if you completed the installation successful?
My advice is to first remove your current installation and follow the steps outlined here:
Step by step installation of phpGedView in index mode
Here are the steps of setting up the index module:
Start phpGedView
Fill in the fields in on the first page and save congfiguration
Create the admin user
Click on the "Click here to continue link"
Upload Gedcom
You can either browse for the file or enter its location. Input the gedcom file you like to import.
Upload gedcom
Change any of the fields you like to customize it for yourself and then click save configuration.
Important !!! Click on the Import this gedcom file button.
Do you want to empty the dataset? Click yes.
Scroll down the page. It will say "Click here to go the the pedigree tree." Click there.
You will be brought back to the start page of phpGedView.
Voila. You are done.
Step by step installation of phpGedView in MySQL mode
Here are the steps of setting up the MySQL module:
Start phpGedView
Fill in the fields as follows and save congfiguration
You can either browse for the file or enter its location. Input the gedcom file you like to import.
Click the button: Upload Gedcom
Change any of the fields you like to customize it for yourself and then click save configuration.
Important !!! Click on the button: Import this gedcom file.
The following screen will show the status of the import. Scroll down to check for any errors. At the bottom click on the link: Click here to go to the pedigree tree
You will be brought back to the start page of phpGedView.
Voila. You are done.
If this doesn't help, please let me know.
Regards,
Roland
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2003-12-16
Hi ronald
I reinstalled en completed the installation successful ??
But now I get no loop but the message
Warning: Undefined variable: _SERVER in /home/sites/site302/web/phpGedView/authentication_index.php on line 239
Warning: Cannot add header information - headers already sent by (output started at /home/sites/site302/web/phpGedView/authentication_index.php:239) in /home/sites/site302/web/phpGedView/login.php on line 41
Can you help me out ??
Thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2003-12-16
Hi ronald
I reinstalled en completed the installation successful ??
But now I get no loop but the message
Warning: Undefined variable: _SERVER in /home/sites/site302/web/phpGedView/authentication_index.php on line 239
Warning: Cannot add header information - headers already sent by (output started at /home/sites/site302/web/phpGedView/authentication_index.php:239) in /home/sites/site302/web/phpGedView/login.php on line 41
Can you help me out ??
Thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2003-12-16
Hello Cees,
You can call me Roland ;)
[Quote]
I reinstalled en completed the installation successful ??
[/Unquote]
Are you asking me or telling me? If you ask me, the installation did not go successfull as I still get the same errors as mentioned before. My guess is that you are on a *nix server. Did you give write permission to config.php, authenticate.php, and the "index" directory?
I was able to get a view of something by accessing the indilist.php page. Browsing around further I could see that you have not imported the gedcom file.
Are you able to import the gedcom file? If not, do you get error messages there also and which ones?
I can check your site further as soon as the gedcom file is imported. That is a first that we need to do.
Regards,
Roland
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
If you get the message undefined variable _SERVER then you are running on an older version of PHP.
PhpGedView requires at least PHP version 4.1.0. My first recommendation would be to contact your web site hosting service and ask if they will upgrade to a newer version of PHP.
If your host won't upgrade to a newer version of PHP, then you have to go through the code and change every reference to $_SERVER to $HTTP_SERVER_VARS.
--John
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2003-12-16
Hi Roland (sorry for misspelling your name)
I started phpGedView thought I had installed succesfully, Filledin the fields in on the first page and save congfiguration
but it seems I am again in the same loop !
I did give write permissions en manually uploaded the GedCom file to the index directory
I am usinf PHP 4.0.6
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2003-12-16
Hello Cees,
As you can see, John also mentioned that you need at least PHP 4.1.0. Please check if your host wants to upgrade.
That is not a stopping problem. I can see that the gedcom is still not imported.
Can you send me a username and password for your installation at botak at sourceforge dot net?
I will then see if I can do something to solve the problem if that is OK with you?
Afterwards you can remove that user again.
Regards,
Roland
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2003-12-16
Hi Roland,
That is a very kind offer and I gladly accept your help
username ckworld
password 002079
Regards
Cees
PS: where are you from Roland (Dalmunder sounds scandinavian to me ?)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2003-12-16
Hello Cees,
Unfortunately is my logon unsuccessful due to the missing _SERVER variable.
Added in session.php after //-- start the php session the line
$_SERVER = $HTTP_SERVER_VARS;
No result
(I mailed my server to upgrade to php 4.10, no answer yet)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2003-12-17
Hey Cees,
As you said, I also found that there is no result :(
I still cannot login as I get the undefined variable $HTTP_SERVER_VARS message when I try.
Are you able to log on?
I am at work at the moment, so I do not have my resources available. Unfortunately I cannot help you any further at the moment, I will look into it tonight.
Regards,
Roland
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2003-12-17
Hi Roland,
I cannot login:
message:
Warning: Undefined variable: HTTP_SERVER_VARS in /home/sites/site302/web/phpGedView/authentication_index.php on line 239
Warning: Cannot add header information - headers already sent by (output started at /home/sites/site302/web/phpGedView/authentication_index.php:239) in /home/sites/site302/web/phpGedView/login.php on line 41
ANyhow thanks for your help
We kunnen natuurlijk ook nederlands mailen /
Groetjes
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The best method to fix this error is to have your host upgrade their version of PHP. It is better for security and more stable.
The next way to fix this error is:
1. in session.php add the line:
$_SERVER = $HTTP_SERVER_VARS;
2. Every time $_SERVER is called within a function, you need to make it global by adding the following line just after the function definition:
global $_SERVER;
--John
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2003-12-18
Hello Cees and Cuxy,
At the moment I am looking for a Windows binary zip file of PHP 4.0.1 to be able to setup a test system to reproduce your problem. This will help me to fix it in an easier manner and for testing purposes.
Until now I have not been able to find one :( I hope to be able to come with the first solution tomorrow night (Friday 18 dec) GMT+1. Please bear with me a bit longer ;)
Regards,
Roland
P.s. Cees, we could converse in Dutch but it is sort of difficult for other ppl to follow ;)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2003-12-18
Hello Cees and Cuxy,
I found some time to look into the problem further and also come with a conclusion.
First of all, it is a snakepit :) This means, changing one thing and then you will have to change a lot more. The solution is not as simple as I imagined.
Reasons:
1. There is no proper way for me to test my changes.
2. Both of you have a different version of PGV
3. More changes are required than planned.
What to do?
As John said, the priority should be an upgrade of PHP namely because of security issues. What is opinion of your hosts on upgrading?
Second, I am willing to help you out but that will mean 3 things:
1. Most of all it will take some time as you will have to do the testing for me.
2. You should both install the latest version of PGV either in SQL or index (as you have it now). This will ensure I don't have to do the work twice ;)
3. I do require regular feedback.
Time estimate is 1-2 days.
My final question now is which course of action do you want to take?
Regards,
Roland
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2003-12-19
Hi Roland,
My provider mailed me that I could change servers, on another server they are using PHP 4.3.4.
I means complete reinstalling and uploading my website (about 3000 files) to this server
Wat would your advise be ??
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
And now ?????
Warning: Undefined variable: _SERVER in /home/sites/site302/web/phpGedView/authentication_index.php on line 239
Warning: Cannot add header information - headers already sent by (output started at /home/sites/site302/web/phpGedView/authentication_index.php:239) in /home/sites/site302/web/phpGedView/login.php on line 41
Cees,
Please check this link:
https://sourceforge.net/forum/message.php?msg_id=2304009
Your problem is described there.
If you still experience problems, please let us know.
We can take it from there.
Regards,
Roland
see here for error
http://about.cuxy.com/familytree/phpGedView/login.php?url=editgedcoms.php
php vr 4.0.6
I followed the directions here
https://sourceforge.net/forum/message.php?msg_id=2304009
but i still get the same error
??
CR
Hi Cees,
Can you tell me which PHP version you are running?
A link to the "problem" would also be helpful.
Regards,
Roland
Hi Roland,
How can I tel which PHP I use ?
The link is
http://www.kloosterman.be/phpGedView/
Thanks
Log in and go to the admin screen
from there click on the link "Show PHPInfo Page"
If you can't get that far, here is what john posted a few times:
You can get the versions of PHP and Apache by creating a phpinfo file. Create a file named phpinfo.php and put the following three lines in it:
<?php
phpinfo();
?>
Then point your browser to it and you will see more than you ever wanted to know about your PHP configuration.
Hello Cees,
Well visiting that link you gave shows me that the script is stuck in a loop. This is what I get:
Warning: Supplied argument is not a valid File-Handle resource in /home/sites/site302/web/phpGedView/functions.php on line 1262
Warning: Supplied argument is not a valid File-Handle resource in /home/sites/site302/web/phpGedView/functions.php on line 1263
Warning: Supplied argument is not a valid File-Handle resource in /home/sites/site302/web/phpGedView/functions.php on line 1262
The error relates to a problem opening a file, which makes sense because before that the following warning is shown: Warning: fopen("","r")
Between the "" should be a filename.
Anyway, lets go through this step by step.
First of all to see which version of PHP you are running you can make a file and call it info.php and put the following in it:
<?php
phpinfo();
?>
That is all. Save the file to your webserver folder and call it from the browser. All the way at the top left hand corner it will tell you your PHP version.
What I am actually more interested in now is to know if you completed the installation successful?
My advice is to first remove your current installation and follow the steps outlined here:
Step by step installation of phpGedView in index mode
Here are the steps of setting up the index module:
Start phpGedView
Fill in the fields in on the first page and save congfiguration
Create the admin user
Click on the "Click here to continue link"
Upload Gedcom
You can either browse for the file or enter its location. Input the gedcom file you like to import.
Upload gedcom
Change any of the fields you like to customize it for yourself and then click save configuration.
Important !!! Click on the Import this gedcom file button.
Do you want to empty the dataset? Click yes.
Scroll down the page. It will say "Click here to go the the pedigree tree." Click there.
You will be brought back to the start page of phpGedView.
Voila. You are done.
Step by step installation of phpGedView in MySQL mode
Here are the steps of setting up the MySQL module:
Start phpGedView
Fill in the fields as follows and save congfiguration
PhpGedView Datastore: MySQL
MySQL Database host: <usually localhost>
MySQL Database username: <your username>
MySQL Database password: <your password>
Database name: phpgedview
Database table prefix: pgv_
Allow visitors to change gedcoms: <yes/no>
Index file directory: ./index/
Authentication Module File: authentication_mysql.php
Allow users to request account registration: <yes/no>
Allow users to select their own theme: <yes/no>
Archive Log Files: <Disable Logging/Daily/Weekly/Monthly/Yearly>
Session save path: <usually empty>
Session timeout: 7200
Create the admin user
Click on the link: "Click here to continue link"
Click on the link: Upload Gedcom
You can either browse for the file or enter its location. Input the gedcom file you like to import.
Click the button: Upload Gedcom
Change any of the fields you like to customize it for yourself and then click save configuration.
Important !!! Click on the button: Import this gedcom file.
The following screen will show the status of the import. Scroll down to check for any errors. At the bottom click on the link: Click here to go to the pedigree tree
You will be brought back to the start page of phpGedView.
Voila. You are done.
If this doesn't help, please let me know.
Regards,
Roland
Hi ronald
I reinstalled en completed the installation successful ??
But now I get no loop but the message
Warning: Undefined variable: _SERVER in /home/sites/site302/web/phpGedView/authentication_index.php on line 239
Warning: Cannot add header information - headers already sent by (output started at /home/sites/site302/web/phpGedView/authentication_index.php:239) in /home/sites/site302/web/phpGedView/login.php on line 41
Can you help me out ??
Thanks
Hi ronald
I reinstalled en completed the installation successful ??
But now I get no loop but the message
Warning: Undefined variable: _SERVER in /home/sites/site302/web/phpGedView/authentication_index.php on line 239
Warning: Cannot add header information - headers already sent by (output started at /home/sites/site302/web/phpGedView/authentication_index.php:239) in /home/sites/site302/web/phpGedView/login.php on line 41
Can you help me out ??
Thanks
Hello Cees,
You can call me Roland ;)
[Quote]
I reinstalled en completed the installation successful ??
[/Unquote]
Are you asking me or telling me? If you ask me, the installation did not go successfull as I still get the same errors as mentioned before. My guess is that you are on a *nix server. Did you give write permission to config.php, authenticate.php, and the "index" directory?
I was able to get a view of something by accessing the indilist.php page. Browsing around further I could see that you have not imported the gedcom file.
Are you able to import the gedcom file? If not, do you get error messages there also and which ones?
I can check your site further as soon as the gedcom file is imported. That is a first that we need to do.
Regards,
Roland
If you get the message undefined variable _SERVER then you are running on an older version of PHP.
PhpGedView requires at least PHP version 4.1.0. My first recommendation would be to contact your web site hosting service and ask if they will upgrade to a newer version of PHP.
If your host won't upgrade to a newer version of PHP, then you have to go through the code and change every reference to $_SERVER to $HTTP_SERVER_VARS.
--John
Hi Roland (sorry for misspelling your name)
I started phpGedView thought I had installed succesfully, Filledin the fields in on the first page and save congfiguration
but it seems I am again in the same loop !
I did give write permissions en manually uploaded the GedCom file to the index directory
I am usinf PHP 4.0.6
Hello Cees,
As you can see, John also mentioned that you need at least PHP 4.1.0. Please check if your host wants to upgrade.
That is not a stopping problem. I can see that the gedcom is still not imported.
Can you send me a username and password for your installation at botak at sourceforge dot net?
I will then see if I can do something to solve the problem if that is OK with you?
Afterwards you can remove that user again.
Regards,
Roland
Hi Roland,
That is a very kind offer and I gladly accept your help
username ckworld
password 002079
Regards
Cees
PS: where are you from Roland (Dalmunder sounds scandinavian to me ?)
Hello Cees,
Unfortunately is my logon unsuccessful due to the missing _SERVER variable.
Please make the necessary changes to the files as mentioned here: https://sourceforge.net/forum/message.php?msg_id=2304009
Then I can try to logon again.
Regards,
Roland.
P.s. I am in Rotterdam, Netherlands :)
Cuxy,
There is no error when I go to your link. All I get is the login screen.
Regards,
Roland
I get same error ckworld does i did follow directions mentioned here: https://sourceforge.net/forum/message.php?msg_id=2304009
Added in session.php
$_SERVER = $HTTP_SERVER_VARS;
with no luck try
to login from my link and u will see error
usr= admin
pswd= 55555
Hi Roland
I followed as mentioned here: https://sourceforge.net/forum/message.php?msg_id=2304009
Added in session.php after //-- start the php session the line
$_SERVER = $HTTP_SERVER_VARS;
No result
(I mailed my server to upgrade to php 4.10, no answer yet)
Hey Cees,
As you said, I also found that there is no result :(
I still cannot login as I get the undefined variable $HTTP_SERVER_VARS message when I try.
Are you able to log on?
I am at work at the moment, so I do not have my resources available. Unfortunately I cannot help you any further at the moment, I will look into it tonight.
Regards,
Roland
Hi Roland,
I cannot login:
message:
Warning: Undefined variable: HTTP_SERVER_VARS in /home/sites/site302/web/phpGedView/authentication_index.php on line 239
Warning: Cannot add header information - headers already sent by (output started at /home/sites/site302/web/phpGedView/authentication_index.php:239) in /home/sites/site302/web/phpGedView/login.php on line 41
ANyhow thanks for your help
We kunnen natuurlijk ook nederlands mailen /
Groetjes
The best method to fix this error is to have your host upgrade their version of PHP. It is better for security and more stable.
The next way to fix this error is:
1. in session.php add the line:
$_SERVER = $HTTP_SERVER_VARS;
2. Every time $_SERVER is called within a function, you need to make it global by adding the following line just after the function definition:
global $_SERVER;
--John
Hello Cees and Cuxy,
At the moment I am looking for a Windows binary zip file of PHP 4.0.1 to be able to setup a test system to reproduce your problem. This will help me to fix it in an easier manner and for testing purposes.
Until now I have not been able to find one :( I hope to be able to come with the first solution tomorrow night (Friday 18 dec) GMT+1. Please bear with me a bit longer ;)
Regards,
Roland
P.s. Cees, we could converse in Dutch but it is sort of difficult for other ppl to follow ;)
Hello Cees and Cuxy,
I found some time to look into the problem further and also come with a conclusion.
First of all, it is a snakepit :) This means, changing one thing and then you will have to change a lot more. The solution is not as simple as I imagined.
Reasons:
1. There is no proper way for me to test my changes.
2. Both of you have a different version of PGV
3. More changes are required than planned.
What to do?
As John said, the priority should be an upgrade of PHP namely because of security issues. What is opinion of your hosts on upgrading?
Second, I am willing to help you out but that will mean 3 things:
1. Most of all it will take some time as you will have to do the testing for me.
2. You should both install the latest version of PGV either in SQL or index (as you have it now). This will ensure I don't have to do the work twice ;)
3. I do require regular feedback.
Time estimate is 1-2 days.
My final question now is which course of action do you want to take?
Regards,
Roland
Hi Roland,
My provider mailed me that I could change servers, on another server they are using PHP 4.3.4.
I means complete reinstalling and uploading my website (about 3000 files) to this server
Wat would your advise be ??