Hi,

I recently migrated a site I am working on from a remote host to my localhost (WAMP). I found that all the old videos I had used with SWF tools that worked just fine on the remote site (upload via a custom content created with CCK) were broken (could not find the flash content). Anything new I uploaded worked just fine. All the files are in the appropriate directories. These are mp4's and I'm using flowplayer 3. It looks like maybe when you upload a file when creating content that it sets a path, and it's there for life. Anyone have some suggestions on how to fix this?

Comments

SchnWalter’s picture

what do you mean by: "could not find the flash content" - the flash player is not present on the page? or the videos are not accessible via the player?

for me it looks like a file permission problem or a file migration problem/human error

Stuart Greenfield’s picture

Path's are stored in the files database, so if there's a slight change in structure that can upset things. Given new content works ok then it sounds like that might be the issue.

SWF Tools doesn't store any data on its own, all it does is format content, so if the paths are broken it's not that SWF Tools didn't migrate properly, but that the path it is being asked to format is incorrect.

You could try disabling the "check for files" on the embedding settings, then try your content again. It probably still won't appear, but you can then examine the source code to see where it is trying to look for it (when check for files is enabled then when it fails you just see the error message, and SWF Tools never actually tries to embed).

But on balance I don't think this is an SWF Tools specific issue.

hermes_costell’s picture

I can confirm this problem - upon setting up DAMP (Aquia's WAMP-type solution) and importing an existing Drupal site whose files were stored locally the .swf files embedded with swfTools were not showing up. (Instead the "You are missing some Flash..." text was showing).

However as Stuart says above it does NOT appear to be a SWF Tools issue - rather it appears to be a swfObject issue.

The solution (FOR ME anyways) was to explicitly set the height and width parameters of the swf file in my code. As soon as I did that, then it worked fine. In my existing code I had never explicitly set the height/width of the embedded .swf - it showed up fine without...

The way I arrived at this - I went into the swfobject2.module file and messed around with things - outputting this and that - never able to get it to show up successfully. Then I dumped some existing embed code using swfObject from a non-Drupal site into my header and it did successfully show the .swf side-by-side with the "You are missing some Flash..." non-working embed. Then forcing the swfobject2.module file to output the swfObject code piece-by-piece so that it matched up with the working swfObject next to it, checking with each change to see if the .swf finally showed up.

The moment I set the height and width then it showed up.

Conversely upon omitting the height and width parameters of the swfObject embed code that I put into the of the document it then wasn't successful in loading the locally stored .swf.

belpix’s picture

Thanks, #3 (setting width and height explicitly) works for me too.