Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Installed the module and went to the "Migrate Import From Drupal" page and get the following error:
Warning: Parameter 1 to MigrateD2DWizard::sourceDataForm() expected to be a reference, value given in MigrateUIWizard->form() (line 382 of /home/xxx/modules/migrate/migrate_ui/migrate_ui.wizard.inc).
Line 382 in the migrate_ui.wizard.inc is:
$form += call_user_func($form_method, $form_state);
Any ideas?
Thanks.
Comment | File | Size | Author |
---|---|---|---|
#4 | migrate-calltime-pass-by-ref-fix-2907166.patch | 706 bytes | bkosborne |
|
Comments
Comment #2
couloir007 CreditAttribution: couloir007 commentedAre you running PHP 7? This was the cause for me.
Comment #3
bkosborneIndeed, looks like there were some changes to this in PHP 7.
As of PHP 7.1, a warning is issued when using call_user_func and the called function expects parameters to be passed by reference.
What's not clear to me is if in previous versions of PHP the value was actually passed by reference, and now it's not.... but I suspect that's not the case and PHP 7.1 is just throwing warnings about it now.
Seems like we can fix this with call_user_func_array() instead which supports passing parameters by reference to the called function.
Comment #4
bkosborneAttached patch fixes this problem in two areas.
Comment #5
pifagorComment #7
pifagor