Closed (fixed)
Project:
SWF Tools
Version:
6.x-2.5
Component:
SWF Tools
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
31 May 2009 at 04:11 UTC
Updated:
23 May 2010 at 02:48 UTC
I ported my site to a new server and updated SWFTools. I got the following error:
warning: file_get_contents(/sites/all/modules/swftools/shared/swfobject2/swfobject.js) [function.file-get-contents]: failed to open stream: No such file or directory in /home/ringent/public_html/includes/common.inc on line 2359.
I thought it was because I didn't have the SWF tools in the correct directory. But I have swfobject.js in the correct file path in the module folder. Is there any problem with the newer version?
Thanks for any hints.
Jerry
Comments
Comment #1
webdev2 commentedI am getting the same error now
Comment #2
mcfilms commentedI believe I fixed it by changing the permissions of the directory that had the SWFs
Comment #3
webdev2 commentedfor me, there is no directory swfobject2 under:
/sites/all/modules/swftools/shared/
any ideas there?
Comment #4
Stuart Greenfield commentedThat means that swfobject2 hasn't been set up correctly. You need to download the appropriate js package, create the directory and put the js file there. See the documentation for details about the right locations for the various support files.
As an aside, the module should now use a remotely sourced library if it can't find the package locally - it sounds like that isn't working quite right.
Comment #5
webdev2 commentedthanks - will do
Comment #6
Stuart Greenfield commentedNo further follow up to last post, so seems this was fixed, or user has no further issue? Setting as fixed as part of issue queue tidy up.
Comment #8
mcfilms commentedThis recently happened to me AGAIN! But for anyone passing this way that is using SWFobgect2 for their flash detecting needs, here is what fixed it for me THIS time. The downloaded version of swfobject.js had permissions of 644 -- making it virtually "read-only". When I changed that file to 755 (all can execute) it magically stopped erroring out.