Hey Guys,
First of all, this is great module...wonderful...
And second i understand this is an alpha release...

I installed the new release of this module on my Drupal 6.8 with CCK File field and jQuery Media

I uploaded few videos with CCK File Filed and it works great except the playlist are not created. When i browse to http://localhost/my-site/xspf/node/MY-NID i get PAGE NOT FOUND error.

Am i missing anything. Please advise.

CommentFileSizeAuthor
#3 Modules257.8 KBranavaibhav

Comments

arthurf’s picture

Assigned: Unassigned » arthurf
Status: Active » Postponed (maintainer needs more info)

Woops- need to update the documentation. Now the url is /node/X/xspf to keep things more like drupal

arthurf’s picture

Fix is in CVS

ranavaibhav’s picture

StatusFileSize
new257.8 KB

Thanks for the quick reply...

I checked as you mentioned above but still i do not see the playlist, instead it opens my page with videos, not the xml format playlist.

I'm receiving following error while enabling XSPF Playlist Node module -

Fatal error: Call to undefined function db_num_rows() in D:\xampp\htdocs\chitramandir\sites\all\modules\xspf_playlist\xspf_playlist_node\xspf_playlist_node.install on line 55

Please let me know if these information are not sufficient. For your troubleshooting conveniance i have attached a screenshot of my modules page

blueskiwi’s picture

me too... trying to enable all the XSPF modules, and this last one gives that error

in drupal API docs it appears that db_num_rows() function no longer exists in D6 ?

blueskiwi’s picture

apparently this is how line 55 show now read:

if (module_exists('views') && db_result(db_query("SELECT COUNT(id) FROM {view_view} WHERE page_type = 'xspf_playlist'"))) {

but after making that change I just get more errors:

* warning: array_filter() [function.array-filter]: The first argument should be an array in D:\My Documents\design\drupal.htdocs\sites\all\modules\xspf_playlist\xspf_playlist_node\xspf_playlist_node.install on line 21.
* user warning: Table 'pgb.dr_view_view' doesn't exist query: SELECT COUNT(id) FROM dr_view_view WHERE page_type = 'xspf_playlist' in D:\My Documents\design\drupal.htdocs\sites\all\modules\xspf_playlist\xspf_playlist_node\xspf_playlist_node.install on line 55.

...so I guess I'm just discovering the XSPF Playlist Node module isn't ready for use yet?

arthurf’s picture

I made a number of changes to the the module, one of which is that the playlist is now generated at node/XX/xspf to keep things more drupally. You might want to test against DRUPAL-6 where the latest changes are- I haven't had time to make a new release yet

blueskiwi’s picture

not sure if that reply was to me or above, I should have stated I am using the latest D6 version of the modules on a D6 site.

ClearXS’s picture

Same error after vinking on:

Fatal error: Call to undefined function db_num_rows() in /home1/..../public_html/d/sites/all/modules/xspf_playlist/xspf_playlist_node/xspf_playlist_node.install on line 55

Using Drupal6.8 with many mods. Because of the many mods I had often (also other) conflicts and had to re-install 6 times. So I know I just have to turn of xspf_playlist_node

// $Id: xspf_playlist_node.install,v 1.1.2.5.2.1 2008/12/14 18:37:12 arthuregg Exp $

But when I go back to the modules page:

* warning: array_filter() [function.array-filter]: The first argument should be an array in /home1.../public_html/d/sites/all/modules/xspf_playlist/xspf_playlist_node/xspf_playlist_node.install on line 21.
* warning: array_filter() [function.array-filter]: The first argument should be an array in /home1/.../public_html/d/sites/all/modules/xspf_playlist/xspf_playlist_node/xspf_playlist_node.install on line 21.
* The content access permissions need to be rebuilt. Please visit this page.

the last sentence has to do with other mods)

Looked again in the xspf modules after rebuilding & vinked all but the xxx.node:

You must enable the Audio module to install XSPF Playlist Audio.

yes =>

The content access permissions need to be rebuilt. Please visit this page. (again)

Back to modules => no error messages.

vinked XSPF Playlist Node on & saved configuration =>

Fatal error: Call to undefined function db_num_rows() in /home1/.../public_html/d/sites/all/modules/xspf_playlist/xspf_playlist_node/xspf_playlist_node.install on line 55

Going back to modules/list :

warning: array_filter() [function.array-filter]: The first argument should be an array in /home1/.../public_html/d/sites/all/modules/xspf_playlist/xspf_playlist_node/xspf_playlist_node.install on line 21.

Elsewhere I have this message:

FLV Media Player Asset Integration 6.x-1.0-alpha1 Integrate FLV Media Player with Asset Module
Depends on: SWFObject API (enabled), Xspf_playlist asset (missing)

That file is not availbale for drupal6 i think & dont know if it could be related or not

amogiz’s picture

I can't make this work and get the same Fatal error … any news about this ?

stuffnthings’s picture

had same error, then changed line 55 on xspf_playlist_node.install,v 1.1.2.5.2.1 to
if (module_exists('views') && db_result(db_query("SELECT COUNT(id) FROM {view_view} WHERE page_type = 'xspf_playlist'"))) {

and got initial error, but no other problems ...

www.austinhiphopunderground.com

vood002’s picture

I was getting this error as well:

warning: array_filter() [function.array-filter]: The first argument should be an array in /home1/.../public_html/d/sites/all/modules/xspf_playlist/xspf_playlist_node/xspf_playlist_node.install on line 21.

If you look through what the function xspf_playlist_node_import_settings is doing it is checking the DB for old xspf info that it needs to update...this wasn't applicable to me since I hadn't installed xspf before on this version. Therefore, I commented everything from the line

if ($enabled_types = array_filter(variable_get('xspf_playlist_types', FALSE))) {

to the end of the function

(ie)

if (module_exists('views') && db_num_rows("SELECT * FROM {view_view} WHERE page_type = 'xspf_playlist'")) {
db_query("UPDATE {view_view} SET page_type = 'xspf_playlist_node' WHERE page_type = 'xspf_playlist'");
views_invalidate_cache();
}
*/

and it installed fine. I'm pretty sure you could just comment out the call on line 9 ( xspf_playlist_node_import_settings(); ) but this isn't how I did it. The XSPF Node module is working fine for me.

Arban’s picture

I have also the same error:

warning: array_filter() [function.array-filter]: The first argument should be an array in /home1/.../public_html/d/sites/all/modules/xspf_playlist/xspf_playlist_node/xspf_playlist_node.install on line 21.

But after comment the lines you suggest, I haven't the error anymore. But I still have a blank screen. After a refesh it seems that the module 'XSPF Playlist Node' isn't active. So I can't get the Playlist Node active.

If I take a look in the XSPF settings page, I also can't go further. I only see the main settings (Default playlist title, file type,...). But that's all.

Is there a solution (or a dev version) to use XSPF in Drupal 6.9? At these moment, choosing for Drupal 5.x feels a little like standing with one leg in the past...

Thanks !
Sebastiaan

Anonymous’s picture

This is definetly an issue that should be corrected. I change the line 55 to
if (module_exists('views') && db_result(db_query("SELECT COUNT(id) FROM {view_view} WHERE page_type = 'xspf_playlist'"))) {
just to make the install, and then revert the changes back.
Looking forward to see this corrected!
Everyone that installs version xspf_playlist-6.x-1.0-alpha1 seams to have this problem even in a fresh drupal installation. I've tried a few times.