nebenaube wrote: I take it this is on windows... is this running with IIS or apache? The paths depend on the value in $phpwcms['DOC_ROOT'] so perhaps you could insert a bit of debugging code in default.inc.php on line 211 to read the value being used...
Code: Select all
// load permissions class
dumpVar('DOC_ROOT: '.$phpwcms['DOC_ROOT']); << INSERTED DEBUG CODE
require(PHPWCMS_ROOT.'/include/inc_lib/permissions.class.php');
The constant PHPWCMS_ROOT is defined higher up in the file on line 112 and should look like:
Code: Select all
define ('PHPWCMS_ROOT', $phpwcms['DOC_ROOT']);
You might want to double check the webserver configuration (httpd.conf) on apache and insure that the site's document root is correct.
on edit: the permissions.class.php appears to be readable by your server so best to chase down the value thats making it into $phpwcms['DOC_ROOT'] and find out why it isn't initializing to the root path of your website.
OK, it's windows based server. Don't know about ISS or apache.
Default.inc.php under includes does not have load permission class but apears to be blank on the root.
Code: Select all
// important to script that must know the real path to files or something else
$phpwcms['DOC_ROOT'] = rtrim( str_replace("\\", '/', $phpwcms['DOC_ROOT']), '/' );
if( empty($phpwcms["root"]) ) {
$phpwcms["root"] = '';
$phpwcms["host_root"] = '';
} else {
$phpwcms["root"] = trim( $phpwcms["root"], '/' );
$phpwcms["host_root"] = '/'.$phpwcms["root"];
$phpwcms['DOC_ROOT'] .= '/' . $phpwcms["root"];
$phpwcms["root"] .= '/';
}
define ("PHPWCMS_ROOT", $phpwcms['DOC_ROOT']);
define ('PHPWCMS_FILES', $phpwcms["file_path"] . '/');
define ('PHPWCMS_BASEPATH', '/' . $phpwcms["root"]);
define ('On', true);
define ('Off', false);
define ('PHPWCMS_USER_KEY', md5(getRemoteIP().$phpwcms['DOC_ROOT'].$phpwcms["db_pass"]));
define ('PHPWCMS_REWRITE_EXT', 'phtml');
$phpwcms['browser_detect'] = phpwcms_getUserAgent();
define('BROWSER_NAME', $phpwcms['browser_detect']['agent']);
define('BROWSER_NUMBER', $phpwcms['browser_detect']['version']);
define('BROWSER_OS', $phpwcms['browser_detect']['platform']);
$phpwcms["file_path"] = '/'.$phpwcms["file_path"].'/' ; // "/phpwcms_filestorage/"
define ('TEMPLATE_PATH', $phpwcms["templates"].'/');
$phpwcms["templates"] = '/'.$phpwcms["templates"].'/' ; // "/phpwcms_template/"
$phpwcms["content_path"] = $phpwcms["content_path"].'/' ; // "content/"
define ('CONTENT_PATH', $phpwcms["content_path"]);
$phpwcms["cimage_path"] = $phpwcms["cimage_path"].'/' ; // "images/"
$phpwcms["ftp_path"] = '/'.$phpwcms["ftp_path"].'/' ; // "/phpwcms_ftp/"
define ('PHPWCMS_TEMPLATE', PHPWCMS_ROOT.$phpwcms["templates"]);
define ('PHPWCMS_URL', $phpwcms["site"].$phpwcms["root"]);
$phpwcms['parse_url'] = parse_url(PHPWCMS_URL);
define ('PHPWCMS_HOST', $phpwcms['parse_url']['host'].$phpwcms["host_root"]);
define ('PHPWCMS_IMAGES', $phpwcms["content_path"].$phpwcms["cimage_path"]);
define ('PHPWCMS_TEMP', PHPWCMS_ROOT.'/'.$phpwcms["content_path"].'tmp/');
define ('PHPWCMS_CONTENT', PHPWCMS_ROOT.'/'.$phpwcms["content_path"]);
define ('PHPWCMS_THUMB', PHPWCMS_CONTENT.$phpwcms["cimage_path"]);
define ('PHPWCMS_RSS', PHPWCMS_CONTENT.'rss');
define ('LF', "\n"); //global new line Feed
define ('MB_SAFE', function_exists('mb_substr') ? true : false); //mbstring safe - better to do a check here
$phpwcms['modules'] = array();
$phpwcms['modules_fe_render'] = array();
$phpwcms['modules_fe_init'] = array();
Not sure how to check the server on my control panel.