I install AAC and when I open admin site or example site I have this error's:


In package this files not exist;/ So what happend?
Please help me

Btw: Sorry for my English;)
define("AC_ROOT", $_SERVER["DOCUMENT_ROOT"]."\calendar\");
titanium wrote:Hi,
If you are running a windows server
file ac-admin\index.php works when code at top of page changed to this
if(phpversion()<"5.3.0"){
// old php version
$file = __FILE__;
$break = explode('/', $file);
$pfile = $break[count($break) - 1];
$root = str_replace($pfile,"",__FILE__);
$root = str_replace("ac-admin\\","",$root);
define("AC_ROOT", $root);
}else{
define("AC_ROOT", str_replace("\\ac-admin","\\",__DIR__));
}
Note: the escaped backslashes .... it will not work without this.
calc.inc and ajax.common.inc need
define("AC_ROOT", $_SERVER["DOCUMENT_ROOT"]."\\shr\\admin\\calendar\\");
\\shr\\ being my full path from document root ...... adjust to your needs as necessary.
Hope this helps others with same problem
define("AC_ROOT", "/path/from/root/to/calendar/directory/");
Users browsing this forum: No registered users and 2 guests