Menu

Update from 4.15 - 4.21 Importing GEDCOM

2009-07-09
2013-05-30
  • glen stadig

    glen stadig - 2009-07-09

    I upgrade from 4.15 to 4.21 ALL and followed direction from WIKI
    After copying up the files and going to the site it says i have to import GEDCOM as expected...
    When I select GedCom to import i get the following Errors...

    ERROR 2: move_uploaded_file(./gedcom/gedcom) [function.move-uploaded-file]: failed to open stream: No such file or directory
    0 Error occurred on in function move_uploaded_file
    1 called from line 120 of file editconfig_gedcom.php

    Warning: move_uploaded_file(./gedcom/gedcom) [function.move-uploaded-file]: failed to open stream: No such file or directory in /home2/stadigor/public_html/ancestors/editconfig_gedcom.php on line 120

    ERROR 2: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/var/tmp/phph1kWQ7' to './gedcom/gedcom'
    0 Error occurred on in function move_uploaded_file
    1 called from line 120 of file editconfig_gedcom.php

    Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/var/tmp/phph1kWQ7' to './gedcom/gedcom' in /home2/stadigor/public_html/ancestors/editconfig_gedcom.php on line 120

    ERROR 2: Cannot modify header information - headers already sent by (output started at /home2/stadigor/public_html/ancestors/includes/functions/functions.php:728)

    Warning: Cannot modify header information - headers already sent by (output started at /home2/stadigor/public_html/ancestors/includes/functions/functions.php:728) in /home2/stadigor/public_html/ancestors/includes/functions/functions_print.php on line 426

    There was an error uploading your file.
    File successfully uploaded

    Do i need to FTP the file up to the server then import? Has the format changed? The WIKI just stated there was a simple import needed after update?

    Do i need to create a new blank gedcom and re-import my gedcom?

    Any steps to get out of this mine field would be appreciated...

     
    • Greg Roach

      Greg Roach - 2009-07-09

      When it says you need to re-import, you just need to import (click on the import link).  You do not need to re-upload.

      The errors suggest that you re-uploaded, but used a different file name.  This confuses PGV, and it doesn't expect the filename to change.

      Assuming you can still get to the manage gedcoms page, just click the import link.

       
      • glen stadig

        glen stadig - 2009-07-09

        When I log in and go to manage Gedcom
        it says a file with that name exists...I click import (replace with new data change to Y keep media link N)

        I get this error...
        Performing GEDCOM validation...

        ERROR 2: copy() [function.copy]: Filename cannot be empty
        0 Error occurred on in function copy
        1 called from line 537 of file uploadgedcom.php

        Warning: copy() [function.copy]: Filename cannot be empty in /home2/stadigor/public_html/ancestors/uploadgedcom.php on line 537

        ERROR 2: fopen(./gedcom/gedcom) [function.fopen]: failed to open stream: No such file or directory
        0 Error occurred on in function fopen
        1 called from line 549 of file uploadgedcom.php

        Warning: fopen(./gedcom/gedcom) [function.fopen]: failed to open stream: No such file or directory in /home2/stadigor/public_html/ancestors/uploadgedcom.php on line 549

        ERROR 2: fclose(): supplied argument is not a valid stream resource
        0 Error occurred on in function fclose
        1 called from line 568 of file uploadgedcom.php

        Warning: fclose(): supplied argument is not a valid stream resource in /home2/stadigor/public_html/ancestors/uploadgedcom.php on line 568
        Valid GEDCOM detected. No cleanup required.

         
    • Stephen Arnold

      Stephen Arnold - 2009-07-10

      glen
      is the GEDCOM you are trying to reimport into PGV replacing an older version? Is it names EXACTLY as it was previously? It can not be different. How did you replace the file? Do you use SYNC or did you DL a replacement from PGV prior to starting this procedure to be sure you had your latest data changes?

      BTW, this belongs under the HELP forum, not here in Open Discussion.
      -Stephen

       
      • glen stadig

        glen stadig - 2009-07-10

        Sorry about the wrong category - - - -

        I did the update as specified in the wiki....and copied the files up.
        removing the cache files etc.
        I than ran import...and had the errors as shown..
        I then tried to upload my back-up GEDCOM that i had from prior to the upgrade
        That didn't work...either.
        That was when i posted up here.

        Would it be best to try an create a new gedcom, then import my old data into it?
        Then set the new one as default?
        Will all my media links stay intact?

         
    • Stephen Arnold

      Stephen Arnold - 2009-07-10

      Glen
      That would be fine. Be sure the GEDCOM has a different name than the original. Yes, your links to your media OBJE are contained in the GEDCOM and should be fine, assuming you have a legitimate copy of your GEDCOM. I'd say you removed too much somewhere, like your GEDCOMS.php file or changed something else. All that was not necessary. BTW, we're less than 3-1/2 weeks from release of v4.2.2, and this will be a most important upgrade to perform.
      -stephen

       
    • glen stadig

      glen stadig - 2009-07-10

      I compared the installed 5.15 and 4.21 and observed the folder /gedcom was missing in the upgrade install....I created the folder and copied my old gedcom into it. Ran import....with erase old data with new data set to Y and Keep Media Links set to N
      The import completed...
      So i am up with 4.21
      The WIKI should state in the "Copy the new Distribution files to server" that the /gedcom folder should remain and be an exception like /index and /media

      Thanks for your help

       
    • Stephen Arnold

      Stephen Arnold - 2009-07-10

      Glen
      Glad you got it working, but there is no GEDCOMs folder/directory as part of the PGV distribution. If you created one, that's your business. Usually GEDCOMS are kept in the INDEX folder, with the other GEDCOM specific data created by PGV upon installation (like the privacy, config and gedcoms.php files).  As part of securing your setup after successful installation, it is recommended you move the INDEX folder to a location outside of the public webspace and make your config.php file no read/write. Although allowed to host the gedcom during installation anywhere you'd like, with the NO SYNC option, its no longer even necessary to have a text GEDCOM present after import.  I keep mine, and my weekly offsite backups (exports), in a special folder on my local computer, not the server.

      So, it would be inappropriate for the installation WIKI to mention a /gedcoms  folder retention as this was of your design and specific to your configuration.
      Stephen

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.