I am not a very technical person and Google searches just made my head go crazy and was hoping to get some help here. I've narrowed down my issues seemingly to a PHP issue. I initially thought my upgrade from php4 to php5 was screwy and had taken a backup of my DB before I did that. I restored this dump to a new DB but still am getting the error below. Was hoping someone technical can guide me through it. Seems like it only occurs when I click on an individual. I don't know enough about PHP to be able to decode this. Any help would be appreciated. Thank you.
ERROR 8: Undefined index: M
0 Error occurred on line 512 of file individual_ctrl.php in function print_sex_record
1 called from line 95 of file individual.php
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hardly a PHP issue, but rather in your code - a problem with an "M" in the 1 SEX tag.
Just a side note, when you ask for help, please furnish your platform information, versions and PGV version:
i.e. Apache 2.2, PHP 5.3, MySQL 5, PGV v4.3 versions can affect help issues many times, but most likely, not in this situation.
I'm not sure how to locate the bad data, but it depends on how large your GEDCOm is whether you simply look through all the lines.
Perhaps Gerry has another idea. -Stephen
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
"M" is correct for male persons. However, it's possible that at least one of the individuals in your database has a sex record with ether a blank in front of the "M" or some unprintable character before or after the "M".
A properly constructed 1 SEX record has a single blank between the "SEX" and the "M".
If you know which person in your database is causing the error, you just need to examine the detailed GEDCOM lines for that person.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
NOT a bug! The table structure changed. Hence one of the reasons it was recommended that you provide your level of software versions when asking for help. Had you mentioned that you had upgraded from one version to another, we would have known to inquire as to whether or not you had reimported the GEDCOM. The need to do so is usually included with any release that required this procedure. -Stephen
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi all,
I am not a very technical person and Google searches just made my head go crazy and was hoping to get some help here. I've narrowed down my issues seemingly to a PHP issue. I initially thought my upgrade from php4 to php5 was screwy and had taken a backup of my DB before I did that. I restored this dump to a new DB but still am getting the error below. Was hoping someone technical can guide me through it. Seems like it only occurs when I click on an individual. I don't know enough about PHP to be able to decode this. Any help would be appreciated. Thank you.
ERROR 8: Undefined index: M
0 Error occurred on line 512 of file individual_ctrl.php in function print_sex_record
1 called from line 95 of file individual.php
Hardly a PHP issue, but rather in your code - a problem with an "M" in the 1 SEX tag.
Just a side note, when you ask for help, please furnish your platform information, versions and PGV version:
i.e. Apache 2.2, PHP 5.3, MySQL 5, PGV v4.3 versions can affect help issues many times, but most likely, not in this situation.
I'm not sure how to locate the bad data, but it depends on how large your GEDCOm is whether you simply look through all the lines.
Perhaps Gerry has another idea.
-Stephen
"M" is correct for male persons. However, it's possible that at least one of the individuals in your database has a sex record with ether a blank in front of the "M" or some unprintable character before or after the "M".
A properly constructed 1 SEX record has a single blank between the "SEX" and the "M".
If you know which person in your database is causing the error, you just need to examine the detailed GEDCOM lines for that person.
Actually I found an old thread which helped resolve my issue. My apologies for a repost.
For all those who come across, you can resolve your issue using instructions here. Seems like there is a bug when upgrading and you need to upload a replacement file of the same gedcom.
https://sourceforge.net/projects/phpgedview/forums/forum/185166/topic/3322341
NOT a bug! The table structure changed. Hence one of the reasons it was recommended that you provide your level of software versions when asking for help. Had you mentioned that you had upgraded from one version to another, we would have known to inquire as to whether or not you had reimported the GEDCOM. The need to do so is usually included with any release that required this procedure.
-Stephen