XSPF Playlist CCK

ranavaibhav - December 14, 2008 - 22:58
Project:XSPF Playlist
Version:6.x-1.0-alpha1
Component:Miscellaneous
Category:bug report
Priority:normal
Assigned:arthurf
Status:postponed (maintainer needs more info)
Description

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.

#1

arthurf - December 15, 2008 - 01:41
Assigned to:Anonymous» 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

#2

arthurf - December 15, 2008 - 01:45

Fix is in CVS

#3

ranavaibhav - December 16, 2008 - 00:02

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

AttachmentSize
Modules 257.8 KB

#4

blueskiwi - December 22, 2008 - 22:26

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 ?

#5

blueskiwi - December 22, 2008 - 22:56

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?

#6

arthurf - December 22, 2008 - 22:58

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

#7

blueskiwi - December 23, 2008 - 03:42

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.

#8

ClearXSClearXS - January 13, 2009 - 05:57

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

#9

amogiz - February 3, 2009 - 17:46

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

#10

stuffnthings - February 9, 2009 - 02:27

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

#11

vood002 - February 9, 2009 - 18:26

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.

#12

Arban - February 13, 2009 - 17:53

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

#13

nmpribeiro - February 25, 2009 - 12:00

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.

 
 

Drupal is a registered trademark of Dries Buytaert.