I’ve run into a bug which causes the app to completely stop working. If you change the files directory to a directory in the document-root after installing, it causes an infinite loop.
The bug occurs in phpgwapi/inc/class.vfs_sql.inc.php, the check after line 84:
// test if the files dir is inside the document root, and refuse working if so
//
if ($this->file_actions && $this->in_docroot($this->basedir))
{
$GLOBALS[‘egw’]->common->egw_header();
if ($GLOBALS[‘egw_info’][‘flags’][‘noheader’])
{
echo parse_navbar();
}
echo ‘
’.lang(‘Path to user and group files HAS TO BE OUTSIDE of the webservers document-root!!!’)."
\n";
$GLOBALS[‘egw’]->common->egw_exit();
}
The problem is, this code is run whenever egw_header() is called, so $GLOBALS[‘egw’]->common->egw_header() will cause it be run again, causing the loop. This is obviously rare behavior since the installer disallows the files dir to be in the document root, but the intended behavior doesn’t occur and the error message never gets printed.
This is present in v1.4.004-2 with the matching PEAR package.