[SPT/CWIS] import data * Error: Destination directory/../TempStorage/ doesn't exist.

Kucera, Rich Kucerar at hhmi.org
Thu Dec 7 07:53:55 CST 2006


Lee,
If you able to navigate the code, perhaps put in a var_dump() or two.
For example,  in SPT--ImportDataExecute.php:
...
    $ScriptFileName = $HTTP_SERVER_VARS['PATH_TRANSLATED'];

    $TempDir = dirname($ScriptFileName).
        "/".$NavDirCorrection."TempStorage/";

 var_dump( $NavDirCorrection );
 var_dump($TempDir );
 echo "<pre>".var_export($HTTP_SERVER_VARS, true )."</pre>";

    # make sure destination dir exists
    if (!file_exists($TempDir))
...

The problem may have to do with a problem with $NavDirCorrection(not sure the
cause there).
May also have to do with missing symbolic links(?) from an installation
 that didn't work completely.

Keep looking and HTH,

-----------------------------------------
Rich Kucera
Senior Web Applications Developer
Howard Hughes Medical Institute 
4000 Jones Bridge Road 
Chevy Chase, MD 20815 
(301) 215-8714
 

> -----Original Message-----
> From: spt-cwis-users-bounces at scout.wisc.edu [mailto:spt-cwis-users-
> bounces at scout.wisc.edu] On Behalf Of Lee Jaffe
> Sent: Wednesday, December 06, 2006 5:15 PM
> To: SPT / CWIS Users Discussion List
> Subject: Re: [SPT/CWIS] import data * Error: Destination
> directory/../TempStorage/ doesn't exist.
> 
> I think I found the answer to my own problem.  I looked at the URL of
> the error message and worked my way into the SPT hierarchy to and looked
> at the php files handling the import function.  After a little trial and
> error, I found the TempStorage directory specification in
> /MetadataTool/SPT--ImportDataExecute.php.  I edited the TempStorage
> specification to an absolute path (in my case
> /var/www/scout/TempStorage).  The next time I tried the import function,
> the error did not appear.  (New error about my data format, but a new
> error is progress, no?)
> 
> -- Lee
> 
> Lee Jaffe wrote:
> > I've looked around a bit and haven't been able to find anything that
> > addresses this problem.  This is just a demo install to help us
> > evaluate the Toolkit for local needs.  I have a tab delimited file I
> > exported from Filemaker but no matter what I try I just get this one
> > error message. There is a TempStorage directory in the SPT directory.
> > I saw some earlier correspondence about people getting "not writable"
> > errors regarding this directory.  I double-checked to make sure the
> > directory was writable just in case, but the "doesn't exist" error
> > persists.  Any help would be appreciated.  Thanks,
> >
> > -- Lee Jaffe, UC Santa Cruz Library
> > _______________________________________________
> > SPT-CWIS-Users mailing list
> > SPT-CWIS-Users at scout.wisc.edu
> > http://scout.wisc.edu/mailman/listinfo/spt-cwis-users
> >
> 
> _______________________________________________
> SPT-CWIS-Users mailing list
> SPT-CWIS-Users at scout.wisc.edu
> http://scout.wisc.edu/mailman/listinfo/spt-cwis-users



More information about the SPT-CWIS-Users mailing list