[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-tracker] [Bug #3129] Bug in link provided with this error
From: |
nobody |
Subject: |
[Phpgroupware-tracker] [Bug #3129] Bug in link provided with this error: Fatal Error: It appears that you have not created the database tables... |
Date: |
Sun, 06 Apr 2003 05:14:12 -0400 |
=================== BUG #3129: FULL BUG SNAPSHOT ===================
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=3129&group_id=509
Submitted by: izzyb Project: phpGroupWare
Submitted on: Sun 04/06/2003 at 09:14
Category: API - phpGWapi Bug Group: 0.9.14.002 release
Severity: 5 - Major Priority: Low
Resolution: None Assigned to: None
Status: Open Component Version: None
Platform Version: None Reproducibility: None
Summary: Bug in link provided with this error: Fatal Error: It appears that
you have not created the database tables...
Original Submission: I was getting this error because I was using postgress
7.3.2 which isn't fully supported.
Fatal Error: It appears that you have not created the database tables for
phpGroupWare. Click here to run setup.
My problem is solved, but I did notice a bug in the code that provides this
error. phpgwapi/inc/functions.inc.php contains the following:
----- 8< -----
$GLOBALS['phpgw']->db->Halt_On_Error = 'no';
@$GLOBALS['phpgw']->db->query("select count(config_name) from
phpgw_config");
if (! @$GLOBALS['phpgw']->db->next_record())
{
$setup_dir = ereg_replace($PHP_SELF,'index.php','setup/');
echo '<center><b>Fatal Error:</b> It appears that you have not created the
database tables for
'
.'phpGroupWare. Click <a href="' . $setup_dir . '">here</a> to run
setup.</center>';
exit;
}
$GLOBALS['phpgw']->db->Halt_On_Error = 'yes';
----- 8< ----
The bug I think I found is in the link that is provided. Sometimes it points
to the apps setup dir ($PHP_SELF == PWD), not the phpgw setup dir which causes
the browser to produce a forbidden error if the server doesn't allow for auto
created folder indexes. There are no index files in the setup/ dirs for the
apps (at least that I've seen). I don't think an auto generated index of these
directories is really the intention here.
I suspect that $PHP_SELF should be $PHPGW_SERVER_ROOT in the following line
from above:
$setup_dir = ereg_replace($PHP_SELF,'index.php','setup/');
No Followups Have Been Posted
CC list is empty
No files currently attached
For detailed info, follow this link:
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=3129&group_id=509
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-tracker] [Bug #3129] Bug in link provided with this error: Fatal Error: It appears that you have not created the database tables...,
nobody <=