Postponed (maintainer needs more info)
Project:
XSPF Playlist
Version:
6.x-1.0-alpha1
Component:
Miscellaneous
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
14 Dec 2008 at 22:58 UTC
Updated:
25 Feb 2009 at 12:00 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
arthurf commentedWoops- need to update the documentation. Now the url is /node/X/xspf to keep things more like drupal
Comment #2
arthurf commentedFix is in CVS
Comment #3
ranavaibhavThanks 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 -
Please let me know if these information are not sufficient. For your troubleshooting conveniance i have attached a screenshot of my modules page
Comment #4
blueskiwi commentedme 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 ?
Comment #5
blueskiwi commentedapparently 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?
Comment #6
arthurf commentedI 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
Comment #7
blueskiwi commentednot 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.
Comment #8
ClearXS commentedSame 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
Comment #9
amogiz commentedI can't make this work and get the same Fatal error … any news about this ?
Comment #10
stuffnthings commentedhad 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
Comment #11
vood002 commentedI 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.
Comment #12
Arban commentedI 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
Comment #13
Anonymous (not verified) commentedThis 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.