Writerguysd Posted April 6, 2022 Share Posted April 6, 2022 (edited) After yesterday's update to the software, we are now seeing this error message: [[Template core/global/editor/attachedAudio is throwing an error. This theme may be out of date. Run the support tool in the AdminCP to restore the default theme.]] I've runned the support tool with no errors showing. I've changed the theme to the default theme. Nothing is changing. The theme is now the default, but all uploaded items show the error above. The files are either documents or audio files. Edited April 6, 2022 by Writerguysd Link to comment Share on other sites More sharing options...
Jim M Posted April 6, 2022 Share Posted April 6, 2022 Please be advised I have moved this to a ticket. You will receive further correspondence via email. Thanks. Writerguysd 1 Link to comment Share on other sites More sharing options...
User_64065 Posted April 7, 2022 Share Posted April 7, 2022 (edited) I'm getting the same error following the update to 4.6.12. It affects audio attachments (and possibly some other file types) If it helps, the error shows up in the system log as follows: Quote ArgumentCountError: Too few arguments to function IPS\Theme\class_core_global_editor::attachedAudio(), 4 passed in /home/j01magn/public_html/musesongwriters.com/forums/system/Theme/SandboxedTemplate.php on line 61 and exactly 5 expected in /home/j01magn/public_html/musesongwriters.com/forums/system/Theme/Theme.php(880) : eval()'d code:5 Stack trace: #0 /home/j01magn/public_html/musesongwriters.com/forums/system/Theme/SandboxedTemplate.php(61): IPS\Theme\class_core_global_editor->attachedAudio('monthly_2022_04...', '//www.musesongw...', 'audio/mpeg', 3878) #1 /home/j01magn/public_html/musesongwriters.com/forums/system/Helpers/Form/Editor.php(438): IPS\Theme\_SandboxedTemplate->__call('attachedAudio', Array) #2 /home/j01magn/public_html/musesongwriters.com/forums/system/Helpers/Form/FormAbstract.php(167): IPS\Helpers\Form\_Editor->getValue() #3 /home/j01magn/public_html/musesongwriters.com/forums/system/Helpers/Form/Editor.php(542): IPS\Helpers\Form\_FormAbstract->setValue(true, false) #4 /home/j01magn/public_html/musesongwriters.com/forums/system/Helpers/Form/FormAbstract.php(147): IPS\Helpers\Form\_Editor->setValue(true) #5 /home/j01magn/public_html/musesongwriters.com/forums/system/Helpers/Form/Editor.php(203): IPS\Helpers\Form\_FormAbstract->__construct('comment_value', '<p>\n\t\xC2\xA0\n</p>\n\n<...', true, Array, NULL, NULL, NULL, NULL) #6 /home/j01magn/public_html/musesongwriters.com/forums/system/Content/Controller.php(2469): IPS\Helpers\Form\_Editor->__construct('comment_value', '<p>\n\t\xC2\xA0\n</p>\n\n<...', true, Array) #7 /home/j01magn/public_html/musesongwriters.com/forums/system/Content/Controller.php(2207): IPS\Content\_Controller->_edit('IPS\\core\\Messen...', Object(IPS\core\Messenger\Message), Object(IPS\core\Messenger\Conversation)) #8 /home/j01magn/public_html/musesongwriters.com/forums/system/Dispatcher/Controller.php(90): IPS\Content\_Controller->__call('_edit', Array) #9 /home/j01magn/public_html/musesongwriters.com/forums/system/Content/Controller.php(50): IPS\Dispatcher\_Controller->execute() #10 /home/j01magn/public_html/musesongwriters.com/forums/applications/core/modules/front/messaging/messenger.php(71): IPS\Content\_Controller->execute() #11 /home/j01magn/public_html/musesongwriters.com/forums/system/Dispatcher/Dispatcher.php(153): IPS\core\modules\front\messaging\_messenger->execute() #12 /home/j01magn/public_html/musesongwriters.com/forums/index.php(13): IPS\_Dispatcher->run() #13 {main} Edited April 7, 2022 by User_64065 Writerguysd 1 Link to comment Share on other sites More sharing options...
Marc Posted April 7, 2022 Share Posted April 7, 2022 Thank you for bringing this issue to our attention! I can confirm this should be further reviewed and I have logged an internal bug report for our development team to investigate and address as necessary, in a future maintenance release. Writerguysd and User_64065 2 Link to comment Share on other sites More sharing options...
sound Posted April 8, 2022 Share Posted April 8, 2022 any word on when/if a patch will be released ? thanks Link to comment Share on other sites More sharing options...
sound Posted April 8, 2022 Share Posted April 8, 2022 22 minutes ago, sound said: any word on when/if a patch will be released ? thanks anyone in urgent need a 'temp rough fix' may be to remove $title from the template variables " $realUrl, $linkUrl, $title, $mimeType, $id" in the attachedAudio template Link to comment Share on other sites More sharing options...
Marc Posted April 8, 2022 Share Posted April 8, 2022 This would be in our next release, which tends to be monthly Link to comment Share on other sites More sharing options...
Solution Marc Posted April 8, 2022 Solution Share Posted April 8, 2022 There has now been a patch released for this. If you take a look within your admin CP, and go to support in the top right, you will see an optional patch available. SeNioR- 1 Link to comment Share on other sites More sharing options...
Recommended Posts