Errors in loading the flash files when creating node

martink - January 6, 2009 - 09:48
Project:Flash Node
Version:5.x-6.0
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:active
Description

I'm using Drupal 5.3 and Firefox 2

Here is what happens:
1) I create a Flash node (working as UID 1 so there should be no permissions problems). I select an swf file on my PC, leaving the "Display" to be "In body only" and the width and height blank; but when I press "Submit" I get the error message below: the node is created but displays nothing.

* The selected file could not be copied, because no file by that name exists. Please check that you supplied the correct filename.
* warning: Invalid argument supplied for foreach() in /var/www/drupal-5.3/sites/all/modules/flashnode/flashnode.module on line 416.

2) I edit the node and select the same file, leaving "width" and "height" blank. I get this error message:

warning: Invalid argument supplied for foreach() in /var/www/drupal-5.3/sites/all/modules/flashnode/flashnode.module on line 416.

HOWEVER, the file has in fact been imported! The only problem is that it is tiny because the size has been set (despite the fact that I entered no size information) as Width 63 and Height 39.

3) I edit the height to get something reasonable (eg 800 by 500), and this is accepted.

So, the end result is that I manage to get my Flash loaded and displayed but it is terribly laborious!

#1

martink - January 9, 2009 - 11:30

I tried to get around this using the import option. When I had imported the file it gave me the following error message:

warning: Invalid argument supplied for foreach() in /var/www/drupal-5.3/sites/all/modules/flashnode/flashnode.module on line 416.

Then I went to edit the Flash so that it appeared as published - the actual Flash video could not be seen (although when I edit the node I can see the reference to the video file which looks ok).
So I edited the node and uploaded the Flash in the normal way - everything looks ok and I can see the video.

Bizarre!

I hope someone can help - this is a very useful module which I hope to use a lot more often

 
 

Drupal is a registered trademark of Dries Buytaert.