Framework file not found but only in root
Created a site with Framework Builder and tested on both local server and hosted server and works fine until the site is put into the root directory. Then the following error is produced.
Framework file not found: /var/www/vhosts/<somedomain.com>/httpdocs/index.php
Whole site works as expected on same server when in a sub directory ie. somedomain.com/dev/, it is only when in the root directory it falls over. If the root is changed to be the /dev directory the same error is produced, so seems to not like being in the root.
Here are the first few lines of the framework.php file.
<?php
class WA_Include {
public function __construct( $fileName) {
$this->Start_Dir = getcwd();
$this->File = $fileName;
$this->BaseName = basename($fileName);
$this->Reset = array();
$this->Added = array();
$this->CleanName();
$this->Dir = dirname($fileName);
$this->Body = "";
$this->Head = "";
$this->HTML = "";
$this->Title = "";
$this->Above = "";
$this->Links = array();
$this->Styles = array();
$this->DocType = "";
$this->Content = "";
$this->MetaTags = "";
$this->MetaKeywords = "";
$this->MetaDescription = "";
$this->MetaContentType = "";
$this->MetaKeywords_Content = "";
$this->MetaDescription_Content = "";
$this->MetaContentType_Content = "";
$this->EditableRegions = array();
if (!file_exists($this->Dir)) {
die("Framework file not found: ".$fileName);
}
chdir($this->Dir);
ob_start();
}
I am assuming this file is where the issue has arose. If anyone can point me in the right direction it would be appreciated. Framework version 1.0.1 and patched from CS5 DW.
Thanks Ian