I am using the JW Player for displaying video (I've also tried the generic), SWFObject for embedding and video is not being displayed (neither are the accessibility links). admin/reports/swftools reports no errors but the "Test Content" does not display. It works fine using 6.x-2.5.

I have spent a good 3 hours trying to troubleshoot to no avail. I am using php 5.3 so I get the reference error if that changes anything (although I did remove the ampersand to get rid of the error and put it back when nothing changed.
warning: Parameter 1 to theme_swftools_embed() expected to be a reference, value given in /var/www/drupal/includes/theme.inc on line 656.

My use is via a cck with file upload. Display setting is swftools - no download link.

Thanks for any suggestions, I really want to start playing with profiles!

Comments

jonhattan’s picture

Title: Not embedding video » Not embedding video (php 5.3)
Category: support » bug
massi64’s picture

Title: Not embedding video (php 5.3) » Not embedding flash

I have the same problem but with a flash with the 3.0-beta4 i get the same error :warning: Parameter 1 to theme_swftools_embed() expected to be a reference, value given in /var/www/drupal/includes/theme.inc on line 656. with the version 2.5 , I still don't see anything , but no errors .

If anybody have some sugestion please , feel free to add some , I really need some help here
Thanks

massi64’s picture

Title: Not embedding flash » Not embedding video (php 5.3) / Not embedding flash

oops

DaRK-1’s picture

Status: Active » Needs review

Just ran into this myself.
Removing the ampersand from swftools.module line 2325 'function theme_swftools_embed(&$options) {' appears to actually render the player rather than just getting nothing.

Quite new to drupal so not sure what this breaks, if anything.

hillaryneaf’s picture

I had the same issue.

@DaRK I removed the ampersand in line 2325 as you mentioned and it did render the player for me now. I haven't found anything broken yet... I'll report anything if I do.

gizmo123’s picture

Works fine here, thanks!

Guru’s picture

Priority: Normal » Major
Status: Needs review » Needs work

I have the same issue with this version: no player is shown, although I have installed all the players (in the correct directories), except for 1 Pixel Player. I'm also using PHP 5.3. Upon downgrading, the player (JW) is showing fine.

Guru’s picture

Issue tags: +PHP 5.3 compatibility, +php5.3

Solution in #4 renders the player fine, thus solving the issue (thanks Dark). But is this the right way? Needs work.

Stuart Greenfield’s picture

Priority: Major » Normal
Status: Needs work » Postponed (maintainer needs more info)

theme_swftools_embed() is now fixed on branch DRUPAL-6--3 and eliminates the error under PHP 5.3

However, I'm not sure if this solves the original report which seems to be the failure of the flash to embed at all.

Setting to needs more info (2011-02-19) in case the original issue still stands.

Changing priority to normal as this only seems to be affecting one user.

bledari’s picture

What do you mean with "affecting one user"? I have the same problem, switching to php 5.2 solved temporarily. I think this is major at least, version 3 cannot go anywhere without solving problems with php 5.3.

What info are needed? Maybe i can try to provide them.

Mitson’s picture

Just to confirm:
#4 solves #2

Thanks

Mitson’s picture

Thank you,
In my case 3.0-beta5 solves the problem!

Juc1’s picture

(sub)
for me, #4 solves #2