WordPress.org

Ready to get started?Download WordPress

Forums

WP-Spotify
Error on line 93? (4 posts)

  1. xionkid
    Member
    Posted 3 years ago #

    Hi!

    When I try to link a song in a page I get this error:

    Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /storage/content/57/117057/silentwhisper.nu/public_html/wp-content/plugins/wp-spotify/wp-spotify.class.php on line 93
    Duplicate entry '' for key 'trackTrackUri'

    help?

  2. sunnre
    Member
    Posted 3 years ago #

    Yes, I'm having the same problem over at my site and I've found that adding modifying the line 93 to return array("album" => array_merge((array)$album, (array)$cover), "artist" => $artist, "track" => array_merge((array)$tracktitle, (array)$trackuri)); but now it seems that the plugin doesn't write the title information into the database. I'm doing my best to fix it but any help would be greatly appreciated.

  3. Bobish51
    Member
    Posted 2 years ago #

    Hey sunnre !

    I've tried your modification and it works well. Did you reach to fix the fact Title name is not displayed?

  4. sunnre
    Member
    Posted 2 years ago #

    Yes, in fact I did fix it. I've uploaded the fixed version here. Although my version is a bit modified it's still pretty much the same as the original one.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags