[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: |
Thu, 26 Jun 2003 22:10:51 -0400 |
User-agent: |
Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.3.1) Gecko/20030425 |
=================== BUG #3129: LATEST MODIFICATIONS ==================
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=3129&group_id=509
Changes by: Dave Hall <address@hidden>
Date: Fri 06/27/2003 at 12:10 (Australia/Melbourne)
What | Removed | Added
---------------------------------------------------------------------------
Assigned to | None | skwashd
------------------ Additional Follow-up Comments ----------------------------
I think you will find this has been fixed in the 16 branch of cvs, can you
please test it and let us know.
=================== BUG #3129: FULL BUG SNAPSHOT ===================
Submitted by: izzyb Project: phpGroupWare
Submitted on: Sun 04/06/2003 at 19:14
Category: API - phpGWapi Bug Group: 0.9.14.002 release
Severity: 5 - Major Priority: Low
Resolution: None Assigned to: skwashd
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/');
Follow-up Comments
*******************
-------------------------------------------------------
Date: Fri 06/27/2003 at 12:10 By: skwashd
I think you will find this has been fixed in the 16 branch of cvs, can you
please test it and let us know.
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
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
[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 <=