Menu

Unable to upload Gedcom file with MySQL ver

Help
John T
2003-03-11
2003-04-21
  • John T

    John T - 2003-03-11

    After uploading my database, I realized I uploaded the wrong file.  I tried to upload my new file and got this:

    +++++++++++++++++++++++++++++++
    Reading Gedcom File ftp://ftp.trainerfamily.net

    Warning: file(ftp://ftp.trainerfamily.net) [function.file]: failed to create stream: Success in /home/jtrainer/public_html/phpgedview/functions.php on line 593

    Warning: implode() [function.implode]: Bad arguments. in /home/jtrainer/public_html/phpgedview/functions.php on line 594
    Flushing contents
    Using performance enhanced code for PHP v. 4.3.0
    Regular expression complete:
    Total Execution time: 0 sec.

    Import complete
    +++++++++++++++++++++++++++++++++

    There are no families or individuals in my database now.  What happened, and what should I do?

    Thanks,
    John

    BTW: So far a nice job you've done.  I'm impressed.

     
    • John T

      John T - 2003-03-12

      Never mind, Solved.

       
    • Tomas Ahlbeck

      Tomas Ahlbeck - 2003-04-18

      Well, i have not solved this. i ahev the same problem. have tried several different versions of gedcomfiles too (4.0, 5.5, windows and ansel) but I do not get any records, individuals or whatever.
      What to do, what to do?

       
    • John Finlay

      John Finlay - 2003-04-18

      There are several ways to point to the gedcom file:

      1. Use an absolute path something like this: /home/username/public_html/PhpGedView/gedcom.ged

      2. Use a relative path something like this: gedcom.ged

      3. Use a URL something like this: http://www.yourhost.com/PhpGedView/gedcom.ged

      If you can't get it to work with any of those methods, then something else to check is your permissions.  Make sure the file has world read permissions (at least until the import is complete, then you can delete the file if you want).

      To double check that there wasn't something wrong with PhpGedView, I installed a fresh copy of it on my webserver and successfully imported using all three methods of referencing the gedcom file and all three worked.  So there is something wrong with the way you are referencing the file.

      Would you mind posting your specific error messages?

      --John

       
    • Tomas Ahlbeck

      Tomas Ahlbeck - 2003-04-19

      Hi.
      I have now set permission to 777, just to be certain. I also dropped the old tables and created new ones.
      This is the results I get. There are still no records...

      GEDCOM_FILE: gedcom
      FILE: gedcom
      TITLE: anything.ged

      Database Tables Dropped

      Successfully created Individuals table.
      Successfully created Families table.
      Successfully created Sources table.
      Successfully created Other table.
      Successfully created Gedcoms table.
      Importing Records into Database

      PLEASE BE PATIENT

      Reading Gedcom File gedcom
      Flushing contents
      Using performance enhanced code for PHP v. 4.3.0
      Regular expression complete:
      Total Execution time: 0 sec.

      Import complete

       
    • John Finlay

      John Finlay - 2003-04-21

      I'm sorry that it has been giving you problems.  I have been trying to maintain two different sections of code, one for php 4.3 and up and one for versions of php less than 4.3.  It seems that the 4.3 code doesn't always work properly.  I've decided to take it out completely since it doesn't really speed up the import that much.  You can download the new importgedcom.php file from the CVS here http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/\*checkout*/phpgedview/phpGedView/MySQL/importgedcom.php?rev=HEAD&content-type=text/plain

      --John

       

Log in to post a comment.