ListenUp Player not being embedded when viewing CCK Content Type pages

Dru-p - October 25, 2008 - 20:26
Project:Audio recording field
Version:6.x-1.0-beta1
Component:Code
Category:bug report
Priority:critical
Assigned:pburk
Status:active
Description

With Drupal 6.5 ARF allows me to record and upload a .WAV file when editing a CCK content type.

When I view the same content type (even as administrator - hence no authority/permissions issues) the player is not embedded, so the audio is not playable.

The files *are* uploaded correctly as I can go back in and edit the content type including the uploaded .WAV file.

Which versions of Drupal do others have this working with?

The recorder/player has been upgraded since this module was published. Is this the issue?

Any hints on how to debug this would be appreciated.

#1

alphaXp - October 30, 2008 - 00:07

Hi, I've just downloaded the newest version of Drupal and ListenUp applet, and got everything working.
The trick is the resave cck's display fields settings. I'm not sure if this is cck's problem or mine, but I'll check in to it.

#2

Dru-p - October 30, 2008 - 13:22

Hi alphaXp,

Thanks, but I tried your fix and it *does not* work for me.

In fact I tried:

- saving display fields
- saving manage fields
- saving from cck type edit

... and also various combinations of:

- changing something then saving display fields
- clearing the caches
- changing the theme

None of the above seemed to make any difference.
No sign of the player being embedded in the page source.

Can you suggest anything else I can try to troubleshoot or gather 'evidence' ?

Dru-p :)

#3

alphaXp - November 2, 2008 - 00:36

Are you sure you're logged in using the admin account? (user 1)?
Did you set proper cck permissions for your audio recording field?

Try looking at your node page (the one that the player suppose to be displayed in) - can you find an <applet>
tags in there?

#4

Dru-p - November 2, 2008 - 22:52

Yes, I am logged in as user ID 1 when the applet doesn't display.

Yes, I have even tried allowing anonymous as well as authenticated users to have both view and edit permissions. Still not visible.

Yes, I have looked at the page source and the applet tag is not in the source.

The code to load the applet is not being sent to the browser.

I have not done this kind of Drupal/PHP debugging with CCK fields before and don't know where to start.

Any ideas appreciated. I'm stuck.

#5

alphaXp - November 2, 2008 - 23:12

OK...

For debuging in Drupal you have the Devel module. After installing it you would be able to check out the internal representation of a node. Check this out, and check if your audio recording field does hold the fid (file id) of the recorded file.

Hmm... now thinking about it, I suddenly remembered that I had the same problem back when I wrote this module, and a friend of mine solved it somehow... I think he said it was something about the temp files folder, or the file folder itself. Maybe something about these folders permissions?

#6

Dru-p - November 3, 2008 - 03:03

Yes, I have devel, but haven't used it before for debugging. Only used it to monitor memory usage and query times.

I'm learning now though ... I was having trouble with the idea of looking for something that *wasn't* happening, but now I realise I can look at the data structures within Drupal, particularly now I have Drupal for firebug (DFF) installed.

This is for a node that does not show the player. DFF shows the following for the audio field:

  [field_audio_recording] => array (
         [0] => array (
             [value] => [81]
             [file] => stdClass (
             )
         )
     )

I don't know what this means, so I'm wondering:
- What is 81?
- Should the 'stdClass()' have something like a filename between the brackets?

When I edit *the same node*, the recorder will play/edit the wav file, so the java applet *does* have access to the file.

#7

pburk - January 8, 2009 - 02:57
Assigned to:Anonymous» pburk

I am trying to figure this out. I resaved the display settings for the ListenUp content and the players magically started appearing. Here is how:

Click "Administer"
Click "Content Types"
Click "Manage Fields" link for ListenUp content.
Click "Display Fields" in top navigation bar.
Set "Label" to "Above".
Set "Teaser" and "Full Node" to "ListenUp player" for now.
Click "Save"

Note that if you record a message but do not "Send" it successfully to the server then the player will not appear for that page. I modified the renderer to display an informative message where the player would normally appear when this occurs.

Also I am finding that the links are being created but they have no text so they cannot be seen.

 
 

Drupal is a registered trademark of Dries Buytaert.