Project:Wordpress Import
Version:6.x-2.1
Component:Miscellaneous
Category:bug report
Priority:normal
Assigned:Unassigned
Status:postponed (maintainer needs more info)

Issue Summary

I have used this module earlier on the same server setup with no major problems, but I am currently having issues with incomplete imports.

Problem: the wordpress import get stuck on every 1-20 posts/pages I try to import. I have to remove the imported posts from the XML file and restart import in order to import another 1-20 posts/pages. Also, only page comments seem to get imported, not post comments.

I am running the latest version of everything (drupal, ctools, wordpress import), I even reinstalled everything and made a fresh db in order to try to get this working. I followed the XML cleanup suggestions in the readme file, and I event tried the import with wordpress XML files which I have successfully used with this module earlier. I still experience this problem.

Any ideas what to try?

Comments

#1

It seems like it only imports posts within the first 500 lines of the XML file... And it doesn't matter whether I upload the XML file to the server and run it from there.

#2

What do you mean by "the wordpress import get stuck" ? Is there an error message somewhere ?

Also, please try using the latest -dev version to see if that fixes the problem.

#3

Thank you for responding lavamind :)

By "the wordpess import get stuck" I mean that nothing happens beyond the initializing wordpress import message when looking at the screen. It just stays like this for hours, and no error messages or other messages are displayed. When looking at the database only a few wordpress posts/comments have been imported (it seems like its the 10 first ones, or the first 500 lines in the xml file).
The xml files I have been trying to import are only about 2mb, so nothing huge.

I'll try the dev version for my next import.

#4

I think this ist similar: When I start the import process, the module tells me this:

The following elements were identified :
    * 498 posts/pages
    * 27 comments
    * 4 authors
    * 2 categories
    * 24 tags

But when the import finishes, it says this:

Import successful :

    * 163 nodes
    * 3 users
    * 26 taxonomy terms
    * 26 comments
    * 0 trackbacks
    * 0/0 images

No error messages at all. One user already existed and images were not set to be imported.

#5

Trying 6.x-2.x-dev I get the following error:

Fatal error: Cannot use object of type stdClass as array in /sites/all/modules/wordpress_import/wordpress_import.module on line 649

#6

#5 is an evident duplicate of
Create new user results in type mismatch failure
http://drupal.org/node/936030

#7

Ok, adding users manually and then mapping them is a workaround for #5. Thanks for the hint. But still there are only 163 of 498 nodes imported.

#8

This is a warning after a failed import:

warning: Parameter 1 to wordpress_import_process_blog() expected to be a reference, value given in /home/users/atteqftp/attentie.com/includes/batch.inc on line 190.

The import file contains posts for 17 users that are manually mapped, only 1 user is created.

#9

Title:incomplete import» Incomplete import

Any more ideas why the import could be incomplete? I can't find any error messages.

#10

I just noticed that on the Wordpress dashboard it says that there are 163 posts only, so I guess that it's the first count ("The following elements were identified"), that gets it wrong.

#11

Regarding this PHP warning:

> "warning: Parameter 1 to wordpress_import_process_blog() expected to be a reference, value given in .../batch.inc on line 190."

The first line of the function where the parameters are used is in file wordpress_import.module, line 706:

function wordpress_import_process_blog($wordpress_import, &$context) {

when the & is removed from the parameter: &$wordpress_import, the import succeeds beautiful (in my case at least).

the line as it remains is:

function wordpress_import_process_blog($wordpress_import, &$context) {

This is with PHP 5.3.2

#12

In the result the import number of the nodes was minor respect the post of wordpress, but the post were all imported correctly.

#13

Status:active» postponed (maintainer needs more info)

If the module is skipping some posts, please try use the latest development version. If the problem still persists, I would need the XML import file to try and troubleshoot the problem.

#14

Solution #11 from glhkok worked fine for me !

nobody click here