We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 502
    • 15 Posts
    Hi all, sorry for my bad English, because I’m from Russia.
    It’s a trouble with this player, when I try to call it more than 2 times per page an error occurred: "Fatal error: Call to a member function on a non-object in /home/modx/manager/includes/document.parser.class.inc.php(769) : eval()’d code on line 251". What is this???
      • 28033
      • 925 Posts
      Quote from: admhome at Aug 18, 2008, 03:59 AM

      Hi all, sorry for my bad English, because I’m from Russia.
      It’s a trouble with this player, when I try to call it more than 2 times per page an error occurred: "Fatal error: Call to a member function on a non-object in /home/modx/manager/includes/document.parser.class.inc.php(769) : eval()’d code on line 251". What is this???

      I have a feeling that this is due to the function being redeclared again or something or the like. Dunno how to fix it, though.
        My Snippets
        -> PopUpChunk v1.0
        • 22972
        • 4 Posts
        I’m having strange problem with xspf jukebox. I have two modx systems running, other on my own PC and other in commercial web server. I have installed xspf jukebox to both of them exactly same way. In my own PC xspf works correctly but in web server it just prints player size white box, nothing else is shown. I have check snippet name and content. And I downloaded snippet/xspf_jukebox folder from web server and run diff between it and folder on my PC. Everything was same. I use same browser for both sites (firefox). So I’m totally out of ideas where it goes wrong....

        Edit: One thing, it generates playlist correctly in media folder.
          • 23018
          • 353 Posts
          Just started to use the xspfjukebox and it works extremelyx fine regarding mp3 files in my media directory.

          At the source homepage I found out, that the most recent version of "Flash XSPF Jukebox"
          functions as both an .mp3 audio and .flv video player
          .

          Nice, I thought and updated to the new version. I still have an extraordinary mp3 player, but I can’t find any way to play any of my flv files in the media directory.

          A look at the source gave me no clue whether the snippet is looking exclusively for mp3, so I’d like  ask for you some advice what to do.

          Ragards,

          pepebe

          EDIT: xspf_jukebox.class.php exclusively searches for mp3 files to create an array called $audiafiles. Thats the reason, why flv files are ignored. I’ll try to fix this and post the solution in the next days to come.
            Homepage: pepebe.de | MODX snippets (and other stuff) at github: https://gist.github.com/pepebe
            • 2407
            • 54 Posts
            Followed all the steps any idea on why I’m getting these errors?

            « MODx Parse Error »

            MODx encountered the following error while attempting to parse the requested resource:
            « PHP Parse Error »

            PHP error debug
            Error: fopen(/"" "" ""/irlmusic.net/assets/media/xspf_generated_playlist.xml): failed to open stream: Permission denied
            Error type/ Nr.: Warning - 2
            File: /"" "" "" ""/irlmusic.net/assets/snippets/xspf_jukebox/xspf_jukebox.inc.php
            Line: 103
            Line 103 source: $fh = fopen($dir.$playlist_file, ’w’) or die("can’t open file");

            Parser timing
            MySQL: 0.0088 s (14 Requests)
            PHP: 0.0406 s
            Total: 0.0494 s
              • 7455
              • 2,204 Posts
              Quote from: Audiomad at Apr 14, 2009, 02:01 PM

              Followed all the steps any idea on why I’m getting these errors?

              « MODx Parse Error »

              MODx encountered the following error while attempting to parse the requested resource:
              « PHP Parse Error »

              PHP error debug
              Error: fopen(/"" "" ""/irlmusic.net/assets/media/xspf_generated_playlist.xml): failed to open stream: Permission denied
              Error type/ Nr.: Warning - 2
              File: /"" "" "" ""/irlmusic.net/assets/snippets/xspf_jukebox/xspf_jukebox.inc.php
              Line: 103
              Line 103 source: $fh = fopen($dir.$playlist_file, ’w’) or die("can’t open file");

              Parser timing
              MySQL: 0.0088 s (14 Requests)
              PHP: 0.0406 s
              Total: 0.0494 s

              Looks like you uploaded the file and did not gave the right permission to the file must be 655 I think
                follow me on twitter: @dimmy01
                • 23018
                • 353 Posts
                "can’t open file"

                I agree, this seems to be permission related.

                Another thing: Anyone interested in integrating multimedia content into his MODx project, should have a look at http://www.flowplayer.org/. It has some awesome features, nearly unlimited styling and very NICE tweaking options with javascript and css. Most important: With just a few lines of code it works out of the box with MODx.

                I don’t have the time to start a new project for this one, but I would give some assistance and share some code fragments with anyone willing to take responsibility for that. Perhaps some of the XSPFjukebox Snippet could be recycled for this...

                Regards,

                pepebe
                  Homepage: pepebe.de | MODX snippets (and other stuff) at github: https://gist.github.com/pepebe
                  • 25373
                  • 13 Posts
                  Hello,

                  I tried the parameter

                  &playlist_url=`[~94~]`


                  but it does not return the content of the xml doctype document where i have included playlist data.

                  Does this snippet only support real files on the webserver?

                  thanks
                  Alex
                    • 14412
                    • 74 Posts
                    Hello there,

                    It’s been a very long time since I was here.

                    I’ve not been following the project because I no longer do any webdesign anymore sad

                    So this is just to tell everyone that may be interested in this humble snippet that no, you will not get support from me sad

                    The upside is that since the original code was so simple, you can always improve it, very MODx-esly smiley

                    Someday I’ll be back...

                    Cheers,

                    JP
                      Got Music? Try XSPFjukebox - Skinnable MODx Media Player