I'm not sure what all you need but here's some additional info - let me know if you need more:
The line 4 you're referring to is in init.php. It's actually line 3 in the code below - I had put an echo line in line 3 to make sure it was finding the correct path at the time I copied the error message. But it's the require_once (M_LIB_PATH.'DB.core.php'); on line 3 below that's causing the problem. Here's the whole init.php file:
- Code: Select all
<?php
require_once ('config.php');
require_once (M_LIB_PATH.'DB.core.php');
require_once (M_LIB_PATH.'App.class.php');
require_once (M_LIB_PATH.'User/USession.class.php');
require_once (M_LIB_PATH.'DB/Person.class.php');
//must be defined in config.php
if (!defined('SESSION_START_ON_LOGIN'))define('SESSION_START_ON_LOGIN',true);
if (!defined('SESSION_TIME_OUT'))define('SESSION_TIME_OUT',10800);
if (!defined('SESSION_VERIFY_IP'))define('SESSION_VERIFY_IP',true);
DB::connect();
$APP=new App ();
$GLOBAL_NAV=array('clients'=>'Clients/Sessions/Payments','libraries'=>'Libraries','calendar'=>'Calendar','reports'=>'Reports/Statements/HCFA');
$USESSION=new USession($CONFIG['SESSION_NAME'],$CONFIG['SESSION_LONG_SEC']);
if (!$USESSION->sessionID and !defined('BYPASS_IDENTIFICATION')) {
if (!defined('DISABLE_AUTO_LOGIN')) {
$APP->redirect('login.php');
exit;
} else {
header("Status: 403 Forbidden");
echo 'Access denied';
exit;
}
}
$USER=new Person($USESSION->userID);
$PAGE['JSSRC'][]='jslibs/dhtml.js';
$PAGE['CSS'][]='_styles/dhtml.css';
$PAGE['CSS'][]='_styles/forms.css';
?>
You may also want the corresponding lines from config.php:
The original way we had it was:
- Code: Select all
define ('A_SITE_PATH',dirname(__FILE__).'/');
define ('M_LIB_PATH',A_SITE_PATH.'libs/');
define ('TEMPLATES_PATH',A_SITE_PATH.'_templates/');
define ('BASE_URL','/__shrinkOffice/');
We've tried working with the A_SITE_PATH variable - have tried these things - this first one produces the same error as above, i.e., the errors occur when you use one of the tools that accesses the database:
- Code: Select all
define ('A_SITE_PATH','/xampp/htdocs/__shrinkOffice/');
These last two we tried cause the whole site to fail to load:
- Code: Select all
define ('A_SITE_PATH','__shrinkOffice/');
Error messages for this one were:
Warning: require_once(__shrinkOffice/libs/DB.core.php) [function.require-once]: failed to open stream: No such file or directory in C:\xampp\htdocs\__shrinkOffice\init.php on line 3
Fatal error: require_once() [function.require]: Failed opening required '__shrinkOffice/libs/DB.core.php' (include_path='.;C:\xampp\php\pear\') in C:\xampp\htdocs\__shrinkOffice\init.php on line 3
And this attempt also caused the site to fail to load with similar error messages:
- Code: Select all
define ('A_SITE_PATH','localhost/__shrinkOffice/');
Errors:
Warning: require_once(localhost/__shrinkOffice/libs/DB.core.php) [function.require-once]: failed to open stream: No such file or directory in C:\xampp\htdocs\__shrinkOffice\init.php on line 3
Fatal error: require_once() [function.require]: Failed opening required 'localhost/__shrinkOffice/libs/DB.core.php' (include_path='.;C:\xampp\php\pear\') in C:\xampp\htdocs\__shrinkOffice\init.php on line 3