The latest update of Media mover module not working.After running the configuration, I get an warning message saying 'Parameter 4 to mm_dir_media_mover() expected to be a reference,value given in /includes/modules.inc on line 462' and the files are not harvested from the local directory and stored to the FTP Server.This is an issue I face after setting the configurations.

Comments

aaron’s picture

Title: Help with Media Mover module » warning: Parameter 4 to expected to be a reference
Component: Miscellaneous » Code
Category: support » bug

I confirm similar behavior. Wondering if there's a new bug that's been introduced. Here's my bug:

warning: Parameter 4 to mm_cck_media_mover() expected to be a reference, value given in /includes/module.inc on line 462.

In my case, apparently mm_cck_media_mover is being invoked with module_invoke during node_load, and that function requires a reference for &file. Unfortunately, you can't actually call module_invoke to a function requiring a reference, as that function passes everything as a value.

mm_dir_media_mover() has the same issue...

aaron’s picture

Status: Active » Needs review
StatusFileSize
new1.02 KB

this patch fixes the problem in my case.

aaron’s picture

Status: Needs review » Fixed

ok, looks like this will fix this possibly edge case while maintaining current functionality. i've committed the patch. re-open if you still have an issue, @Pratik.

aaron’s picture

Status: Fixed » Needs work

This is actually related to PHP 5.3. I had to refactor the code considerably to get it working properly now, as it was throwing other similar issues. Patch forthcoming.

aaron’s picture

Status: Needs work » Needs review
StatusFileSize
new6.88 KB

patch attached

aaron’s picture

Status: Needs review » Fixed

ok, that's in now.

Status: Fixed » Closed (fixed)

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

ha_le’s picture

Hi Aaron,
Many thanks for your help. I've tried to apply your patch but receive a message say it's outdated... I've downloaded the latest stable version of MM. Is there any other patches that I should apply before this patch. Thanks.

arthurf’s picture

You need to apply the patch to the 6.1.x dev version