I've search the issues list and found some similar items, but none of those issues seem to apply or resolve my issue. At least, they didn't as far as I could tell. Here's the problem:

Recently we migrated to a new server, in the process switched from Debian to RedHat, PHP 5.2.9 -> 5.3.4, a slightly newer version of MySQL. The previous server was running SWFTools 6.x-2.5 using the embed method, and everything worked flawlessly. After the move, the flash content is not displaying. The major difference here is that the embed code renders the media directory url with ASCII character codes and then never seems to find the the file I'm trying to embed. This issue applies equally to 6.x-2.5 and 6.x.-3.0-beta5. So I am tempted to think that it might be an environmental variable, but I can't seem to track it down.

Any thoughts &/or suggestions would be greatly appreciated. I hope it is something as simple as something missing in the php.ini or something, but I thought I would post it here in case is module code related. Below is the source code as output from one of my nodes:

<div id="swftools-swftools-4d78f02033067" class="swftools swftools-jwplayer4"><div id="swftools-4d78f02033067"><p>You are missing some Flash content that should appear here! Perhaps your browser cannot display it, or maybe it did not initialize correctly.</p></div><script type="text/javascript">
<!--//--><![CDATA[//><!--
swfobject.embedSWF("/sites/all/libraries/mediaplayer4/player.swf", "swftools-4d78f02033067", "450", "", "7", "", { "playlistsize": "", "height": "", "width": "450", "frontcolor": "", "backcolor": "", "lightcolor": "", "screencolor": "", "skin": "%2Fsites%2Fall%2Flibraries%2Fmediaplayer4%2Fskins%2F", "logo": "", "overstretch": "default", "controlbar": "default", "playlist": "default", "plugins": "", "autostart": "true", "bufferlength": "", "displayclick": "default", "repeat": "default", "shuffle": "true", "volume": "", "captions": "", "link": "", "linktarget": "default", "streamscript": "", "type": "default", "fullscreen": "true", "accessible_visible": "1", "file": "https%3A%2F%2Faspire2020.ou.edu%2Fsites%2Faspire2020.ou.edu%2Ffiles%2F" }, { "swliveconnect": "true", "play": "true", "loop": "true", "menu": "false", "quality": "autohigh", "scale": "showall", "align": "l", "salign": "tl", "wmode": "opaque", "bgcolor": "#FFFFFF", "version": "7", "allowfullscreen": "true", "allowscriptaccess": "sameDomain", "base": "https://aspire2020.ou.edu/sites/aspire2020.ou.edu/files" }, { "name": "swftools-4d78f02033067" });
//--><!]]>
</script>
</div></div>

Comments

maritimefist’s picture

After an awful lot of debugging, I found that the ASCII characters were never the problem. Rather, in order to make this work, find the file and append it, I had to change a variable in swftools.module at line 1575. $path is replaced by $file.

 // If a remote path is set build the appropriate url to the file
  if ($media_url) {
    $ret['fileurl'] = $media_url . '/' . $path; 
    return $ret;
  }

becomes:

 // If a remote path is set build the appropriate url to the file
  if ($media_url) {
    $ret['fileurl'] = $media_url . '/' . $file; 
    return $ret;
  }