Closed (fixed)
Project:
WordPress Migrate
Version:
7.x-2.x-dev
Component:
Code
Priority:
Major
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
10 Feb 2012 at 15:47 UTC
Updated:
15 Mar 2012 at 09:30 UTC
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
Comment #1
chadmkidner commentedI am getting this as well.
Comment #2
thanatosbr commentedMe too get that same issue =(
Comment #3
mikeryanSorry, 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).
Comment #4
vacholino commentedI 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.xmlComment #5
dmb2168 commentedI'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
Comment #6
mikeryanYou'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.
Comment #7
dmb2168 commentedYeah 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
Comment #8
mikeryan@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
Comment #9
dmb2168 commented@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
Comment #10
seaji commentedAll 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???
Comment #11
mxmilkiib commentedFatal error: Class 'MigrateXMLReader' not found in .../sites/all/modules/wordpress_migrate/wordpress_source.inc on line 8was resolved for me just now by moving from migrate 7.x-2.2 to 7.x-2.x-dev.
Comment #12
seaji commentedI 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 12Comment #13
mikeryan@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.
Comment #14
linkanp commentedHi,
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.
Comment #15
mikeryanPlease 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.
Comment #16
linkanp commentedThank you very much. It works.