WordPress.org

Make WordPress Core

Opened 20 months ago

Last modified 19 months ago

#24995 new defect (bug)

Importer does not check to see if DOM is available

Reported by: novasource Owned by:
Milestone: WordPress.org Priority: normal
Severity: normal Version: 3.6
Component: Import Keywords:
Focuses: Cc:

Description

I have a WordPress network with many blogs. I exported a few posts from one blog (export file attached with some details sanitized). I then imported the posts into another blog.

Not only does the import probably do nothing, the /blogname/wp-admin/import.php page stops rendering after:

<h2>Import WordPress</h2>

That is, if you do a view source on the page, the above h2 element is the last thing you see.

Expected behavior: execution does not stop mid-page, and if there is an error, it is displayed for logged-in administrative users.

I am logged in as a network administrator.

Attachments (1)

export file.zip (32.9 KB) - added by novasource 20 months ago.

Download all attachments as: .zip

Change History (6)

@novasource20 months ago

comment:1 @novasource19 months ago

  • Summary changed from On WordPress network, importer stops without doing anything, doesn't even write out complete page to Importer stops without doing anything, doesn't even write out complete page

I've reproduced on a non-network environment.

comment:2 @novasource19 months ago

Found an error: [Wed Sep 04 08:52:23 2013] [error] [client 129.119.70.150] PHP Fatal error: Class 'DOMDocument' not found in /var/www/[sitename]/wp-content/plugins/wordpress-importer/parsers.php on line 61, referer: http://[sitename]/wp-admin/admin.php?import=wordpress

Last edited 19 months ago by novasource (previous) (diff)

comment:3 @novasource19 months ago

  • Severity changed from normal to major
  • Summary changed from Importer stops without doing anything, doesn't even write out complete page to Importer does not advise when PHP components are missing

It is fixed by installing php-xml. There's still a problem: The importer should advise me that I have a missing library rather than just quitting during execution.

Solution found at http://wordpress.org/support/topic/plugin-import-html-pages-requires-php-xml-if-you-get-error-domdocument-not-found?replies=1.

comment:4 @rmccue19 months ago

  • Severity changed from major to normal
  • Summary changed from Importer does not advise when PHP components are missing to Importer does not check to see if DOM is available

*sigh* Have I ever mentioned how much I hate PHP?

comment:5 @SergeyBiryukov19 months ago

  • Milestone changed from Awaiting Review to WordPress.org
Note: See TracTickets for help on using tickets.