Errors trying to download GED in Gramps XML

Help
Tom Tucker
2012-04-09
2013-05-30
  • Tom Tucker

    Tom Tucker - 2012-04-09

    I get the following when trying to download the GED in Gramps XML format..

    All other functions seem to work.

    Thanks to anyone for help.

    ERROR 2: Missing argument 2 for find_media_record(), called in /var/www/family/includes/classes/class_grampsexport.php on line 432 and defined
    0 Error occurred on line 1021 of file functions_db.php in function find_media_record
    1 called from line 432 of file class_grampsexport.php in function create_mediaref
    2 called from line 289 of file class_grampsexport.php in function create_event
    3 called from line 215 of file class_grampsexport.php in function create_event_ref
    4 called from line 142 of file class_gedownloadgedcom.php in function create_person
    5 called from line 412 of file functions_export.php in function export_gramps
    6 called from line 92 of file downloadgedcom.php
    Warning: Missing argument 2 for find_media_record(), called in /var/www/family/includes/classes/class_grampsexport.php on line 432 and defined in /var/www/family/includes/functions/functions_db.php on line 1021
    ERROR 8: Undefined variable: ged_id
    0 Error occurred on line 1030 of file functions_db.php in function find_media_record
    1 called from line 432 of file class_grampsexport.php in function create_mediaref
    2 called from line 289 of file class_grampsexport.php in function create_event
    3 called from line 215 of file class_grampsexport.php in function create_event_ref
    4 called from line 142 of file class_gedownloadgedcom.php in function create_person
    5 called from line 412 of file functions_export.php in function export_gramps
    6 called from line 92 of file downloadgedcom.php
    Notice: Undefined variable: ged_id in /var/www/family/includes/functions/functions_db.php on line 1030
    ERROR 2: Missing argument 2 for find_media_record(), called in /var/www/family/includes/classes/class_grampsexport.php on line 432 and defined
    0 Error occurred on line 1021 of file functions_db.php in function find_media_record
    1 called from line 432 of file class_grampsexport.php in function create_mediaref
    2 called from line 289 of file class_grampsexport.php in function create_event
    3 called from line 215 of file class_grampsexport.php in function create_event_ref
    4 called from line 142 of file class_gedownloadgedcom.php in function create_person
    5 called from line 412 of file functions_export.php in function export_gramps
    6 called from line 92 of file downloadgedcom.php
    Warning: Missing argument 2 for find_media_record(), called in /var/www/family/includes/classes/class_grampsexport.php on line 432 and defined in /var/www/family/includes/functions/functions_db.php on line 1021
    ERROR 8: Undefined variable: ged_id
    0 Error occurred on line 1030 of file functions_db.php in function find_media_record
    1 called from line 432 of file class_grampsexport.php in function create_mediaref
    2 called from line 289 of file class_grampsexport.php in function create_event
    3 called from line 215 of file class_grampsexport.php in function create_event_ref
    4 called from line 142 of file class_gedownloadgedcom.php in function create_person
    5 called from line 412 of file functions_export.php in function export_gramps
    6 called from line 92 of file downloadgedcom.php
    Notice: Undefined variable: ged_id in /var/www/family/includes/functions/functions_db.php on line 1030
    ERROR 2: Missing argument 2 for find_media_record(), called in /var/www/family/includes/classes/class_grampsexport.php on line 432 and defined
    0 Error occurred on line 1021 of file functions_db.php in function find_media_record
    1 called from line 432 of file class_grampsexport.php in function create_mediaref
    2 called from line 289 of file class_grampsexport.php in function create_event
    3 called from line 215 of file class_grampsexport.php in function create_event_ref
    4 called from line 142 of file class_gedownloadgedcom.php in function create_person
    5 called from line 412 of file functions_export.php in function export_gramps
    6 called from line 92 of file downloadgedcom.php
    Warning: Missing argument 2 for find_media_record(), called in /var/www/family/includes/classes/class_grampsexport.php on line 432 and defined in /var/www/family/includes/functions/functions_db.php on line 1021
    ERROR 8: Undefined variable: ged_id
    0 Error occurred on line 1030 of file functions_db.php in function find_media_record
    1 called from line 432 of file class_grampsexport.php in function create_mediaref
    2 called from line 289 of file class_grampsexport.php in function create_event
    3 called from line 215 of file class_grampsexport.php in function create_event_ref
    4 called from line 142 of file class_gedownloadgedcom.php in function create_person
    5 called from line 412 of file functions_export.php in function export_gramps
    6 called from line 92 of file downloadgedcom.php
    Notice: Undefined variable: ged_id in /var/www/family/includes/functions/functions_db.php on line 1030
    ERROR 2: Missing argument 2 for find_media_record(), called in /var/www/family/includes/classes/class_grampsexport.php on line 432 and defined
    0 Error occurred on line 1021 of file functions_db.php in function find_media_record
    1 called from line 432 of file class_grampsexport.php in function create_mediaref
    2 called from line 289 of file class_grampsexport.php in function create_event
    3 called from line 215 of file class_grampsexport.php in function create_event_ref
    4 called from line 142 of file class_gedownloadgedcom.php in function create_person
    5 called from line 412 of file functions_export.php in function export_gramps
    6 called from line 92 of file downloadgedcom.php
    Warning: Missing argument 2 for find_media_record(), called in /var/www/family/includes/classes/class_grampsexport.php on line 432 and defined in /var/www/family/includes/functions/functions_db.php on line 1021
    ERROR 8: Undefined variable: ged_id
    0 Error occurred on line 1030 of file functions_db.php in function find_media_record
    1 called from line 432 of file class_grampsexport.php in function create_mediaref
    2 called from line 289 of file class_grampsexport.php in function create_event
    3 called from line 215 of file class_grampsexport.php in function create_event_ref
    4 called from line 142 of file class_gedownloadgedcom.php in function create_person
    5 called from line 412 of file functions_export.php in function export_gramps
    6 called from line 92 of file downloadgedcom.php
    Notice: Undefined variable: ged_id in /var/www/family/includes/functions/functions_db.php on line 1030
    ERROR 2: Cannot modify header information - headers already sent by (output started at /var/www/family/includes/functions/functions.php:500)
    Warning: Cannot modify header information - headers already sent by (output started at /var/www/family/includes/functions/functions.php:500) in /var/www/family/downloadgedcom.php on line 103

     
  • Gerry Kroll

    Gerry Kroll - 2012-04-09

    Try replacing line 432 of file includes/classes/class_grampsexport.php with the following:

    $this->create_media($mediaId, find_media_record($mediaId, PGV_GED_ID), $level);
    

    Please let us know whether this fixes your problem.

     
  • Tom Tucker

    Tom Tucker - 2012-04-10

    Looks like that worked.. Thank you very much!

     
  • Tom Tucker

    Tom Tucker - 2012-04-10

    Well, I thought it worked.. It exported the file in gramps format, but ALL relationships are unknown when I import it into Gramps.

    When I import the GED file, the relationships are there, but the links to media are not…

     
  • Gerry Kroll

    Gerry Kroll - 2012-04-10

    Regarding the download/export from PGV in GEDCOM format:

    What version of PGV are you using?  You should be running version 4.3.0 (the "SVN" version).  Download and upgrade/install instructions are in the recent Help topic whose title begins with "Repost: Download …"  There have been no changes in PGV's export routine from version 4.2.4, so if that's the version you're running, you don't need to upgrade just to do the Download/Export.

    The GEDCOM produced by PGV contains the proper media links.  You can tell PGV's download/export routine what path should be used to point to the media files, and whether forward or backslashes are to be used in the path.  The media path created by PGV in the output GEDCOM should point to a directory on your local PC or the server, depending on how the GEDCOM will be used by the receiving program.

    The Help text associated with the Convert Media Path option in the GEDCOM Download dialog contains ample information to guide you.

    You need to consider that the media files are NOT exported by PGV - they are separate files in the server's file space, and it's your responsibility to copy them to the proper directory structure on your local PC (if that's how the GEDCOM will be used).  Normally, you wouldn't copy the thumbnail directory.

    You also need to use the Media Manager in GRAMPS to point to the proper directory structure.

    Regarding the download/export from PGV in GRAMPS format:

    This option has not been properly tested, and if you really want to use it, you need to ask the GRAMPS user community for help and a diagnosis of your problem.  Once they tell you what's wrong, let us know, and we'll see what can be done to fix the problem in PGV.  A solution will not be forthcoming without the help of the GRAMPS user community, and it will certainly take some time to develop and implement.

    The immediate problem (the one you first reported and which seems to be cured by the minor correction to the PGV source code) will be copied to the SVN repository right away.  Thank you.

     

Log in to post a comment.