Hello,

I've installed a clean drupal 5.8 and trying to import a wordpress 2.1 wxr file.
The upload is ok, I am getting to the page where I'm being asked to map the users, click next and then I get:

warning: array_merge() [function.array-merge]: Argument #2 is not an array in /var/www/shelly.org.il/drupal/sites/all/modules/wordpress_import/wordpress_import.module on line 312.

With the text "The Wordpress blog has been successfully imported" under it.

It didn't add any content or anything else.

Can you please help?

Thanks
Sol

Comments

solk’s picture

Priority: Critical » Normal
Status: Active » Closed (fixed)

Took me 2 minutes to find the problem...

I assigned more then one imported user to a local drupal user..which seems to be a big no no.

At least now it'll will come up on google search if anyone else gets this problem.. :)

Thanks

jinky32’s picture

Hi,

I have exactly the same problem. However there was only ever one user on my WP blog (me) and i'm importing to a fresh drupal install again with only one user so i can't be assigning more than one user to a drupal user.

If i go to content management>content in the admin section, then in the category drop-down menu I can see the tags that I used to use in my WP blogs but none of the posts.
Any ideas how i can fix this?

yrocq’s picture

solk : assigning multiple wordpress users to one drupal user shouldn't cause problem. I will investigate this bug.

jinky32 : Did you try to import your blog as stories or as a Drupal blog ?

jinky32’s picture

Hi yrocq

I've tried both with no joy.

I've opened a new thread http://drupal.org/node/318285 as this one's marked as closed.

jinky32’s picture

Ok, i've fixed the problem. It was this code:

Which came before the closing tag in admin. Must be some WordPress module I had installed.

ontheriversedge’s picture

Status: Closed (fixed) » Active

I just ran into this same problem.

Jinky32 listed the problematic code, but it disappeared when it wasn't surrounded by the <code> tag.

Is there a way this post can be edited?

Can anyone else tell me the solution?

lavamind’s picture

Status: Active » Closed (fixed)

Branch 5.x is no longer supported.