Migrationsprobleme Wordpress -> Serendipity

Hier können Probleme und alles andere in Deutscher Sprache gelöst werden.
Lux
Regular
Posts: 764
Joined: Fri Aug 12, 2005 4:36 pm
Location: Grüt, Zürich, Switzerland
Contact:

Re: Migrationsprobleme Wordpres -> Serendipity

Post by Lux »

garvinhicking wrote:Ah, okay. Da müsstest Du mal das memory_limit von PHP erhöhen, z.b. 128M oder so. Denn scheinbar braucht der Importer mehr RAM zum Parsen als dezreit erlaubt...
Ehm, das steht bereits auf 128 MB und höher möchte ich eigentlich nicht.

Hilft es Dir, wenn ich Dir die Daten zur Verfügung stelle?

Gruss

Dirk
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Migrationsprobleme Wordpres -> Serendipity

Post by garvinhicking »

Hi!

Oh, okay. Wie groß ist denn deine Datenbanktabelle? Das RAM-Limit ist davon abhängig; wenn Du einen 200MB Dump importierst, sollte man 400MB RAM erlauben, denn der ganze Kram wird ja auch ausgelesen und verarbeitet...

Grüße,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Lux
Regular
Posts: 764
Joined: Fri Aug 12, 2005 4:36 pm
Location: Grüt, Zürich, Switzerland
Contact:

Re: Migrationsprobleme Wordpres -> Serendipity

Post by Lux »

garvinhicking wrote:Oh, okay. Wie groß ist denn deine Datenbanktabelle? Das RAM-Limit ist davon abhängig; wenn Du einen 200MB Dump importierst, sollte man 400MB RAM erlauben, denn der ganze Kram wird ja auch ausgelesen und verarbeitet...
Ohne die Änderung im Code funktioniert es übrigens.

Der komplette Dump (ASCII, unkomprimiert) ist 160 MB. Aus dem werden aber auch nicht alle Tabellen benötigt.

Grüsse

Dirk
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Migrationsprobleme Wordpres -> Serendipity

Post by garvinhicking »

Hi!
Ohne die Änderung im Code funktioniert es übrigens.
Haha. Guter Hiwneis. :) Jetzt hab ich den Fehler gefunden, der Patch muss so aussehen:

Code: Select all

   function strtr($data) {   
static $test = false;

if (!$test) {
echo "WILL RECODE EVERY INSTANCE OF: " . print_r($this->trans_table, true) . "<br/>\n";
$test = true;
}

        return strtr($data, $this->trans_table);
    }
Mit dem alten Patch hat er immer und immer wieder diese Echo-Ausgabe gemacht die zu viel Speicher benötigte.

Viele Grüße,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Lux
Regular
Posts: 764
Joined: Fri Aug 12, 2005 4:36 pm
Location: Grüt, Zürich, Switzerland
Contact:

Re: Migrationsprobleme Wordpres -> Serendipity

Post by Lux »

garvinhicking wrote:Mit dem alten Patch hat er immer und immer wieder diese Echo-Ausgabe gemacht die zu viel Speicher benötigte.
Danke Garvin!

Das ist die Ausgabe:

Code: Select all

