Hi

If someone creates a node with a SoundCloud field and that SoundCloud track is set to private then errors are created.

Warning: simplexml_load_string() [function.simplexml-load-string]: Entity: line 1: parser error : Start tag expected, '<' not found in soundcloudfield_field_formatter_view() (line 273 of /sites/all/modules/soundcloudfield/soundcloudfield.module).
Warning: simplexml_load_string() [function.simplexml-load-string]: in soundcloudfield_field_formatter_view() (line 273 of /sites/all/modules/soundcloudfield/soundcloudfield.module).
Warning: simplexml_load_string() [function.simplexml-load-string]: ^ in soundcloudfield_field_formatter_view() (line 273 of /sites/all/modules/soundcloudfield/soundcloudfield.module).
Notice: Trying to get property of non-object in soundcloudfield_field_formatter_view() (line 276 of /sites/all/modules/soundcloudfield/soundcloudfield.module).

Should this be fixed within the SoundCloud field module or should this be fixed within the node templates? The field has data in so it's not just a case of checking whether the data exists.

Edward

Comments

attila.fekete’s picture

Hi and thanks for your feedback. I've fixed this, you should check the development snapshot.

edwardcuf’s picture

Wow, thanks for the quick fix! :)

Now running the development version. We are using your module live on http://contests.remixcomps.com to accept music entries into contests

attila.fekete’s picture

Oh, it's very nice to see the module in action on a live site. I am glad if I could help.

attila.fekete’s picture

Status: Active » Fixed
jay.lee.bio’s picture

Wow, what a find. After pretty much giving up on Sound Cloud (I was not able to get this working: http://drupal.org/project/media_soundcloud), I just found your module. It is freakin' awesome. Thanks attila.fekete, and I'll let you know when my site launches as well.

P.S. Edwardcuf, your site is quite impressive.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

edit for wording

timfluhr’s picture

This doesn't seem to be fixed in the 6.x. Does anyone have a patch?

timfluhr’s picture

Issue summary: View changes
Status: Closed (fixed) » Active
attila.fekete’s picture

Status: Active » Needs review

Has been fixed in latest 6.x-1.x.

  • Commit 12c4358 on 7.x-1.x, 8.x-1.x by attila.fekete:
    Issue #1547858 by edwardcuf: fixed issue when the track or set is set to...
sachchidanand’s picture

With latest dev (7.x-1.x-dev) version of soundcloudfield at node detail page there is no any audio track and showing warning message

Notice: Trying to get property of non-object in soundcloudfield_field_formatter_view()

Can you suggest me please.

jay.lee.bio’s picture

@sachchidanand, the issue you had has now come back: https://www.drupal.org/node/2763295

akoepke’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.