phpgroupware-tracker
[Top][All Lists]
Advanced

[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: Fri, 10 Oct 2003 01:50:21 -0400
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3.1) Gecko/20030618 Debian/1.3.1-3

=================== 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 10/10/03 at 15:50 (Australia/Melbourne)

            What     | Removed                   | Added
---------------------------------------------------------------------------
          Resolution | None                      | Fixed
              Status | Open                      | Closed


------------------ Additional Follow-up Comments ----------------------------
This has been fixed in CVS and should be available in the next

release.



=================== BUG #3129: FULL BUG SNAPSHOT ===================


Submitted by: izzyb                   Project: phpGroupWare                 
Submitted on: Sun 04/06/03 at 19:14
Category:  API - phpGWapi             Bug Group:  0.9.14.002 release        
Severity:  5 - Major                  Priority:  Low                        
Resolution:  Fixed                    Assigned to:  skwashd                 
Status:  Closed                       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 10/10/03 at 15:50         By: skwashd
This has been fixed in CVS and should be available in the next

release.

-------------------------------------------------------
Date: Fri 06/27/03 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/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]