Hi mehek, welcome to the forums.
Do what other users in the WordPress support forums did that worked regarding re-importing. The patch involves modifying 2 files (lucky for only2!).
The wp-admin/import/wordpress.php and wp-admin/export.php files.
The code in red is the existing code that should be commented out, like so
PHP Code:
// $return = $wpdb->escape( trim( $return[1] ) );
and the code in green is the new patch code that needs to be inserted. So the code in your files should go from this
PHP Code:
while ( $c = array_shift($this->categories) ) {
$cat_name = trim(str_replace(array ('<![CDATA[', ']]>'), '', $this->get_tag( $c, 'wp:cat_name' )));
// If the category exists we leave it alone
to this
PHP Code:
while ( $c = array_shift($this->categories) ) {
// $cat_name = trim(str_replace(array ('<![CDATA[', ']]>'), '', $this->get_tag( $c, 'wp:cat_name' )));
$cat_name = trim($this->get_tag( $c, 'wp:cat_name' ));
// If the category exists we leave it alone
for each of the changes. Make sure you avoid problems and use a plain text editor like Notepad to make the changes.
Bookmarks