Menu

Accept changes error

Help
2010-06-18
2013-05-30
  • David O'Sullivan

    I'm really new to phpgedview and perhaps someone can show me why I am getting the following error.
    I have two gedcoms on the server. One (Osullivan) accepts changes without error, the other (OSullivan/McGeehin) accepts changes by generates the following error (truncated).


    Review GEDCOM Changes

    ERROR 2: fopen(./index/) : failed to open stream: Is a directory
    0 Error occurred on in function fopen
    1 called from line 1277 of file functions_import.php in function write_file
    2 called from line 1376 of file functions_import.php in function accept_changes
    3 called from line 69 of file edit_changes.php

    Warning: fopen(./index/) : failed to open stream: Is a directory in /home/wrighto1/public_html/osullivanbally.org/phpgedview/includes/functions/functions_import.php on line 1277
    ERROR 6: Unable to open GEDCOM file resource. Unable to complete request. Changes successfully accepted into database

    There are currently no changes to be reviewed.


    In the gedcoms.php file, the erroring gedcom (OSullivan/McGeehin) does not seen to have the full set of filenames. They do not seem to have generated. Is it maybe the "/" in the gedcom name that's causing the problem?

    <?php
    //-START GEDCOM CONFIGURATIONS
    $GEDCOMS = array();
    $gedarray = array();
    $gedarray = "";
    $gedarray = "${INDEX_DIRECTORY}_conf.php";
    $gedarray = "${INDEX_DIRECTORY}_priv.php";
    $gedarray = "OSullivan/McGeehin";
    $gedarray = "${INDEX_DIRECTORY}";
    $gedarray = "4.2.3";
    $gedarray = true;
    $gedarray = "2";
    $GEDCOMS = $gedarray;
    $gedarray = array();
    $gedarray = "OSullivan.ged";
    $gedarray = "${INDEX_DIRECTORY}OSullivan.ged_conf.php";
    $gedarray = "${INDEX_DIRECTORY}OSullivan.ged_priv.php";
    $gedarray = "O'Sullivan";
    $gedarray = "${INDEX_DIRECTORY}OSullivan.ged";
    $gedarray = "4.2.3";
    $gedarray = true;
    $gedarray = "4";
    $GEDCOMS = $gedarray;

    ?>

    Any suggestions appreciated.
    Thanks

     
  • ggpauly

    ggpauly - 2010-06-18

    Hi David,

    Welcome to PGV.

    Try changing OSullivan/McGeehin to something without a slash, like OSullivan-McGeehin.  Php may be interpreting that as a directory separator. 

    George

     

Log in to post a comment.