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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mattwmc created an issue. See original summary.

couloir007’s picture

Are you running PHP 7? This was the cause for me.

bkosborne’s picture

Status: Active » Needs work
Issue tags: +PHP 7.0 (duplicate), +PHP 7.1

Indeed, 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.

bkosborne’s picture

Version: 7.x-2.8 » 7.x-2.x-dev
Category: Support request » Task
Status: Needs work » Needs review
FileSize
706 bytes

Attached patch fixes this problem in two areas.

pifagor’s picture

  • pifagor committed cf0c989 on 7.x-2.x authored by bkosborne
    Issue #2796169 by bkosborne, asghaier, dmsmidt, pifagor: Using a better...
pifagor’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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