Knowledge Base

Fatal error: require_once()...common.inc.php...

Article ID: 351
Last updated: 12 Oct, 2012

Error message/code:

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

Description:

You can see this error after KBPublisher installatrion

Solution:

Open file kbp_dir/admin/config.inc.php 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

Example:

/* 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: 5237
Comments: 0