Hi there,

I ran into something interesting here where /admin/reports/swftools does not show the test content. I tried with a new drupal installation to make sure I didn't cause compatibility issues with any other modules/settings.

Reproduce:
- Get PHP 5.3.x, drupal 6.19
- Get swftools module, unpack to sites/all/modules as usual
- Get swfobject, unpack to sites/all/libraries/swfobject
- Turn module on (swf tools, swf tools api, swfobject and swf tools profiles), and go /admin/reports/swftools. At this point you will see the warning: Parameter 1 to theme_swftools_embed() expected to be a reference issue.
- Find your swftools.module file, and remove the ampersand from line 2325 as suggested above
- Refresh your admin/reports/swftools page

Results:
Test content does not show test content as expected, instead it's completely missing from the generated html, see:
<p> If the animation does not appear then check that your browser has the necessary Flash plug-in, and that JavaScript is enabled (if required). Also try clearing your browser's cache.</p><h3>Playback defaults</h3>

This issue seems to be related somehow to swfobject, since using direct embedding works just fine.

Many thanks,
Gizmo

Comments

Andy B’s picture

Priority: Normal » Critical

I get the same sort of error when creating a playlist out of the story content type. I would imagine it would do this for any swf tools embedding code though. This is what I did:

1. Edit the Story content type to include a new field
- label: Add mp3(s)
- field name field_mp3
- field type file
-widget file upload
2. Click save
3. Do whatever you want to the field_mp3 settings on the next page. They aren't very important to this bug.
4. Click display fields on the manage fields page of the story content type.
5. Make sure full node display is set to swf tools playlist
6. Click save
7. Make sure that the following settings are set for swf tools
- Embedding method is set to swf object2 - javascript
- soundmanager2 is set to be the default player for a single mp3 and multiple mp3s.
8. Click create content>story.
9. Fill out the form making sure to add at least 2 mp3 files.
10. Go to the node just created. I get this error: warning: Parameter 1 to theme_swftools_embed() expected to be a reference

It needs to be fixed.

Andy B’s picture

subscribe

Stuart Greenfield’s picture

Status: Active » Needs review

Theme functions fixed to eliminate this error on branch DRUPAL-6--3.