WordPress.org

Make WordPress Core

Opened 5 years ago

Closed 5 years ago

#13263 closed defect (bug) (fixed)

warnings in WordPress importer

Reported by: wpmuguru Owned by:
Milestone: 3.0 Priority: normal
Severity: normal Version:
Component: Import Keywords: has-patch, tested
Focuses: Cc:

Description

I forgot to snag the line numbers yesterday. For testing the export patch yesterday I imported 200+ posts/pages & got lots of invalid index warnings. There were at least two sections of code that gave warnings.

You should be able to find the warnings with debug enabled by importing a decent sized file.

Attachments (1)

wordpress.php.diff (1.4 KB) - added by briancolinger 5 years ago.

Download all attachments as: .zip

Change History (7)

comment:1 @wpmuguru5 years ago

  • Summary changed from warnings in WordPress imported to warnings in WordPress importer

comment:2 @ocean905 years ago

I get in the middle this:

Notice: Undefined offset: X in H:\xampplite\htdocs\wp\wp-admin\import\wordpress.php  on line 475

And at the end this:

Notice: Undefined offset: X in H:\xampplite\htdocs\wp\wp-admin\import\wordpress.php  on line 764

X is a number.

comment:3 @yoavf5 years ago

related? #12860

comment:4 @briancolinger5 years ago

  • Cc briancolinger@… added
  • Keywords has-patch added

This patch will fix this issue.
Tested against trunk with WP_DEBUG = true, no errors reported.

comment:5 @yoavf5 years ago

  • Keywords tested added

tested on a file that was previously issuing errors. All good now!

comment:6 @nacin5 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [14497]) Fix warnings in WordPress importer. props briancolinger, fixes #13263.

Note: See TracTickets for help on using tickets.