Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2007-12-26 18:34:12
- mazeman
- New Member
- Registered: 2007-12-26
- Posts: 8
wordpress -> textpattern conversion problem
Hi!
I’m trying to get data from wp to my txp.
And the import script doesn’t work with 2.3.1 Wordpress because, in the database there isn’t post2cat table, but there is wp_terms, wp_term_relationships and wp_term_taxonomy tables, and those includes categories and also tags.
And also I didnt get the full stories of all the posts…
Offline
#2 2007-12-28 01:32:39
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: wordpress -> textpattern conversion problem
The importer hasn’t been updated in a while, and certainly not since the latest WP update.
Offline
#3 2007-12-28 07:53:19
- mazeman
- New Member
- Registered: 2007-12-26
- Posts: 8
Re: wordpress -> textpattern conversion problem
Mary wrote:
The importer hasn’t been updated in a while, and certainly not since the latest WP update.
I noticed that, and I tried to “fix” it but I failed, so I’m asking people of this forum to help me.
Offline
Re: wordpress -> textpattern conversion problem
hmm just curious what is the latest version of WP the importer works with?
i have no idea how anyone is going to keep this up to date seeing as WP changes their setup every other day.
Last edited by iblastoff (2007-12-28 10:55:36)
Offline
#5 2008-01-11 04:33:31
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: wordpress -> textpattern conversion problem
Try using the latest (development) version of the importer:
Let me know any problems you run into.
Last edited by Mary (2008-01-18 14:01:45)
Offline
#6 2008-01-18 13:37:35
- mazeman
- New Member
- Registered: 2007-12-26
- Posts: 8
Re: wordpress -> textpattern conversion problem
Mary wrote:
Try using the latest (development) version of the importer. Let me know any problems you run into.
Ok thank, but I run into problems, when I tried to convert, nothin else happened except this error msg:
Warning: mysql_result() [function.mysql-result]: Unable to jump to row 0 on MySQL result index 25 in /home/markokaa/public_html/textpattern/include/import/import_wp.php on line 49
Notice: unserialize() [function.unserialize]: Argument is not a string in /home/markokaa/public_html/textpattern/include/import/import_wp.php on line 49
Warning: Invalid argument supplied for foreach() in /home/markokaa/public_html/textpattern/include/import/import_wp.php on line 51
Warning: doimportwp(/home/markokaa/public_html/textpattern/lib/txplib_admin.php) [function.doimportwp]: failed to open stream: Tiedostoa tai hakemistoa ei ole in /home/markokaa/public_html/textpattern/include/import/import_wp.php on line 336
Warning: doimportwp() [function.include]: Failed opening ‘/home/markokaa/public_html/textpattern/lib/txplib_admin.php’ for inclusion (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/markokaa/public_html/textpattern/include/import/import_wp.php on line 336
Fatal error: Call to undefined function: generate_password() in /home/markokaa/public_html/textpattern/include/import/import_wp.php on line 348
Offline
#7 2008-01-18 14:00:40
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: wordpress -> textpattern conversion problem
- Ah shoot, you need this file too.
- Are you updated to the latest stable version of WordPress?
Offline
#8 2008-01-18 14:09:44
- mazeman
- New Member
- Registered: 2007-12-26
- Posts: 8
Re: wordpress -> textpattern conversion problem
actually not, but I will if it needs that upgrade too.
Offline
#9 2008-01-18 14:30:11
- mazeman
- New Member
- Registered: 2007-12-26
- Posts: 8
Re: wordpress -> textpattern conversion problem
hmm it works but but… I think it has a problem with scandinavian letters ä and ö and here is some example:
This is Finnish and it’s the way it should be shown in txt
Blogia valmisteltu siirtoon ja tässäpä teille lukijoille joulutervehdys ruudun tältä puolen!
And here is the result when I converted it from WP to TXP:
Blogia valmisteltu siirtoon ja t
It cuts when ä comes…
Offline
#10 2008-01-18 20:09:52
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: wordpress -> textpattern conversion problem
Would you post your “high” diagnostics results?
Offline
#11 2008-01-18 20:21:39
- mazeman
- New Member
- Registered: 2007-12-26
- Posts: 8
Re: wordpress -> textpattern conversion problem
Textpattern version: 4.0.5 (r2466)
Last Update: 2007-12-22 08:35:19/2007-07-01 19:03:44
Document root: /home/markokaa/public_html
$path_to_site: /home/markokaa/public_html
Textpattern path: /home/markokaa/public_html/textpattern
Permanent link mode: section_title
open_basedir: /home/markokaa:/usr/lib/php:/usr/local/lib/php:/tmp
Temporary directory path: /tmp
Site URL: markokaartinen.net
PHP version: 4.4.4
Register globals: 1
GD Image Library: version bundled (2.0.28 compatible), supported formats: GIF, JPG, PNG
Server Local Time: 2008-01-18 22:21:14
MySQL: 4.1.22-standard
Locale: en_US.UTF-8
Server: Apache
Apache version: Apache
PHP Server API: apache
RFC 2616 headers:
Server OS: Linux 2.6.9-22.ELsmp
Active plugins: rss_admin_show_adv_opts-0.3, rss_unlimited_categories-0.7.4, rss_auto_excerpt-0.5, rss_suparchive-0.18, rah_chuck_norris-0.1, zem_contact_reborn-4.0.3.20, zem_contact_lang-4.0.3.6m, pap_contact_cleaner-0.1, dru_recent_referers-0.4, cbs_gravatar-0.2, rsx_plugins_list-1.1m, mtp_subsection-0.1a, chh_article_lib-1.04, chh_article_custom-1.15, wlk_helpful-0.3m, jwl_img_list-0.2m.htaccess file contents:
————————————
#DirectoryIndex index.php index.html#Options +FollowSymLinks
#Options -Indexes<IfModule mod_rewrite.c> RewriteEngine On
#RewriteBase /relative/web/path/
RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^(.+) – [PT,L]
RewriteRule ^(.*) index.php
</IfModule>
#php_value register_globals 0
————————————
Charset (default/config): latin1/utf8
character_set_client: utf8
character_set_connection: utf8
character_set_database: latin1
character_set_results: utf8
character_set_server: latin1
character_set_system: utf8
character_sets_dir: /usr/share/mysql/charsets/
20 Tables: txp_txp_mtp_section is latin1, txp_txp_wlk_helpful is latin1, txp_txp_wlk_helpful_counts is latin1PHP extensions: zip, xslt, xmlrpc/0.51, xml, wddx, tokenizer/0.1, swf, standard/4.4.4, sockets, session, pspell, posix, pgsql, pdf, overload, mysql, ming, mhash, mcrypt, mbstring, imap, iconv, gettext, gd, ftp, exif/1.4 $Id: exif.c,v 1.118.2.37.2.4 2006/01/01 13:46:52 sniper Exp $, domxml/20020815, curl, ctype, calendar, bcmath, zlib/1.1, pcre, openssl, apache, ew/0.9, ionCube Loader, Zend Optimizer
pretext_data: array ( ‘id’ => ‘’, ‘s’ => ‘’, ‘c’ => ‘’, ‘q’ => ‘’, ‘pg’ => ‘’, ‘p’ => ‘’, ‘month’ => ‘’, ‘author’ => ‘’, ‘request_uri’ => ‘/efb722f01778ef6ff8bfd959e13d6318/?txpcleantest=1’, ‘qs’ => ‘txpcleantest=1’, ‘subpath’ => ‘\\/’, ‘req’ => ‘/efb722f01778ef6ff8bfd959e13d6318/?txpcleantest=1’,
)/include/txp_category.php: r2243 (3706fea923cd77f7053f7803de169df4)
/include/txp_plugin.php: r1917 (c63f72f33986c08367672fc9fe7b42dd)
/include/txp_auth.php: r2356 (33255ec1ea1a825163c78272496d8783)
/include/txp_form.php: r1913 (ecea3fecf9d7d1f8088cda67f097eceb)
/include/txp_section.php: r1891 (1f0121b3e2969d94bc8a7fb98bfdfbd5)
/include/txp_tag.php: r2260 (1bd67bdb9dcfb72e34ea967e39406216)
/include/txp_list.php: r2450 (997a3b1bec7115bf49b76f62b28da146)
/include/txp_page.php: r2099 (56bde34b6c7bcb9123ac91e73065e894)
/include/txp_discuss.php: r2451 (91e0b29ef39a9471ae5c78d0b1bba086)
/include/txp_prefs.php: r2405 (a4b76476930b2376199f23fbfd5f1ac9)
/include/txp_log.php: r2439 (16730c34e2a437dd88b8f5cc7eff8218)
/include/txp_preview.php: r1238 (696728f35f3557b648c011bb4d6496c3)
/include/txp_image.php: r2439 (9fac6ed0d9d4c3d8196492051f38dc9a)
/include/txp_article.php: r2453 (bdac8fcac5df2f93f10afa7e50c3fb6f)
/include/txp_css.php: r2403 (4e8c52bb1cf5bfe2e2f0640892f9b92e)
/include/txp_admin.php: r2403 (f8700a3d453ece08e7f137b47c967eda)
/include/txp_link.php: r2463 (0a0171bf606296106332d3fdcb83a678)
/include/txp_diag.php: r2361 (dccf3269049dd25e59afdd7ad8d235cd)
/include/txp_file.php: r2403 (e62abd5fcadabe629322ed17135d89eb)
/include/txp_import.php: r1238 (70a6207c0f3604ecfc4b20369986c4d7)
/lib/admin_config.php: r1747 (a2eb09f94d7902a6e95750fc4abcea17)
/lib/txplib_misc.php: r2464 (615afd44a10311f1c0b7852d9bc15d24)
/lib/taglib.php: r1535 (9b519f9dc88791e5ee8eacc029dd6975)
/lib/txplib_head.php: r2404 (2e067b25997cf67cddbdd365570e69d5)
/lib/classTextile.php: r2462 (a031e2ea894e339711c601f230c5ee71)
/lib/txplib_html.php: r2403 (97e173da3058b438513df67fd7d1ceca)
/lib/txplib_db.php: r2406 (5ed67642f805639b54e381fb22efd208)
/lib/IXRClass.php: r765 (137b91497628f0058a2fca9eba5c3b7f)
/lib/txplib_forms.php: r2403 (438a734b52acef40b36d8a3ba23987e8)
/lib/class.thumb.php: r2329 (b2a2fda54371dbd6c40ba553941f090e)
/lib/constants.php: r2361 (ab6d51668fab1e3c98e7d520b1a59f0f)
/lib/txplib_update.php: r1239 (10f28a986d23187b436369dc29ab552f)
/lib/txplib_wrapper.php: r2286 (419125ec74a17a70bf1e86ebfcd45253)
/publish/taghandlers.php: r2444 (cc9de8f2018b01398a2ba542c5f5bdc6)
/publish/atom.php: r2402 (46c4402717f695fde0d49d806adfa4c4)
/publish/log.php: r1637 (5254d0f3942086bc55723923307a51db)
/publish/comment.php: r2460 (2d1ae1dec0784f044e7005fa5ed50930)
/publish/search.php: r1748 (8c86ebcb5be08e214d81ca15a32164ca)
/publish/rss.php: r2393 (09aac29bf22ffa71c1e118e851cff3c3)
/publish.php: r2436 (7087864f1e7c6efe096d3b8e07c350b1)
/index.php: r2466 (30ecf35de5c1edc6ef68e780c8c79daa)
/css.php: r944 (8beba8f83a091068723435cdcdc02f2f)
Offline
#12 2008-01-18 20:32:04
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: wordpress -> textpattern conversion problem
So your Textpattern database in using latin1. What is your WordPress database using?
Offline