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

lennart’s picture

I 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.

cpill’s picture

I 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.

lennart’s picture

can you specify where you made the change?

FelixWonderland’s picture

Hey 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

sime’s picture

cpill, 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.

tsavino’s picture

Where in the code is the extra "file" you fixed it but where is the code?

Thanks....

sime’s picture

The latest dev version
http://drupal.org/node/138077

RockSoup’s picture

Hello. 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.

cpill’s picture

I'm having the same problem with the Onepixelout player. I also get:

'Error with xml generation by the generic_mp3 module.'

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):

    // PLAYLIST or Single file?
    if(in_array($action, array(SWFTOOLS_FLV_DISPLAY, SWFTOOLS_MP3_DISPLAY, SWFTOOLS_MEDIA_DISPLAY)))
    {
        // Single file so just set the first item in the passed playlist to its name
        $file = array_shift($othervars['playlist_data']['playlist']);
        $file = $file['filepath'];
        $playlist = true;   // hack to stop swftools_get_media_path() being added to the path bellow
    }
    else
        if (isset($othervars['playlist_data'])) {
            // Generate a playlist and receive a file path in return.
            // This file name will be relative webroot
            $playlist = TRUE; // Flag it's a playlist.
            $file = swftools_generate_playlist($othervars['playlist_data'], $playlist_name, $resolved_methods, $vars, FALSE);
            if (!$file) {
                drupal_set_message("Unable to create playlist.");
                return $html_alt;
            }
        }

also a bit further down in that function around line 335 (after the above change) I had change it to:

    default:
      $vars->params['src_path'] = swftools_get_player_path() .'/'. $resolved_methods->player['shared_file'];
      $vars->params['src'] = swftools_get_player_path() .'/'. $resolved_methods->player['shared_file'];

hope that helps

sime’s picture

Hi, 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.

steinmb’s picture

I 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.

Stuart Greenfield’s picture

Status: Active » Fixed

Setting 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.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

mike15’s picture

Version: 5.x-1.1 » 5.x-2.1
Status: Closed (fixed) » Active

Hello,

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.

Stuart Greenfield’s picture

Status: Active » Postponed (maintainer needs more info)

Are 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 swftools section.

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!

mike15’s picture

Stuart, here is the source snipped from the submitted page:

Your <em>Story</em> has been created.</div>
<div class="messages error">
Error with xml generation by the onepixelout module.</div>
				  <div class="node">

            <div class="submitted">Submitted by <a href="/en/user/1" title="View user profile.">testuser</a> on Wed, 24/09/2008 - 15:01.</div>
    <div class="taxonomy"></div>
    <div class="content"><!--paging_filter--><p>nice audio</p>
<div class="swftools-wrapper onepixelout swftools-upload"><div id="swfobject2-id-12222685511" class="swftools swfobject2">
<p>Sorry, flash is not available.</p>
</div>
<script type="text/javascript">
swfobject.embedSWF("http://www.domain.com/sites/all/modules/swftools/shared/1pixelout/player.swf", "swfobject2-id-12222685511", "290", "24", "7", "", { "autostart": "yes", "loop": "no", "text": "FFFFFF", "track": "818C24", "soundFile": "http://www.domain.com/files/playlists/e5fcf296727fab3b5918221d88b924a3.xml" }, { "wmode": "window", "bgcolor": "#FFFFFF", "menu": "true", "play": "true", "loop": "true", "quality": "autohigh", "align": "l", "salign": "tr", "scale": "showall", "swliveconnect": "true", "version": "7", "allowfullscreen": "true", "base": "http://www.domain.com/files/", "src": "http://www.domain.com/sites/all/modules/swftools/shared/1pixelout/player.swf", "height": 24, "width": 290 }, { "id": "swf12222685511" });
</script>

</div></div>
      </div>

Stuart Greenfield’s picture

OK - 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.

mike15’s picture

My 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

mike15’s picture

Stuart,

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.

Stuart Greenfield’s picture

Just re-reading the issue queue and noticed this

I am using filters to detect the mp3 file

How do you mean 'detect the mp3 file'?

sjancich’s picture

Sorry 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:

<div class="swftools-wrapper wijering4-mediaplayer"><div class="swftools"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="400" height="320">
<param name="allowScriptAccess" value="sameDomain">
<param name="movie" value="http://globalnetwork.hfwebdev.com/sites/all/modules/swftools/shared/flash_media_player/player.swf">

<param name="wmode" value="opaque">
<param name="bgcolor" value="#FFFFFF">
<param name="scale" value="showall">
<param name="quality" value="autohigh">
<param name="align" value="l">
<param name="allowFullScreen" value="true">
<param name="base" value="http://globalnetwork.hfwebdev.com/files/">
<param name="play" value="true">
<param name="menu" value="false">
<param name="loop" value="false">
<param name="FlashVars" value="width=400&amp;height=320&amp;file=http://globalnetwork.hfwebdev.com/files/files/video/video.flv">
<embed swliveconnect="default" src="http://globalnetwork.hfwebdev.com/sites/all/modules/swftools/shared/flash_media_player/player.swf" wmode="opaque" bgcolor="#FFFFFF" scale="showall" quality="autohigh" loop="false" menu="false" play="true" name="" base="http://globalnetwork.hfwebdev.com/files/" allowfullscreen="true" salign="tl" flashvars="width=400&amp;height=320&amp;file=http://globalnetwork.hfwebdev.com/files/files/video/video.flv" allowscriptaccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" width="400" height="320">
</object></div>

Stuart Greenfield’s picture

What 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.

sjancich’s picture

I 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'])

Stuart Greenfield’s picture

I'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.

theorichel’s picture

I 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

theorichel’s picture

In 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."

theorichel’s picture

Well 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

stg11’s picture

I 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?

steinmb’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

This 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.