Make WordPress Core

Opened 14 years ago

Closed 14 years ago

#13263 closed defect (bug) (fixed)

warnings in WordPress importer

Reported by: wpmuguru's profile 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 14 years ago.

Download all attachments as: .zip

Change History (7)

#1 @wpmuguru
14 years ago

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

#2 @ocean90
14 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.

#3 @yoavf
14 years ago

related? #12860

#4 @briancolinger
14 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.

#5 @yoavf
14 years ago

  • Keywords tested added

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

#6 @nacin
14 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.