WordPress.org

Ready to get started?Download WordPress

Forums

Tags Import As Numbers, Not Words (23 posts)

  1. LikeTheRazor
    Member
    Posted 6 years ago #

    Hello, I am trying to import a WordPress blog from an old site into a new site using the built-in WordPress import and export functions, but I am running into a problem.

    My tags are importing as numbers instead of words.

    You can see the problem here: http://healthoid.com/ (below the first post, there will be numbers under the titles where instead there should be tag names)

    Under my post titles, there should be tag words, but instead there are numbers.

    I imported these blog posts from a WordPress MU blog, so that could be part of the problem, or it could be something else.

    Any ideas?

  2. simcode
    Member
    Posted 6 years ago #

    I am getting the same problem exporting from WP 2.3 on one machine and importing to WP 2.3 on another. All of the tags become numbers.

  3. Kafkaesqui

    Posted 6 years ago #

    As I noted in my reply to simcode in his topic thread on this, it's a reported bug:

    http://trac.wordpress.org/ticket/5330

    (simcode, really no reason to have started another thread on this issue.)

  4. LikeTheRazor
    Member
    Posted 6 years ago #

    Thanks, that patch seemed to correctly import the tag words, but it is still importing numbers along with them.

    Any idea how to fix that?

  5. danapalooza
    Member
    Posted 6 years ago #

    Hello

    Using this patch I still get numbers instead of words. Plus, after adding the patch to both the exporting and importing blogs I get an error message when clicking on the export button that says this:

    Fatal error: Cannot redeclare class WP_Import in /home/.catilda/dan_imal/ohdanny.net/blogisher/wp-admin/import/wordpress_backup_01242008.php on line 3

  6. danapalooza
    Member
    Posted 6 years ago #

    Does the patch go on both the exporting and importing blog?

  7. danapalooza
    Member
    Posted 6 years ago #

    Hey there, Dan. This is your alter ego..."Dan" and I think I found your problem. You were leaving/putting a $ in front of the patch on line 399. It looked like this:
    $intval($tag_id)

    when it should look like this:
    intval($tag_id)

    Hope that works for ya

  8. rpophessagr
    Member
    Posted 6 years ago #

    ... i put into line 399
    $post_tags[] = $interval($tag_id);
    i'm getting
    Fatal error: Call to undefined function: () in .../import/wordpress.php on line 399
    any ideas?

  9. rpophessagr
    Member
    Posted 6 years ago #

    Fatal error: Call to undefined function: interval() in /home/.../wp-admin/import/wordpress.php on line 399

  10. rpophessagr
    Member
    Posted 6 years ago #

    ok, i did $post_tags[] = intval($tag_id); in line 399 and i''m getting the same problem

  11. rpophessagr
    Member
    Posted 6 years ago #

    whoops i wrote interval instead of intval... bleh

  12. icerabbit
    Member
    Posted 6 years ago #

    - noob alert -

    How does one exactly use this patch?

    Do you have to delete every single entry? ... can you mass delete them?
    Then edit the import routine?
    Then start importing again?

    I needed 5 imports to get 99% of my 400+ entries. Not exactly looking forward to that.

    Is there a conversion routine to get the # back to words?

    Plus can somebody please tell the WP heads in charge that the bug is not fixed and it is not case closed. They may know what the issue is, but it is present on my new wordpress install.

  13. ttblog
    Member
    Posted 6 years ago #

    I'm with IceRabbit -- a newbie, too,

    I see code, but have no idea where to put code.

    I imported my files from wordpress.com to my own server -- and my tags all came over as numbers, not words.

    Everything else looks great, and I'm pleased -- but I really want those tags to be read by search engines AND I'd like to use a tag cloud -- except that right now they all show up as numbers. Can't be used.

    Thanks for any help you can provide!

    Trisha

  14. Tailspin
    Member
    Posted 6 years ago #

    Me too, me too, ME TOO!

    Me too has problem, me too no has smarts to fix (without more explicit info).

    Thanks in advance, y'all

  15. Samuel Wood (Otto)
    Tech Ninja
    Posted 6 years ago #

    Is there a conversion routine to get the # back to words?

    No, nor is one possible. The data is lost during the import.

    Restore your database to the way it was (you *do* have a backup, right?), then apply this fix (modify line 399 of import/wordpress.php), then reimport all the data that you imported before.

    Can't apply the fix yourself? Download the fixed version of import/wordpress.php from here:
    http://trac.wordpress.org/browser/trunk/wp-admin/import/wordpress.php?rev=6332&format=raw

  16. Tailspin
    Member
    Posted 6 years ago #

    Thank YOU! I'm now, or about to become, a happy camper.

    The issue wasn't an inability to make the patch, but I suspect we all were in a fog because the pieces of this puzzle were spread all around—the patch was referenced somewhere else, for example. (Not a complaint, just an observation).

  17. ttblog
    Member
    Posted 6 years ago #

    OK -- I've got backups of everything -- but if I import a second time, will all my posts be duplicated? Do I have to remove posts before I reimport posts?

  18. ttblog
    Member
    Posted 6 years ago #

    Answered my own question -- found other references in support that said my posts would not duplicate. So I replaced import/wordpress.php -- re-imported my data -- and sure enough -- I have tags with words.

    I'm still getting some numbers in the tag cloud, but I'm guessing those will go away with time... for now I think it's the best that can happen.

    Thanks to all for your help.

  19. nolageek
    Member
    Posted 6 years ago #

    Got the numbers. Uploaded patch and re-imported. Still have numbers. Do I need to completely reinstall the whole shebang?

  20. ocmega
    Member
    Posted 6 years ago #

    Applied patch by copying the patched wordpress.php into the \import folder and I too am getting this error:

    Fatal error: Cannot redeclare class WP_Import in ...\wordpress\wp-admin\import\wordpress.php on line 3

    Any further help on this? Thanks! Brian

  21. ocmega
    Member
    Posted 6 years ago #

    Fixed it myself.
    Changed the case in Line 3 of wordpress.php:

    From: class WP_Import {
    To: class wp_import {

    Must be a server issue? (with the Case Sensitive thingy) I'm doing this on a "local" install of XAMPP and WP for testing purposes. Highly recommended for "playing" with WP without screwing up your live blog!
    Installing XAMPP and WordPress locally:
    http://www.tamba2.org.uk/wordpress/xampp/

  22. arickrol
    Member
    Posted 6 years ago #

    I deleted my WP installation. Then I installed a fresh one, via Fantastico. After that I FTPed the patched wordpress.php file into /import and then I went to the Import function and re-imported everything.

    After doing all that the tags still show as numbers. Any thoughts?

  23. arickrol
    Member
    Posted 6 years ago #

    I spoke with Otto42 privately on this and followed his advice.

    I created a fresh WP install, without Fantastico. I followed the instructions on the WP site. I then FTPed that patched WordPress.php file into the import folder. After that was done I imported my old blog. I looked and the tags are still numbers.

    So, then I tried his idea of upgrading to 2.5 RC 1. After the upgrade finished the tags still show as numbers.

    I'm back where I started. Are there any ideas on how to fix this?

Topic Closed

This topic has been closed to new replies.

About this Topic