Posted by Tracy Dean on August 15, 2006 at 9:29am
Jump to:
| Project: | Playlist (toolkit, modules) |
| Version: | 4.7.x-1.x-dev |
| Component: | User interface |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
Hi
I have a number of problems with the Playlist module, but think they are probably all related:
1) On the add content/audio form I get a fieldset for 'playlists' but it doesn't show any playlists (I have one set up and working)
2) Clicking on the 'Add to playlist' link in an audio node gives me a page which again has an empty fieldset.
3) Editing an audio node gives me the following error:warning: Invalid argument supplied for foreach() in /home7/pfc/webs/test.pfc.org.uk/htdocs/modules/playlist/audio_playlist/audio_playlist.module on line 450.
4) Adding an audio node to the playlist via 'manage podcast' works fine.
If it's any help, I'm running under PHP 4.3.9.
Comments
#1
Hi, try downloading the latest 4.7 package and re-trying and let me know if you still have problems.
#2
Hi
I already have the latest package installed and still have the problem.
#3
I can't duplicate this. If you create an additional new playlist, does the error persist?
#4
Hi zirafa
I've created a second playlist called podcast_test.
Simptoms are now as follows:
1) On the add content/audio form I get a fieldset for 'playlists' but it still doesn't show any playlists (I now have two set up and working)
2) Clicking on the 'Add to playlist' link in an audio node now gives me a page with the option of selecting podcast_test (but not my existing playlist).
3) Editing an audio node still gives me the following error:
warning: Invalid argument supplied for foreach() in /home7/pfc/webs/test.pfc.org.uk/htdocs/modules/playlist/audio_playlist/audio_playlist.module on line 450.
#5
This is really perplexing. Line 450 of the current audio_playlist.module is a blank line.... :/
Ideas:
1) Delete both playlists and create a new one. The first playlist may contain garbage data.
2) Take a snapshot of what's in your database tables (playlist_relate and audio_playlist_metadata) and let us have a look.
-Farsheed
#6
Well, you've uploaded another version since this morning so the error is now saying line 475.
For the avoidance of doubt this line reads:
foreach($node->playlist as $parent_id => $value) {#7
OK, I've solved the problem.
The cause is that I had blanked out the 'Authored by:' field. Presumably the playlist module only displays playlists by the same user. Perhaps something about that in the documentation would save the problem arising again.
#8
Glad you fixed it!
Could you clarify what you mean by blanking out the author field?
#9
In the 'Authoring information' fieldset which is common to all nodes, the field 'Authored by:' which has the description 'Leave blank for Anonymous.'. This field contains by default the poster's user name. If you remove the user name in a playlist node, you get the problems I described.
#10
Hmm very strange. Even anonymous users have a unique id = 0. So I'm a bit perplexed. But thanks to your testing and the amount of info you've given me, I'm pretty sure I can figure it out now!
-Farsheed
#11