[SPT/CWIS] cwis 1.4.0: can't find includes

Kucera, Rich Kucerar at hhmi.org
Mon Apr 17 15:23:00 CDT 2006


Hello,

I'm getting the following error from the fresh install of CWIS 1.4.0 using
PHP 4.4.0:

Warning: main(include/SPT--SPTDatabase.php) [function.main]: failed to open
stream: No such file or directory in
/srv/www/htdocs/CWIS/include/SPT--ItemFactory.php on line 29

Fatal error: main() [function.require]: Failed opening required
'include/SPT--SPTDatabase.php' (include_path='/usr/share/php') in
/srv/www/htdocs/CWIS/include/SPT--ItemFactory.php on line 29


Looking over the includes in 1.4.0 includes directory,  they don't seem to be
consistently done.  Some are begun with " dirname(__FILE__)",  a few others
(including this problem case),  just specify the include by "include/").

Grepping for require_once:

freezone:/srv/www/htdocs/CWIS/include # grep require_once *
SPT--ClassificationFactory.php:require_once(dirname(__FILE__)."/SPT--ItemFact
ory.php");
SPT--ClassificationFactory.php:require_once(dirname(__FILE__)."/SPT--Classifi
cation.php");
SPT--Classification.php:require_once(dirname(__FILE__)."/SPT--SPTDatabase.php
");
...
SPT--ItemFactory.php:require_once("include/SPT--SPTDatabase.php");
SPT--ItemFactory.php:require_once("include/SPT--Common.php");        # (to
make sure we have $Session and $User global vars)

Hopefully this is just a PHP or permission setting and not a problem with the
release.  

Thanks,
-Rich



More information about the SPT-CWIS-Users mailing list