EnhancedXSPF bug [solved]

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
kendo451

EnhancedXSPF bug [solved]

Post by kendo451 »

I am using EnhancedXSPF module on CMSMS 1.4.1 sit here:
http://benlueders.com/music

It works fine if I use the tag like this:

Code: Select all

{cms_module module=EnhancedXSPF player='extended' main_image='images/cms/benlueders.jpg' song=9}
But it does not work if I use the tag like this:

Code: Select all

{cms_module module=EnhancedXSPF player='extended' main_image='images/cms/benlueders.jpg' playlist=3}
Yes, Front End File Management Module is installed, and there is a playlist numbered three that has songs in it.

The error is that the XSPF player comes up, but the playlist just shows numbers, no song titles or songs.  Have tested in all browsers.

Any help would be appreciated.
Last edited by kendo451 on Fri Oct 24, 2008 3:53 pm, edited 1 time in total.
User avatar
wookie
New Member
New Member
Posts: 4
Joined: Thu Oct 09, 2008 11:20 am

Re: EnhancedXSPF bug

Post by wookie »

I had the same bug as well, so I created a fix for myself.

I have submitted this bug to CMSMS Forge with a sample fix.
If you need to get this working fast you can try and use my quick fix if you would like.

Just download my playlist.xml.php fix file
http://dev.cmsmadesimple.org/tracker/download.php/266/1077/2552/647/playlist.xml.php

Make a backup (if you want) somewhere of your old playlist.xml.php file in modules/EnhancedXSPF/playlist.xml.php
and replace it with the new playlist.xml.php you have downloaded.

I have not tested it everywhere, so if you try this out, let me know how it goes.
It works for me.
kendo451

Re: EnhancedXSPF bug

Post by kendo451 »

Your file did not work on my site.  What did you change in the code?
mrdevis
Forum Members
Forum Members
Posts: 14
Joined: Thu Jun 19, 2008 12:45 am

Re: EnhancedXSPF bug

Post by mrdevis »

For me this works, Thanks!
User avatar
wookie
New Member
New Member
Posts: 4
Joined: Thu Oct 09, 2008 11:20 am

Re: EnhancedXSPF bug

Post by wookie »

kendo451 wrote: Your file did not work on my site.  What did you change in the code?
The problem was that ADODB was not getting the database connection details from CMSMS. So i instantiated a new CmsObject so that it could be passed on to ADODB, that way the script could read the playlist from the database.
Dee
Power Poster
Power Poster
Posts: 1197
Joined: Sun Mar 19, 2006 8:46 pm

Re: EnhancedXSPF bug

Post by Dee »

Released EnhancedXSPF-0.5.1 with fix included.
The changes to playlist.xml.php can be found here.

Regards,
D
Dee
Power Poster
Power Poster
Posts: 1197
Joined: Sun Mar 19, 2006 8:46 pm

Re: EnhancedXSPF bug

Post by Dee »

@kendo:
Are you sure you are using the new playlist.xml.php from wookie?
From the error you're getting (see your playlist)  it looks like you're still using the old one:

Code: Select all

<b>Fatal error</b>:  Call to a member function GetConfig() on a non-object in <b>***/lib/adodb.functions.php</b> on line <b>7</b>
Regards,
D
Last edited by Anonymous on Mon Oct 20, 2008 11:59 am, edited 1 time in total.
kendo451

Re: EnhancedXSPF bug

Post by kendo451 »

You are right.  I uploaded it through the module manager and it works!
Locked

Return to “Modules/Add-Ons”