Ticket #405 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

Foreach error in the wordpress importer

Reported by: GIGALinux Assigned to: donncha
Priority: high Milestone: WPMU 1.0
Component: component1 Version: 1.0
Severity: critical Keywords:
Cc:

Description

I get an error in step 2 of the wordpress importer. The import file has only one author and is only 500 kb big.

Warning: Invalid argument supplied for foreach() in /**/wp-admin/import/wordpress.php on line 104

Attachments

wordpress.php (15.7 kB) - added by ktlee on 10/16/07 23:22:00.

Change History

08/13/07 16:51:30 changed by drmiketemp

Been discussed a couple of times with no solution. Could have sworn that we had a ticket here on it.

10/04/07 16:33:14 changed by donncha

Sorry but this is a useless ticket that tells me nothing. Please try to debug it and explain how it can be replicated.

10/16/07 23:21:36 changed by ktlee

  • status changed from new to closed.
  • resolution set to fixed.

When user try to import xml file from wordpress the error will occur if the file only has one author, and the php use foreach() try to read it as an array.

After going through the file, there are just too many errors in the file. Specifically author mapping was not implemented at all. (I think this is the older version)

To fix this, just replace the current wp importer to the new wp importer from WP2.3. It will work.

10/16/07 23:22:00 changed by ktlee

  • attachment wordpress.php added.

10/17/07 18:57:28 changed by ktlee

  • status changed from closed to reopened.
  • resolution deleted.

10/18/07 15:03:45 changed by donncha

  • status changed from reopened to closed.
  • resolution set to fixed.

Fixed in [1102]