Page 1 of 1
EnhancedXSPF bug [solved]
Posted: Thu Oct 02, 2008 2:32 pm
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.
Re: EnhancedXSPF bug
Posted: Thu Oct 09, 2008 12:33 pm
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.
Re: EnhancedXSPF bug
Posted: Thu Oct 09, 2008 10:48 pm
by kendo451
Your file did not work on my site. What did you change in the code?
Re: EnhancedXSPF bug
Posted: Sat Oct 11, 2008 10:39 am
by mrdevis
For me this works, Thanks!
Re: EnhancedXSPF bug
Posted: Mon Oct 20, 2008 9:38 am
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.
Re: EnhancedXSPF bug
Posted: Mon Oct 20, 2008 11:48 am
by Dee
Released
EnhancedXSPF-0.5.1 with fix included.
The changes to playlist.xml.php can be found
here.
Regards,
D
Re: EnhancedXSPF bug
Posted: Mon Oct 20, 2008 11:57 am
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
Re: EnhancedXSPF bug
Posted: Wed Oct 22, 2008 7:32 pm
by kendo451
You are right. I uploaded it through the module manager and it works!