flash node broke when moved onto server

wildlettuce - April 16, 2009 - 00:59
Project:Flash Node
Version:5.x-6.0
Component:Miscellaneous
Category:bug report
Priority:critical
Assigned:wildlettuce
Status:active
Description

For some reason when I moved my local site onto the server my flash node renamed my flash file from slideshow.swf to slideshow_0.swf. Obviously the node disappeared.

In Edit I tried to Browse and (re)upload slideshow.swf but when I Preview I get this error:

The selected file could not be copied, because no file by that name exists. Please check that you supplied the correct filename.

Any ideas?

#1

wildlettuce - April 16, 2009 - 16:43

update: I thought I could cheat by changing the name of my swf from slideshow.swf to slideshow_0.swf - no good.

It says:Current file is slideshow_0.swf, but it shows a blank space. I also made sure my base path is /sites/all/themes/myTheme/flash (the location of my files)- still nothing.

I also tried removing the file from the server and then uploading - same error.
I also tried submitting a new flash - same error.

Note: the direct path to the flash works beautiful, so it isn't an issue with the swf.
The flash node worked perfectly when I had it locally.
I have tried to upload from Firefox, IE, and Chrome - same error.

Is there somewhere I can type the path in directly, instead of using the Browse/upload function?
This is for a client that has already paid me for the site, so I am a bit worried. Any help (hack or legit) would be super appreciated.

#2

Stuart Greenfield - April 17, 2009 - 20:22

Is the path the file is at your regular upload path?

What does the filepath being created in the source code of the page like - is it pointing to the right place?

Do you have the site on a public facing page?

Also, did you move your whole site to an equivalent structure, complete with content, or are you starting to populate a new live site?

#3

wildlettuce - April 20, 2009 - 18:04

The upload function of the Flash node is completely broken. I tried to create a new flash node (starting from scratch) and the upload threw the same error.

The base path (in Advanced flash node options) is set to /sites/all/themes/myTheme/flash.
The direct path is slideshow.swf.

"flash" is a folder I set up for the flash node (this set-up worked perfectly locally.)

When I view source the path is: http://mysite.org/files/sites/all/themes/myTheme/flash/slideshow.swf! A-ha! it is trying to find it in "files"

I tried changing the base path to ../sites/all/themes/myTheme/flash to get it out of the files folder... no luck.

I tried putting the flash folder in files and repathing to /flash... no luck. The path in the source code is still http://mysite.org/files/sites/all/themes/myTheme/flash/slideshow.swf

I finally tried changing the path directly in the database. I changed the base path directly in the flash node table and the node path in the files table. IT WORKED!

But the flash node interface is still broken. Obviously changing the path in the Drupal interface had no affect and trying to upload new files through the interface throws an error.

Thank you for helping me to find the problem Stuart! You are a lifesaver! I guess if I want a new flash node I will have to work through the database for now.

Thanks again! :D

#4

Stuart Greenfield - April 20, 2009 - 22:46

A-ha! it is trying to find it in "files"

This is by design - since we use the regular upload mechanism to put files on the site it assumes they will be under your site's files directory. It sounds like you maybe moved the files outside of this regular path - flash node doesn't support that as a mechanism. If you put a new path in the settings page it assumes that is still relative to the files directory.

If you really want to do it then changing the database would work around it.

#5

wildlettuce - April 23, 2009 - 21:31

The work around worked well for this site, but I have one question for future builds. Did having a path outside of files (which worked locally) when I uploaded the site to the server break the flash node?

I now have the path set up inside of files by correcting my file structure and pathing within the database. However, the node will still not allow me to upload any new material and any path setting within the flash node interface is ineffective.

If I wanted to add more flash to this site, would I have to uninstall/reinstall the Flash Node module?

#6

zukalous - May 23, 2009 - 22:05

I don't know if the flash node module is broken because I did the following and am stuck with an error:

I uploaded and viewed a flash file after first installing the node.

Then on that configuration page I tried to change "Default flash path:" to another directory but I got "The directory does not exist."

So I didn't want to mess with it anymore and tried to change it to the default by pressing the Reset to default button and now I always get "The directory does not exist"

What do I do?

#7

sunchaser - September 26, 2009 - 15:51

I have the same issue on a Drupal 6.x

It seems that my Flash Node upload functionality is broken too.

/domain.com/drupal/sites/default/files/flash is where my swf's should be stored when I upload them through the create flash node content form.

In admin/settings/flashnode Under the File Settings > Default Flash Path > I put in "flash".
(Subdirectory in the directory "files" where Flash files will be stored. Do not include a leading or trailing slash.)

When I check in the HTML source of the page the url to the SWF looks ok , but the SWF is just not there ... it hasn't been uploaded.

Already checked my Admin permissions and I have full persmission on the Flash Node object ...

It just seems like as if my Drupal install isn't allowed to upload anything into the files/flash folder. (it's got permissions 755 , but that's normal, right ?)

All ideas welcome !
Sunchaser

#8

arritjenof - October 12, 2009 - 22:47

i think it's time to file issues, or provide patches that fix this to the developer of this project.

hope i have some time to look into it some day in the coming weeks..

 
 

Drupal is a registered trademark of Dries Buytaert.