Starting import procedure...
Importing users...
WILL RECODE EVERY INSTANCE OF: Array ( [�] =>   [�] => ¡ [�] => ¢ [�] => £ [�] => ¤ [�] => ¥ [�] => ¦ [�] => § [�] => ¨ [�] => © [�] => ª [�] => « [�] => ¬ [�] => ­ [�] => ® [�] => ¯ [�] => ° [�] => ± [�] => ² [�] => ³ [�] => ´ [�] => µ [�] => ¶ [�] => · [�] => ¸ [�] => ¹ [�] => º [�] => » [�] => ¼ [�] => ½ [�] => ¾ [�] => ¿ [�] => À [�] => Á [�] => Â [�] => Ã [�] => Ä [�] => Å [�] => Æ [�] => Ç [�] => È [�] => É [�] => Ê [�] => Ë [�] => Ì [�] => Í [�] => Î [�] => Ï [�] => Ð [�] => Ñ [�] => Ò [�] => Ó [�] => Ô [�] => Õ [�] => Ö [�] => × [�] => Ø [�] => Ù [�] => Ú [�] => Û [�] => Ü [�] => Ý [�] => Þ [�] => ß [�] => à [�] => á [�] => â [�] => ã [�] => ä [�] => å [�] => æ [�] => ç [�] => è [�] => é [�] => ê [�] => ë [�] => ì [�] => í [�] => î [�] => ï [�] => ð [�] => ñ [�] => ò [�] => ó [�] => ô [�] => õ [�] => ö [�] => ÷ [�] => ø [�] => ù [�] => ú [�] => û [�] => ü [�] => ý [�] => þ [�] => ÿ )
Imported users.
Importing categories (WP 2.3 style)...
Imported categories.
Rebuilding category tree...
Rebuilt category tree.
Importing entries...
Imported entries...
Importing category associations (WP 2.3 style)...
Imported category associations.
Importing comments...
Imported comments.
Import successfully completed
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Migrationsprobleme Wordpres -> Serendipity

Post by garvinhicking »

Hi!

Ah, die trans_table ist wohl in ISO statt in UTF-8. Man müsste also wohl dem get_html_translation_table() Aufruf einen encoding PArameter mitgeben, falls man aktuell ein UTF-8 Datensatz importiert.

Das kann diverse Seiteneffekte haben, da muss ich mal schauen wann ich mir das ansehen kann.

Ansonsten dürfte der Import ohne die HTML-Konvertierungsoption auch die bessere Wahl sein; diese Option ist eigentlich hauptsächlich für ältere WP-Versionen gedacht wo die Datenbanktabellen noch nicht sauber UTF-8 waren und HTML entities rumflogen.

Grüße,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Lux
Regular
Posts: 764
Joined: Fri Aug 12, 2005 4:36 pm
Location: Grüt, Zürich, Switzerland
Contact:

Re: Migrationsprobleme Wordpres -> Serendipity

Post by Lux »

garvinhicking wrote:Ah, die trans_table ist wohl in ISO statt in UTF-8. Man müsste also wohl dem get_html_translation_table() Aufruf einen encoding PArameter mitgeben, falls man aktuell ein UTF-8 Datensatz importiert.
Ok, verstanden.
garvinhicking wrote:Das kann diverse Seiteneffekte haben, da muss ich mal schauen wann ich mir das ansehen kann.
Mir wäre es fast wichtiger, dass Du Zeit findest, in das Podcasting-Plugin zu schauen :-)
garvinhicking wrote:Ansonsten dürfte der Import ohne die HTML-Konvertierungsoption auch die bessere Wahl sein; diese Option ist eigentlich hauptsächlich für ältere WP-Versionen gedacht wo die Datenbanktabellen noch nicht sauber UTF-8 waren und HTML entities rumflogen.
Es hat ja auch funktioniert und es ist keine Aktion momentan nötig.

Grüsse

Dirk
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Migrationsprobleme Wordpres -> Serendipity

Post by garvinhicking »

Hi!
Mir wäre es fast wichtiger, dass Du Zeit findest, in das Podcasting-Plugin zu schauen :-)
Hrm, ja, das ist halt ne frickelige Sache. Hattest du bei Grischa zufällig mal angefragt, hatte er dazu irgendwas gesagt? :)

Viele Grüße,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Lux
Regular
Posts: 764
Joined: Fri Aug 12, 2005 4:36 pm
Location: Grüt, Zürich, Switzerland
Contact:

Re: Migrationsprobleme Wordpres -> Serendipity

Post by Lux »

garvinhicking wrote:Hrm, ja, das ist halt ne frickelige Sache. Hattest du bei Grischa zufällig mal angefragt, hatte er dazu irgendwas gesagt? :)
Einfache Sachen mache ich selber: :-)

Ich habe Grischa gefragt, aber er hat nicht geantwortet.

Gruss

Dirk
Post Reply