Closed (fixed)
Project:
SWF Tools
Version:
5.x-2.1
Component:
SWF Tools
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Jul 2007 at 21:06 UTC
Updated:
1 Jun 2011 at 14:58 UTC
I've attached some MP3s to a node and the correct player and all that but I get
'Error with xml generation by the XXX module.'
And the XML playlist file is empty
Player doesn't find the file and I noticed in Drupals logs its getting 404 errors on:
'files/files/16 kneel to the boss.mp3'
The file upload module stores the 'files' s part of its path.
I will fix the last problem myself, but is there anyway I can contribute my bug fixes to this project?
Comments
Comment #1
lennart commentedI have the same problem.
Maybe because we do not have standard paths?
mine is:
files/sitename/*
instead of just
files/*
but it is set up correctly in the file settings page so I should work and it works with other modules accesing files.
Comment #2
cpill commentedI modified a line in the modles code that returns the path to remove the 'files' part and now it works fine. I've come accross a few other minor bug that I've corrected. Works fine for me now.
Comment #3
lennart commentedcan you specify where you made the change?
Comment #4
FelixWonderland commentedHey guys, I'm having a similar issue.
I was getting the "Error with XML generation by the ______ module" message
My hypothesis was that there was insufficient privileges on the XML file/Playlists directory, but I've changed both and neither seemed to help.
Does anybody know what this problem comes from? I really would like to use this module!
Thanks,
Alex
Comment #5
simecpill, those spaces in the file name are not supported. I always forget that upload.module allows those.
I will accept patches, or a specific list of changes if there are not too many.
Comment #6
tsavino commentedWhere in the code is the extra "file" you fixed it but where is the code?
Thanks....
Comment #7
simeThe latest dev version
http://drupal.org/node/138077
Comment #8
RockSoup commentedHello. I am new at using swftools. I am experiencing the same issue as post 4 above. I am trying to use the 1pixelout mp3 player. I have the settings all correct on the file handling side, but when I submit a node with the file attached I get the "Error with xml generation by the onepixelout module." I see the file in the files dir and the xml playlist in the playlists dir, but the playlist.xml is empty. In the submitted node the player shows up and when you open it it says error opening file- I assume that is because it can't find the mp3 file due to the blank xml file... I am not sure if I set the module up correctly. I downloaded the swftools module and placed it is my sites/all/modules dir and I put the player.swf for onepixelout in a dir that I created called 1pixelout(per the read me). to look like this: sites/all/modules/swftools/shared/1pixelout/player.swf that is the only thing in the 1pixelout dir, should there be a .js file in there as well? could that be why I can't get it to make the xml playlist? Thanks for any help- this is a great little player and it is driving me nuts trying to get it to work... I am sure it is something simple....
ps-I downloaded the dev release above and it did the same thing as the stable release.
Comment #9
cpill commentedI'm having the same problem with the Onepixelout player. I also get:
I'm looking through the code and can't see any logic that changes it from a playlist to just a file name for SWFTOOLS_MP3_DISPLAY action?
I made the following changes to get it to work:
swftools.module (~line 278):
also a bit further down in that function around line 335 (after the above change) I had change it to:
hope that helps
Comment #10
simeHi, seems a different problem to the original title. I can't see the issue off-hand, I will try and figure out how we can troubleshoot this.
Comment #11
steinmb commentedI had the same "files/files/filname" problem on a clean 5.2 install and the latest stable swftools.
Upgraded to the latest dev. version. It didn't automaticly solve the problem, but I clicked through fwftools settings and the uploaded new contents and PRESTO all uploaded files played just fine. All playlist files was updateded with correct setting.
Comment #12
Stuart Greenfield commentedSetting to fixed as new releases of SWF Tools 5.x-2.0 and SWF Tools 6.x-1.1 are now available which address this issue.
Comment #13
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #14
mike15 commentedHello,
I have downloaded the latest SWF Tools version 5.x-2.1 and still experiencing an issue with 1 Pixel Out MP3 Player as where when I save the node, a message states "Error with xml generation by the onepixelout module." The player says "Connecting..."
Could someone offer any suggestions as to what I might be doing wrong as it appears to be fixed bug.
Comment #15
Stuart Greenfield commentedAre you trying to play a single mp3? Or a list of mp3 files?
If playing one, then you shouldn't be seeing this error since xml isn't generated for a single file!
If you are trying to play a list then that shouldn't be possible, since onepixelout only plays single files!
Could you check the source code for a page where this happens, and post the content of the
swftoolssection.This will give an indication whether onepixelout is trying to produce xml when it shouldn't, in which case I will open a new thread to track that bug as that is different to the original "files/files" bug in this thread.
In the meantime I will double check locally the onepixelout is working properly!
Comment #16
mike15 commentedStuart, here is the source snipped from the submitted page:
Comment #17
Stuart Greenfield commentedOK - so it is definitely trying to create an xml file - are you asking onepixelout to try and play a series of mp3 files? How are you using SWF Tools - via the SWF filter, or calling it from PHP?
Onepixelout cannot handle mp3 playlists, so if it is asked to generate xml it will fail as it has no mechanism to do it.
Comment #18
mike15 commentedMy goal is to create a series of individual mp3 files that are linked together so that user can play one song at a time. In this particular case, I am trying a very simple test. The page only has one mp3 file attached and the body section does not contain any php code so I am using filters to detect the mp3 file and play it via onepixelout as a default player for a single mp3.
Hope this helps.
Michael
Comment #19
mike15 commentedStuart,
This also seems like a bug or settings issue. If I specifically include the following line in the body of the page
<swf file="07 Destin.mp3">, using the default HTML Filter, I get two instances of 1 Pixel Out player, one of which is broken and one working.Comment #20
Stuart Greenfield commentedJust re-reading the issue queue and noticed this
How do you mean 'detect the mp3 file'?
Comment #21
sjancich commentedSorry to jump in on this thread, but I'm experiencing the same "files/files" issue. I have the latest version of swftools (8/15) and I'm running D5.9. This means the video can't be found.
Here is my embed code:
Comment #22
Stuart Greenfield commentedWhat code are you using to produce the flash content? The SWF Tools filter, or PHP? Can you post an example of the code that you are using so I can try to recreate the issue.
Comment #23
sjancich commentedI was using the php function to in the tpl file that looked very much like this:
swf($file, $params = FALSE, $flashvars = FALSE, $othervars = FALSE, $methods = FALSE);
the main difference is that I used CCK with a file upload as the $file var ($field_video_upload[0]['filepath'])
Comment #24
Stuart Greenfield commentedI've not used that method to produce flash content, but I wonder if the filename coming from $field_video_upload[0]['filepath'] already has "files/" prepended. Can you check by doing a print statement or similar.
If you use php within a node, and pass a filename that has files/ at the start then you get this error.
If this is the case the workaround in your template is to strip the extra files using a string replace. The proper fix (for me to do) is to think about stripping the extra 'files/' when it is present.
Comment #25
theorichel commentedI think I am having the same files/files-problem. I get this error message with the combo Flashnode 5x-6.0 SWFTools 5x-2.2:
Could not display the flash because "grkfiles/http://www.groenerekenkamer.nl/grkfiles/flash/Luboš_Motl__The_Reference_Frame.flv" does not appear to exist.
But in Flashnode I have removed the reference to 'grkfiles' so it ought not be prepended imho. After that first grkfiles the rest of the path is correct.
I was suggested to change the settings.php but to what then?
Any help would be very much appreciated
Thx
Comment #26
theorichel commentedIn response to what you suggested elsewhere I disabled SWFtools and then tried to upload a swf-file with Flashnode only. Didnt work uploading failed. Saying: You must specify a Flash file to upload."
Comment #27
theorichel commentedWell I FTP-ed the file to the Flash dir and then imported it and then it worked, but to my disappointment it doesnt stream. It is a 45 minutes movie that apparently needs to be downloaded first. Do I do something wrong?
Thx
Comment #28
stg11 commentedI am also still having problems with files/ appended in front of the correct url, using flashnode module, latest versions of both modules, trying to display a single flv with the JW media player 4. A patch for 5.x-2.2, anyone?
Comment #29
steinmb commentedThis issue is getting rather old. I'm closing this. Reopen, or create a new if this is still an issue in the 5.x-code. Drupal 5 is getting old.