Knowledge Base

Fatal error: require_once()

Article ID: 351
Last updated: 12 Oct, 2012

Error message/code:

Warning: require_once(...client/inc/ failed to open stream: Invalid argument in ...index.php(28)
Fatal error: require_once(): Failed opening required '...client/inc/' (include_path='...adminlib/;...adminlib/Pear') in ...index.php(28)


You can see this error after KBPublisher installatrion


Open file kbp_dir/admin/ and check paths values, make sure they area correct, update if nesessary.
$_SERVER['DOCUMENT_ROOT'] variable, it should look like this

$_SERVER['DOCUMENT_ROOT'] = '/home/www/user/www'; // linux
$_SERVER['DOCUMENT_ROOT'] = 'c:/interpub/wwwroot'; // windows


/* PATHS */
$_SERVER['DOCUMENT_ROOT'] = '/home/www/user/www';
$_SERVER['HTTP_HOST']     = 'localhost';

// admin path
$conf['admin_home_dir']   = '/kb/admin/';         // path to kb admin dir, relative to DOCUMENT_ROOT

// client path
$conf['client_home_dir']  = '/kb/';               // path to kb dir, relative to DOCUMENT_ROOT

Article ID: 351
Last updated: 12 Oct, 2012
Revision: 4
Access: Public
Views: 5256
Comments: 0