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

 
 

You are not allowed to post comments on this tracker with your current authentification 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: 0.9.16.000 releaseCategory: API - Setup
Severity: 3 - NormalPriority: 7 - High
Status: NonePrivacy: Public
Assigned to: Alejandro Borges (lex) <alexbsa>Open/Closed: Open
Component Version: SVNOperating System: GNU/Linux - Debian
Reproducibility: Every TimePlanned 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 <Caeies>
Project Administrator
Mon 29 Mar 2004 11:21:26 AM UTC, original submission:

Hi,

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,
regards

Caeies

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 click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 3 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Mon 19 Jul 2004 03:22:10 PM UTCfipsfuchsAssigned tofipsfuchs=>alexbsa
Wed 30 Jun 2004 04:05:24 AM UTCskwashdAssigned toNone=>fipsfuchs
Mon 07 Jun 2004 12:27:19 PM UTCharrivCarbon-Copy-=>Added harriv

Back to the top


Powered by Savane 3.1-cleanup