Error - can't import (Argument #2 is not an array)

solk - July 13, 2008 - 13:05
Project:Wordpress Import
Version:5.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

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

#1

solk - July 13, 2008 - 13:10
Priority:critical» normal
Status:active» closed

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

#2

jinky32 - October 7, 2008 - 20:47

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?

#3

yrocq - October 8, 2008 - 16:11

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 ?

#4

jinky32 - October 9, 2008 - 10:07

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.

#5

jinky32 - October 9, 2008 - 11:22

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.

#6

ontheriversedge - May 15, 2009 - 17:13
Status:closed» 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?

#7

lavamind - December 9, 2009 - 05:01
Status:active» closed

Branch 5.x is no longer supported.

 
 

Drupal is a registered trademark of Dries Buytaert.