Re: [Phpgedview-talk] failing to upload replacement gedcom
Brought to you by:
canajun2eh,
yalnifj
From: Tony <pth...@gm...> - 2008-03-21 18:54:30
|
Solved- I've figured out the problem/bug/feature. The original ged file was called PublicGraham2008.GED. The updated version has been supplied as PublicGrahamMarch2008.GED with the expectation that on uploading it it would replace the older data. By renaming the new file temporarily to match the old name before trying to upload it, it is possible to now use the 'upload replacement' function without generating the errors that I was getting as below. So the upload user interface should insist that the filename matches the original one, or else be able to cope with it being different. Allowing it to be different and then failing because of that is a bug IMO. Anyone think I should report it somewhere? Cheers, Tony On Fri, Mar 21, 2008 at 11:37 AM, Tony <pth...@gm...> wrote: > Hi, > > I am failing to upload a replacement gedcom to a site of mine that has a > working but slightly outdated gedcom already in place. > > I've updated from subversion and am at build 2756- so am up to date at the > time of posting. > > The errors I see start as follows: > > Performing GEDCOM validation... > > ERROR 8: Undefined index: PublicGrahamMarch2008.GED > 0 Error occurred on in function *unknown* > 1 called from line *565* of file *uploadgedcom.php* > > ERROR 2: feof(): supplied argument is not a valid stream resource > 0 Error occurred on in function *feof* > 1 called from line *567* of file *uploadgedcom.php* > > *Warning*: feof(): supplied argument is not a valid stream resource in * > /var/www/vhosts/graham/phpgedview/uploadgedcom.php* on line *567* > > ERROR 2: fread(): supplied argument is not a valid stream resource > 0 Error occurred on in function *fread* > 1 called from line *568* of file *uploadgedcom.php* > > *Warning*: fread(): supplied argument is not a valid stream resource in * > /var/www/vhosts/graham/phpgedview/uploadgedcom.php* on line *568* > > ERROR 2: feof(): supplied argument is not a valid stream resource > 0 Error occurred on in function *feof* > 1 called from line *567* of file *uploadgedcom.php* > > *Warning*: feof(): supplied argument is not a valid stream resource in * > /var/www/vhosts/graham/phpgedview/uploadgedcom.php* on line *567* > > ERROR 2: fread(): supplied argument is not a valid stream resource > 0 Error occurred on in function *fread* > 1 called from line *568* of file *uploadgedcom.php > > .... and so on until memory resources cause to browser to crawl to a halt > * > I can see that the new gedfile has successfully uploaded to my > phpgedview/index folder, but for some reason it just won't validate. > > The server is running CentOS 4 - and I have tried switching selinux off to > see if that was preventing access to the newly uploaded file, but I don't > currently think that is the problem. > > Does anyone have any suggestions as to ways to debug this, or obvious > mistakes that I'm making? > > > -- > Cheers, > > Tony -- Cheers, Tony |