bugphpGroupWare - Bugs: bug #8354, problem in the setup/setup.inc.php...


You are not allowed to post comments on this tracker with your current authentication level.

bug #8354: problem in the setup/setup.inc.php processus

Submitted by:  Caeies <Caeies>
Submitted on:  Mon 29 Mar 2004 11:21:26 AM UTC  
Item Group: release Category:  API - Setup
Severity:  3 - Normal Priority:  7 - High
Status:  None Privacy:  Public
Assigned to:  Alejandro Borges (lex) <alexbsa> Open/Closed:  Open
Component Version:  SVN Operating System:  GNU/Linux - Debian
Reproducibility:  Every Time Planned Release:  None
Fixed Release: 

Mon 19 Jul 2004 03:22:10 PM UTC, comment #3:

it is not a problem in the ldap backend.

the setup_demo.php script will delete all accounts in the database when creating the new accounts. it is not using
the account backend to do this job :-(

additionally it will delete all contacts which were created by the addressmaster (account - contact link). In the delete function of the contacts backend could be a problem. It seems that somebody has adapted this function already:

function delete($cid, $contact_type='', $transaction=True)
// check for hooks saying "do not delete"
if(!is_object($GLOBALS['phpgw']->hooks) )
$GLOBALS['phpgw']->hooks = createObject('phpgwapi.hooks');

Are you still getting the problem?
If you do, lex probably is better in fixing this problem.

Philipp Kamps <fipsfuchs>
Wed 30 Jun 2004 08:56:31 AM UTC, comment #2:

I'm on my way to some holidays in turkey. so this one will take a while before i fix it (around 3 weeks) - sorry for that.

Philipp Kamps <fipsfuchs>
Mon 29 Mar 2004 11:22:06 AM UTC, comment #1:

Hum I miss the file :)
it is setup/setup_demo.php, sorry :)


Caeies <Caeies>
Project Administrator
Mon 29 Mar 2004 11:21:26 AM UTC, original submission:


I will try to be clear :)

In the setup process, when trying to create new people, there is a call at line 194 to the $contacts->delete() function.

Nothing wrong with this, but it seems that the object $GLOBAL['phpgw']->hooks is not yet instantiated and that $contacts->delete() function use it. (at least when using LDAP accounts)

So I don't know if this a bug or not (ie instantiated before because your are not comming here for the first time but need to setup a new install over an existing one ...), but it should be investigated I think :)

Thanks in advance,


Caeies <Caeies>
Project Administrator


No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


CC list is empty


Do you think this task is very important?
If so, you can add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.




Follow 3 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2004-07-19 fipsfuchs Assigned tofipsfuchs => alexbsa
2004-06-30 skwashd Assigned toNone => fipsfuchs
2004-06-07 harriv Carbon-Copy- => Added harriv

Back to the top

Powered by Savane 3.3