Download & Extend

Incompatible with PHP 5.3

Project:Media: SoundCloud
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:ramirez.gerardo
Status:closed (cannot reproduce)

Issue Summary

Seems to be working fine on my site. I'm not sure what the issue was that resulted in the project page stating it would only work with the 6.x-1.x branch of Emfield but I'm glad I went ahead and tried it anyway. Either the project page needs to be updated or if someone could provide some background on the potential issues with Emfield 6.x.2.1

Comments

#1

Category:task» bug report
Priority:minor» normal
Status:active» fixed

Basically, I put that on the project page because the module was written for the 1.x branch of Emfield, and I didn't have time to try it with the 2.x branch. When in doubt, play safe! ;)

Very glad to hear it works fine with the 2.x branch. I'll amend the project page. Thanks for reporting this!

#2

Status:fixed» closed (fixed)

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

#3

Title:Works with emfield 6.x.2.1» Does not works with emfield 6.x.2.3
Status:closed (fixed)» active

I get a warning with emfield 6.x-2.3

warning: Parameter 6 to emaudio_soundcloud_audio() expected to be a reference, value given in sites/all/modules/emfield/emfield.module on line 650.

And nothing is showed up.

#4

Title:Does not works with emfield 6.x.2.3» Does not work with emfield 6.x.2.3

#5

I found a workaround:

go to line 155 and remove the node reference from the 6 parameter. change it to the following:

function emaudio_soundcloud_audio($embed, $width, $height, $field, $item, $node, $autoplay)

I'm going through the source now to try to wrap my head around it all.

Thanks,

gerardo

#6

If you could roll that as a patch that would be great, thanks.

(That's not a workaround, that's a fix!)

#7

Version:6.x-1.1» 6.x-1.x-dev
Component:Documentation» Code
Assigned to:Anonymous» ramirez.gerardo
Status:active» patch (to be ported)

I've attached the patch here which solves the following error.

warning: Parameter 6 to emaudio_soundcloud_audio() expected to be a reference, value given in sites/all/modules/emfield/emfield.module on line 650.

AttachmentSize
emfieldbug.patch 738 bytes

#8

Status:patch (to be ported)» needs review

Thanks!

The correct status now we have a patch is 'needs review', btw :)

This would also need testing with versions of emfield prior to 2.3 -- if this patch breaks those versions, then we will need to specify on the project page that there's a minimum version requirement for emfield.

#9

Very cool and thanks for helping me out with this. I'll be sure to test versions prior to emfield 2.3.

Best regards,

Gerardo Ramirez

#10

Patch from #7 works with emfield-6.x-2.5

#11

Same patch from #7 needs to be applied to emaudio_soundcloud_preview() for preview player display

#12

Status:needs review» closed (cannot reproduce)

Version 6.x-1.3 of Media: Soundcloud works fine for me with Emfield 6.x-2.5.

If you're having a problem with these versions, please reopen with an explanation of how to reproduce the problem.

#13

Title:Does not work with emfield 6.x.2.3» Incompatible with PHP 5.3
Status:closed (cannot reproduce)» reviewed & tested by the community

This is reproducable with PHP 5.3.

#14

Status:reviewed & tested by the community» closed (cannot reproduce)

If you're having a problem with these versions, please reopen with an explanation of how to reproduce the problem.

nobody click here