What's new
[XB] Music Thread Starter

[XB] Music Thread Starter [Paid] 2.2.0 Patch Level 5

No permission to buy ($30.00)

Painbaker

Administrator
Painbaker submitted a new resource:

Music Thread Starter for XenForo - Start music threads the easy way

Do you run a music review or discussion site? Always copying and pasting information from TheAudioDB to your new threads? Or, maybe you just want a place on your site to discuss music with friends.

Then this add-on is for you!

The AudioDB Music Thread Starter allows you to enter the album ID or the entire link to the album at TheAudioDB into your new thread, add whatever comments you like and post the new thread. The Music Thread Starter will import all of the information for your album...

Read more about this resource...
 
It's been a few years since I installed this; however, I see no option to add it to any forum; this was a fresh install.


Screenshot_3-1-2025_20575_offtopix.com.jpeg
 
I just started getting this error when posting an album. Any ideas? I’m on the newest version of xf.
Code:
[B]ErrorException[/B]: [E_WARNING] Undefined array key 4 in [B]src/addons/Snog/Music/Helper/Tadb.php[/B] at line [B]165[/B]
[LIST=1]
[*][B]XF::handlePhpError()[/B] in [B]src/addons/Snog/Music/Helper/Tadb.php[/B] at line [B]165[/B]
[*][B]Snog\Music\Helper\Tadb->getTrackList()[/B] in [B]src/addons/Snog/Music/Entity/Music.php[/B] at line [B]421[/B]
[*][B]Snog\Music\Entity\Music->setFromApiResponse()[/B] in[B]src/addons/Snog/Music/Service/Music/Creator.php[/B] at line [B]190[/B]
[*][B]Snog\Music\Service\Music\Creator->setFromApiResponse()[/B] in[B]src/addons/Snog/Music/Service/Music/Creator.php[/B] at line [B]90[/B]
[*][B]Snog\Music\Service\Music\Creator->setTrackApiResponse()[/B] in[B]src/addons/Snog/Music/Service/Music/Creator.php[/B] at line [B]124[/B]
[*][B]Snog\Music\Service\Music\Creator->setMusicId()[/B] in[B]src/addons/Snog/Music/ThreadType/Music.php[/B] at line [B]263[/B]
[*][B]Snog\Music\ThreadType\Music->processExtraDataService()[/B] in[B]src/XF/Service/Thread/CreatorService.php[/B] at line [B]368[/B]
[*][B]XF\Service\Thread\CreatorService->setDiscussionTypeAndDataInternal()[/B] in[B]src/XF/Service/Thread/CreatorService.php[/B] at line [B]220[/B]
[*][B]XF\Service\Thread\CreatorService->setDiscussionTypeAndData()[/B] in[B]src/XF/Pub/Controller/ForumController.php[/B] at line [B]699[/B]
[*][B]XF\Pub\Controller\ForumController->setupThreadCreate()[/B] in[B]src/XF/Pub/Controller/ForumController.php[/B] at line [B]925[/B]
[*][B]XF\Pub\Controller\ForumController->actionPostThread()[/B] in[B]src/addons/AVForums/TagEssentials/XF/Pub/Controller/Forum.php[/B] at line [B]24[/B]
[*][B]AVForums\TagEssentials\XF\Pub\Controller\Forum->actionPostThread()[/B] in[B]src/addons/Snog/Games/XF/Pub/Controller/Forum.php[/B] at line [B]45[/B]
[*][B]Snog\Games\XF\Pub\Controller\Forum->actionPostThread()[/B] in[B]src/addons/Snog/Movies/XF/Pub/Controller/Forum.php[/B] at line [B]25[/B]
[*][B]Snog\Movies\XF\Pub\Controller\Forum->actionPostThread()[/B] in[B]src/addons/Snog/Music/XF/Pub/Controller/Forum.php[/B] at line [B]54[/B]
[*][B]Snog\Music\XF\Pub\Controller\Forum->actionPostThread()[/B] in[B]src/addons/Snog/TV/XF/Pub/Controller/Forum.php[/B] at line [B]34[/B]
[*][B]Snog\TV\XF\Pub\Controller\Forum->actionPostThread()[/B] in [B]src/XF/Mvc/Dispatcher.php[/B] at line[B]362[/B]
[*][B]XF\Mvc\Dispatcher->dispatchClass()[/B] in [B]src/XF/Mvc/Dispatcher.php[/B] at line [B]264[/B]
[*][B]XF\Mvc\Dispatcher->dispatchFromMatch()[/B] in [B]src/XF/Mvc/Dispatcher.php[/B] at line [B]121[/B]
[*][B]XF\Mvc\Dispatcher->dispatchLoop()[/B] in [B]src/XF/Mvc/Dispatcher.php[/B] at line [B]63[/B]
[*][B]XF\Mvc\Dispatcher->run()[/B] in [B]src/XF/App.php[/B] at line [B]2826[/B]
[*][B]XF\App->run()[/B] in [B]src/XF.php[/B] at line [B]806[/B]
[*][B]XF::runApp()[/B] in [B]index.php[/B] at line [B]23[/B]
[/LIST]

Below my server log.

