Closed (fixed)
Project:
Date
Version:
7.x-2.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Nov 2012 at 18:50 UTC
Updated:
10 Oct 2013 at 16:20 UTC
Jump to comment: Most recent file
It's a long story, but due to fatal errors in certain environments triggered by Migrate's automated registration of migration and handler classes, as of Migrate 2.5 it will be possible to disable auto-registration, and any module implementing migration or handler classes should explicitly register them via hook_migrate_api() to continue working when auto-registration is disabled. Adding this registration will have no effect with Migrate 2.4 or earlier. This patch registers the Date field handler.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | migrate_class_registration-1832544-2.patch | 1.41 KB | mikeryan |
| migrate_class_registration.patch | 364 bytes | mikeryan |
Comments
Comment #2
mikeryanRight, the example module also needs to register its migration class...
Comment #3
jantoine commentedCode is clean and causes the Date Migrate module to function correctly with the Migrate module v7.x-2.5.
Comment #4
jamsilver commentedI can also confirm that this works when auto-registration is turned off.
Comment #5
mikeryanUpgrading priority - migrating into date fields is completely broken with Migrate 2.5 or greater without this patch.
Comment #6
mxtYes I can confirm that patch provided in #2 works well also for me.
Can this be committed please?
Comment #7
fmitchell commentedI can also confirm that this fixes Date Migrate with Migrate 7.x-2.5.
Comment #8
wusel commentedI can also confirm that this works with '
migrate 7.x-2.5+107-dev (2013-Apr-25)', but NOT works without it.Please take a look at #1981162-1: No handler for date_migrate.
Thank you for updating in the very next days.
Wusel
Comment #9
PatchRanger commentedThanks for the patch, it works for migation issue, which is topic-starter, but it is not enough to fix the issue from #1835214: Automated tests failing - Exception thrown in Date2 migration.
Closing as a duplicate of that issue, because it has an improved version of this patch.
Comment #10
mikeryanWe have a long-standing patch here in RTBC status, closing it in favor of a newer patch is unhelpful in terms of getting it in.
Comment #11
PatchRanger commentedIf you prefer RTBC - I wouldn't mind.
Just keep in mind, that this patch is not enough, it doesn't really fix issue from #1835214: Automated tests failing - Exception thrown in Date2 migration, though it looks good for this concrete issue. In fact both patches do have common basis, I based on this one while creating my patch, thank you.
Comment #12
bleen commentedRTBC++
Comment #13
kostajh commentedThis patch works for me.
Comment #14
mikeryanThis patch has been incorporated into the consolidated patch at #2034231: [META] Integrated patch for migration changes.
Comment #15
mikeryanLet's not nag in the title.
Comment #16
cafuego commented