Menu

ERROR 8: Undefined index:

Help
Birchy
2011-04-08
2013-05-30
  • Birchy

    Birchy - 2011-04-08

    This question has been asked before, with no response. If you Google "ERROR 8: Undefined index: phpgedview", you will see dozens, maybe hundreds of sites that have this error displayed. I got it after upgrading to v4.2.3, which I did because someone was able to hack into the previous version and dropped a program which enabled them to do system admin stuff on my (hosted) account.

    Full message:
    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

    The code in question is:

        function print_sex_record(&$event) {
            global $pgv_lang, $sex;
            if (!$event->canShowDetails()) return false;
            $sex = $event->getDetail();
            if (empty($sex)) $sex = "U";
            print "<td valign=\"top\"><span class=\"label\">".$pgv_lang["sex"].": </span><span class=\"field\">".$this->sexarray[$sex];
            if ($sex=='M') {
                echo Person::sexImage('M', 'small', '', $pgv_lang['male']);
            } elseif ($sex=='F') {
                echo Person::sexImage('F', 'small', '', $pgv_lang['female']);
            } else {
                echo Person::sexImage('U', 'small', '', $pgv_lang['unknown']);
            }
    
     
  • Birchy

    Birchy - 2011-04-08

    btw, line 512 is the print statement, and if you Google the error message, use "ERROR 8: Undefined index: M phpgedview".

    Also, I can no longer edit the raw gedcom, the dialog has no field to edit.

    And is there any way to get rid of the annoying "View details for…" boxes that have been added to the right side of the Indivual pages?

    Looks like my maps are broken also.

    http://www.birchy.com/Trees/

     
  • Stephen Arnold

    Stephen Arnold - 2011-04-08

    Birchy
    Looks like you failed to reimport your GEDCOM. the M is contained in a new database field created between 4.2 and 4.2.4.
    Export a current copy and import. These instructions have been in place for sometimes, but amazingly, many admin/users overlook the instructions - hence all the errors.
    -Stephen

     
  • Stephen Arnold

    Stephen Arnold - 2011-04-08

    Birchy
    BTW, you did not import your original gedcom either, since your current gedcom retains the DUMMY account: as your oldest person.  Delete this person now as you don't want to change it (unless you want to merge someone into the I1 slot and replace this record with your merged data - maybe yourself?
    Given Names Surname ‎(I1)‎
    Birth 1 January 1850 - Click edit and change me

     
  • Gerry Kroll

    Gerry Kroll - 2011-04-08

    Birchy:
    You should have upgraded to at least the 4.2.4 version that was released in January.  However, I strongly recommend that you ugrade to the "SVN" version, which is 4.2.4 with more bug fixes.  4.2.4 incorporates a fix for a significant security hole that was identified in early January.

    The SVN version, which self-identifies as "4.3.0 SVN", can be downloaded from the link published in this Help forum under the topic title that starts with "Repost: ".  Upgrade instructions are still the same as they were for previous versions.

     

Log in to post a comment.