[LIST]
[*]ErrorException: [E_WARNING] Undefined array key 4
[*]src/addons/Snog/Music/Helper/Tadb.php:165
[*]Generated by: [URL='https://www.welovetheeighties.com/admin.php?users/pete.2/edit']Pete[/URL]
[*]Feb 5, 2025 at 5:08 PM
[/LIST]
[HEADING=2]Stack trace[/HEADING]
#0 src/addons/Snog/Music/Helper/Tadb.php(165): XF::handlePhpError(2, '[E_WARNING] Und...', '/home/chtas/pub...', 165)
#1 src/addons/Snog/Music/Entity/Music.php(421): Snog\Music\Helper\Tadb->getTrackList(Array)
#2 src/addons/Snog/Music/Service/Music/Creator.php(190): Snog\Music\Entity\Music->setFromApiResponse(Array, Array)
#3 src/addons/Snog/Music/Service/Music/Creator.php(90): Snog\Music\Service\Music\Creator->setFromApiResponse(Array, Array)
#4 src/addons/Snog/Music/Service/Music/Creator.php(124): Snog\Music\Service\Music\Creator->setTrackApiResponse(Array)
#5 src/addons/Snog/Music/ThreadType/Music.php(271): Snog\Music\Service\Music\Creator->setMusicId(2128726)
#6 src/XF/Service/Thread/CreatorService.php(368): Snog\Music\ThreadType\Music->processExtraDataService(Object(TickTackk\ChangeContentOwner\XF\Entity\Thread), 'create', Object(XF\Http\Request), Array)
#7 src/XF/Service/Thread/CreatorService.php(220): XF\Service\Thread\CreatorService->setDiscussionTypeAndDataInternal('snog_music_musi...', Object(XF\Http\Request), Array)
#8 src/XF/Pub/Controller/ForumController.php(699): XF\Service\Thread\CreatorService->setDiscussionTypeAndData('snog_music_musi...', Object(XF\Http\Request))
#9 src/XF/Pub/Controller/ForumController.php(632): XF\Pub\Controller\ForumController->setupThreadCreate(Object(TickTackk\ChangeContentOwner\XF\Entity\Forum))
#10 src/XF/Mvc/Dispatcher.php(362): XF\Pub\Controller\ForumController->actionDraft(Object(XF\Mvc\ParameterBag))
#11 src/XF/Mvc/Dispatcher.php(264): XF\Mvc\Dispatcher->dispatchClass('XF:Forum', 'Draft', Object(XF\Mvc\RouteMatch), Object(SV\StandardLib\XF\Pub\Controller\Forum), NULL)
#12 src/XF/Mvc/Dispatcher.php(121): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(SV\StandardLib\XF\Pub\Controller\Forum), NULL)
#13 src/XF/Mvc/Dispatcher.php(63): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#14 src/XF/App.php(2826): XF\Mvc\Dispatcher->run()
#15 src/XF.php(806): XF\App->run()
#16 index.php(23): XF::runApp('XF\\Pub\\App')
#17 {main}
[HEADING=2]Request state[/HEADING]
array(4) {
  ["url"] => string(47) "/forums/80s-rock-and-heavy-metal-music.17/draft"
  ["referrer"] => string(75) "[URL]https://www.welovetheeighties.com/forums/80s-rock-and-heavy-metal-music.17/[/URL]"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(14) {
    ["title"] => string(0) ""
    ["discussion_type"] => string(16) "snog_music_music"
    ["message_html"] => string(0) ""
    ["snog_music_type"] => string(8) "existing"
    ["snog_music_tadb_id"] => string(71) "[URL]https://www.theaudiodb.com/album/2128726-W.A.S.P.-The-Headless-Children[/URL]"
    ["watch_thread"] => string(0) ""
    ["watch_thread_email"] => string(0) ""
    ["_xfSet"] => array(1) {
      ["watch_thread"] => string(1) "1"
    }
    ["attachment_hash"] => string(32) "b4524ebdff413758886a64e377f24081"
    ["attachment_hash_combined"] => string(82) "{"type":"post","context":{"node_id":17},"hash":"b4524ebdff413758886a64e377f24081"}"
    ["_xfResponseType"] => string(4) "json"
    ["_xfWithData"] => string(1) "1"
    ["_xfRequestUri"] => string(42) "/forums/80s-rock-and-heavy-metal-music.17/"
    ["_xfToken"] => string(8) "********"
  }
}
 
Last edited by a moderator:
When adding an album manually, we are receiving this error when uploading an album cover "Provided file is not a valid image."

Edit: If I disable "Optimize images", the image uploads.
 
I'm currently using your Music add-on on my XenForo site. Up until recently, everything worked fine but now, when I try to paste in a link from TheAudioDB, it no longer auto-populates the album info or image. This feature used to work perfectly. I checked my browser console and noticed the following error on Music add-on pages:

Uncaught ReferenceError: jQuery is not defined

The strange thing is, my other add-ons like Movies, TV, and Video Games are still working normally they all load jQuery properly and pull data as expected. It seems like the Music add-on is no longer loading jQuery, or perhaps a script is firing before jQuery is available.Do you have an idea of what the problem might be? Thanks!
 
Back
Top