• rivermobster

    (@rivermobstermedia)


    Hello,

    I ran the importer on an xml file the guy that runs the old site provided me. All of the posts imported, but the images did not import to the new site. or were they even visible.

    I thought MAYBE my security software was causing the issue? I removed the security plugin, deleted all the imported posts and ran the importer again. This time, no old posts were imported to the new site.

    I tried the same trick on a different test site…

    Posts imported, images showed up in posts this time, (but did not import to the new site). So just for fun, I deleted all of the imported posts and tried to run the importer again.

    Same problem!!! The importer will only work ONE time. If you try to run it again, nothing happens.

    I added this line define( ‘IMPORT_DEBUG’, true ); but got no error messages.

    I suspect there is a setting somewhere that only allows the importer to run ONE time??

    Can you tell me where this setting might be? For starters? lol

    Thanks in advance,

    -Joe

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Dion Hulse

    (@dd32)

    Meta Developer

    When you say you deleted the posts, did you clear the Trash as well?

    As far as I know, there’s no specific “do not run again” flags stored, however, if it detects that a post has already been imported (through having a matching entry in the database) it will skip that file and not process it.

    IMPORT_DEBUG only outputs errors that are encountered, not general status data, so it’s expected it wouldn’t have shown anything.

    Either way, I’d have expected to see a message like Post MyTitleHere already exists.. or Failed to import post MyTitleHere. So to confirm, no messages what-so-ever are shown?

    You can browse the importer code in GitHub here: https://github.com/WordPress/wordpress-importer/blob/0003f2398ae9a3df8f7a070bb4c318c9c4c4f84f/src/class-wp-import.php#L619-L908

    • This reply was modified 2 years ago by Dion Hulse.
    Thread Starter rivermobster

    (@rivermobstermedia)

    Interesting on the trash theory. I’ll give that a shot and report back.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Trying to import a 2nd time…’ is closed to new replies.