HI,

With today's new dev build I am getting an error:

Fatal error: Class 'MigrateXMLReader' not found in .../sites/all/modules/wordpress_migrate/wordpress_source.inc on line 8

Eric

Comments

chadmkidner’s picture

I am getting this as well.

thanatosbr’s picture

Me too get that same issue =(

mikeryan’s picture

Category: bug » support
Priority: Major » Normal
Status: Active » Fixed

Sorry, should have indicated on the project page and release notes that it requires the latest Migrate code (7.x-2.x-dev, or the soon-to-be-released 7.x-2.3-rc1).

vacholino’s picture

I am using version: 7.x-2.2+89-dev and I get following error when using this drush command:

drush wordpress-migrate-import /mnt/files/xxx/files/xxx.wordpress.2012-02-17.xml

SQLSTATE[42S22]: Column not found: 1054 Unknown column 'wm.link' in 'field list'                                                                                              [error]
Drush command terminated abnormally due to an unrecoverable error.                                                                                                            [error]
Error: Call to a member function getUid() on a non-object in /mnt/www/html/xxx/docroot/sites/all/modules/wordpress_migrate/wordpress_migrate.drush.inc, line 70

Fatal error: Call to a member function getUid() on a non-object in /mnt/www/html/xxx/docroot/sites/all/modules/wordpress_migrate/wordpress_migrate.drush.inc on line 70
dmb2168’s picture

Priority: Normal » Major
Status: Fixed » Active

I'm using the most recent version of both WordPress Migrate and the Migrate modules and when trying to import a WXR file I still get this error:

atal error: Class 'MigrateXMLReader' not found in .../sites/all/modules/wordpress_migrate/wordpress_source.inc on line 8

mikeryan’s picture

Status: Active » Postponed (maintainer needs more info)

You're using either the current -dev of Migrate, or 7.x-2.3-rc1? Did you clear your cache after updating the code? This is a necessary step for all new classes (like MigrateXMLReader) to be recognized.

dmb2168’s picture

Yeah thanks I just did that, forgot about that step. However now I am getting this error instead:

Cannot access private property WordpressMigrateStreamWrapper::$handle in /Applications/MAMP/htdocs/drupal-7.12/includes/stream_wrappers.inc on line 512

mikeryan’s picture

@dmd2168 - I can't explain that error at all. $handle is a public property in DrupalLocalStreamWrapper, and WordpressMigrateStreamWrapper doesn't override it. Can you make sure that your wordpress_wrapper.inc file isn't referencing the handle property, and the stream_wrappers.inc file referenced in the error contains

  public $handle = NULL;
dmb2168’s picture

@MikeRyan

Yeah thanks I found that the error that was being reported wasn't the real source of the problem. My problem is similar to a problem someone posted in which the WXR wasn't properly formatted..

The blog I'm trying to import is huge (1000s of posts) so one big export file was actually being truncated by wordpress. Also Some posts have that nasty

CDATA]] bug you were talking about

seaji’s picture

All in vain
I use last dev versions of Migrate and Wordpress_migrate
And get error: Fatal error: Class 'WordPressSource' not found in /usr/home/belovat/data/www/n.gukit.ru/sites/all/modules/wordpress_migrate/wordpress_item.inc on line 12

Cache cannot be cleared. I got the same error.
My IDE (phpStorm) cannot find class WordPressSource
It finds just class WordPressSourceXML

Should I edit wordpress_item.inc at line 12 and replace WordPressSource with WordPressSourceXML???

mxmilkiib’s picture

Title: Error with new build » Fatal error: Class 'MigrateXMLReader' not found

Fatal error: Class 'MigrateXMLReader' not found in .../sites/all/modules/wordpress_migrate/wordpress_source.inc on line 8

was resolved for me just now by moving from migrate 7.x-2.2 to 7.x-2.x-dev.

seaji’s picture

I use Migrate 7.x-2.2+95-dev and Migration from WordPress 7.x-2.x-dev
and get error
Fatal error: Class 'WordPressSource' not found in /usr/home/belovat/data/www/n.gukit.ru/sites/all/modules/wordpress_migrate/wordpress_item.inc on line 12

mikeryan’s picture

Status: Postponed (maintainer needs more info) » Fixed

@seaji: You need to be using Migrate 7.x-2.x-dev or 7.x-2.3-rc1 - 7.x-2.2 will not work.

re: WordPressSource not found - somehow my commit on Friday picked up an older version of wordpress_item.inc, I've restored it.

linkanp’s picture

Status: Fixed » Active

Hi,
I've downloaded the wordpress_migrate (7.x-2.x-dev, release date 27 Feb 2012). But I got the "Fatal error: Class 'MigrateXMLReader' not found" still there. May be that release didn't fixed that bug. May I have your attention please. Thank You advance for any help.

mikeryan’s picture

Status: Active » Fixed

Please read comment #13 carefully - you need to have the latest Migrate module (one of the versions linked there). MigrateXMLReader is defined in the migrate module file plugins/sources/xml.inc - if you don't find it there, you're still running an old version of Migrate.

linkanp’s picture

Thank you very much. It works.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.