Active
Project:
Media Mover
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Feb 2007 at 22:11 UTC
Updated:
18 Sep 2007 at 21:28 UTC
Parse error: syntax error, unexpected '=', expecting ')' in media_mover.inc on line 17
Comments
Comment #1
steingard commentedI'm not sure if this helps by way of getting someone on this, but I have the same issue. I'd really like to use this module to batch convert a buttload of WAV files to MP3 using ffmpeg.
Comment #2
arthurf commentederror is fixed,
this module now has a configuration to handle more audio settings than previously. I haven't set it up to just do audio, however that's totally possible.
Comment #3
blantz commentedwhere is this fixed? I just downloaded the module and am getting this error.
does this module require php 5? I'm currently using PHP Version 4.4.4-8+etch3
Thanks,
Bart
Comment #4
arthurf commentedThis error was fixed. As stated on the page, all development is happening in the DRUPAL-5 branch. I've just released a snap shot which does have this code fix.
Asper the php4 vs 5, while I didn't intend for php4 compatibility, it may work. The current thinking in Drupal developer community is to push toward php5 because there are some severe limitations of php4. While Debian is great, you're probably better off running a backport of php5.
good luck!
Comment #5
arthurf commentedfixing title, changing status
Comment #6
luxvisuals commentedParse error: syntax error, unexpected '=', expecting ')' in /home/luxvis/public_html/modules/media_mover/media_mover.inc on line 22
I'm getting the same error for 5.x-0.2-2 and 5.x-1.x-dev
The code:
function media_mover_media_mover($op, $action = null, $configuration = null, &$file = array(), $running_config = null ) {
looks all right to me... any suggestions? Thanks for this great module!
Comment #7
luxvisuals commentedSetting this back to active
Comment #8
robloachAfter Media Mover installation, I experienced this warning:
Comment #9
robloachThe problem with:
Is that differing versions of PHP handle the objects passed by reference differently with default values. If you change it to the following, you should be fine:
As you see, I'm removing the '&' from $file.
Comment #10
cbosner commentedYou need to change the status column to either allow NULL or change the default value to ''. Right now it reads NOT NULL default NULL
Comment #11
arthurf commentedThere was some legacy stuff in the install file and the content in the updates had not yet made it back to the origional install stuff. I'm in the process of cleaning things up right now- can you give the 3-1 release a try and make sure to run the update script? Thanks
Comment #12
buddaJust been tripped up on the whole
&$file = array(),not working on PHP4 issue.Can you at least put a notice on the project homepage to say this module needs PHP5 or something? Otherwise it will be left to people who might not know where to look, to resolve this problem them selves, and get frustrated.
Our fix was to remove the default value for the referenced $file object.
Comment #13
arthurf commentedI'll put a note on the project page which indicates the need for php5 +. I'm wondering if I can just remove the &$file = array() entirely- it may mean rewriting the function calls in the media_mover_api module, but it shouldn't be that many. If I take this on, would you be willing to do some testing?