Wie gelöschte Adressen entfernen

Deutsches Benutzerforum

Wie gelöschte Adressen entfernen

Postby TheTheo » Fri May 18, 2012 11:51 am

Hallo,
wie kann ich die gelöschten Adressen aus dem Adressbuch entfernen? (purging)
Wie im wiki angegeben funktioniert es nicht:

Code: Select all
php tine20.php --username tine20admin --method Tinebase.purgeDeletedRecords --
tine20_addressbook


ergibt:
Code: Select all
Deprecated: Directive 'magic_quotes_gpc' is deprecated in PHP 5.3 and greater in Unknown on line 0
Option "username" is not recognized.


Da steht natürlich der richtige Name des Users. Wie also genau muss die Syntax aussehen?
TheTheo
 
Posts: 36
Joined: Sat Nov 19, 2011 1:58 pm

Re: Wie gelöschte Adressen entfernen

Postby ph_il » Mon May 21, 2012 12:13 pm

bei mir hat es eben so geklappt:

Code: Select all
php tine20.php --method Tinebase.purgeDeletedRecords --username loginname -- addressbook


warum kommt da die magic_quotes_gpc meldung? hast du die tine20.php verändert?
Philipp Schüle
Tine 2.0 Core Developer

Visit http://www.tine20.com (commercial support, consulting and development)
Visit http://www.officespot20.com (Tine 2.0 hosting)
User avatar
ph_il
Tine 2.0 Core Developer
 
Posts: 3450
Joined: Fri Mar 07, 2008 11:41 am

Re: Wie gelöschte Adressen entfernen

Postby TheTheo » Tue May 22, 2012 8:20 am

Moin,

Code: Select all
/usr/share/tine20# php tine20.php --method Tinebase.purgeDeletedRecords --my_username my_loginname -- addressbook

Ergebniss:
Code: Select all
PHP Warning:  Module 'mysql' already loaded in Unknown on line 0

Deprecated: Directive 'register_long_arrays' is deprecated in PHP 5.3 and greater in Unknown on line 0

Deprecated: Directive 'magic_quotes_gpc' is deprecated in PHP 5.3 and greater in Unknown on line 0
Option "my_username" is not recognized.


warum kommt da die magic_quotes_gpc meldung? hast du die tine20.php verändert?


Nichts verändert. Diese Meldungen gab schon unter Maischa.
Hier läuft ein aktuelles Milan unter einem aktuellem Debian squeeze.

Grüße
TheTheo
 
Posts: 36
Joined: Sat Nov 19, 2011 1:58 pm

Re: Wie gelöschte Adressen entfernen

Postby ph_il » Wed May 23, 2012 2:52 pm

"my_username" ist auch definitiv die falsche option. es müsste aber mit "--username" gehen. die anderen meldungen kann man vermutlich ignorieren.
Philipp Schüle
Tine 2.0 Core Developer

Visit http://www.tine20.com (commercial support, consulting and development)
Visit http://www.officespot20.com (Tine 2.0 hosting)
User avatar
ph_il
Tine 2.0 Core Developer
 
Posts: 3450
Joined: Fri Mar 07, 2008 11:41 am

Re: Wie gelöschte Adressen entfernen

Postby TheTheo » Wed May 23, 2012 5:04 pm

Hallo,

Code: Select all
php tine20.php --method Tinebase.purgeDeletedRecords --username tineadmin -- addressbook


Danach kommt die Passwortabfrage.
Und es funktioniert, aber nur als Admin. Unter Debian muss fernen eine Kopie
der config.inc.php aus /etc/tine20 in /usr/share/tine20 erstellt werden.

Danke
TheTheo
 
Posts: 36
Joined: Sat Nov 19, 2011 1:58 pm

Re: Wie gelöschte Adressen entfernen

Postby ph_il » Thu May 24, 2012 10:28 am

TheTheo wrote:Unter Debian muss fernen eine Kopie
der config.inc.php aus /etc/tine20 in /usr/share/tine20 erstellt werden.


keine so schöne lösung. besser ist es, einfach den include_path mit anzugeben. unter debian müsste das dann ungefähr so aussehen:

Code: Select all
php -d include_path=".:/etc/tine20/" tine20.php --method Tinebase.purgeDeletedRecords --username tineadmin -- addressbook]
Philipp Schüle
Tine 2.0 Core Developer

Visit http://www.tine20.com (commercial support, consulting and development)
Visit http://www.officespot20.com (Tine 2.0 hosting)
User avatar
ph_il
Tine 2.0 Core Developer
 
Posts: 3450
Joined: Fri Mar 07, 2008 11:41 am


Return to Deutsch [German]

Who is online

Users browsing this forum: No registered users and 18 guests

Startseite
NewsDemoDownloadForumWikiBlog
Support
Support at first hand!
If the forum does not help anymore ... Professional support is available directly from our Tine2.0 core Developers.

more »