• REGISTRATION REQUIREMENTS:

    Your username here MUST MATCH your XenForo username (connected to your XF license).

    Once you have registered here, then you need to start a conversation at xenforo.com w/Bob and provide the following:
    1. Your XenForo License Validation Token
    2. The Domain Name associated with the License
    NOTE: Your account will be validated once ALL requirements are verified/met. Thank you for your patience.

Fixed LogicException: Macro public:xa_rms_widget_items_macros :: items_carousel_simple() error: Macro argument itemType is required and no value was provide

Alpha1

Active Member
AMS Premium
CAS Premium
EMS Early Adopter
IMS Premium
LD Premium
RMS Premium
SC Premium
UBS Premium
RMS Version
2.3.1
XenForo Version
2.3.5
PHP Version
8.1
Database & Version
10.3.39-MariaDB
Are there any errors being throw?
Yes
I create a widget to display RMS items in forum.
Widget definition: Review Management System: Latest items
Position: Thread view: Above messages
Display condition:
$xf.reply.containerKey == 'node-27'
Sort order: views
Item types: Item
max entries: 5
Display style: simple carousel. (I think it also happens with full carousel)
Category limit set

Only the title of the widget displays, but not the carousel.

I get this error:

LogicException: Macro public:xa_rms_widget_items_macros :: items_carousel_simple() error: Macro argument itemType is required and no value was provided src/XF/Template/Templater.php:1009

Generated by: Alfa Jan 29, 2025 at 6:59 PM

Stack trace
#0 src/XF/Template/MacroState.php(60): XF\Template\Templater->mergeMacroArguments(Array, Array, Array)
#1 src/XF/Template/Templater.php(894): XF\Template\MacroState->getAvailableVars(Object(NF\Tickets\XF\Template\Templater), Array, Array)
#2 internal_data/code_cache/templates/l1/s6/public/xa_rms_widget_latest_items.php(36): XF\Template\Templater->callMacro('xa_rms_widget_i...', 'items_carousel_...', Array, Array)
#3 src/XF/Template/Templater.php(1800): XF\Template\Templater->{closure}(Object(NF\Tickets\XF\Template\Templater), Array, NULL)
#4 src/addons/MaZ/AUN/XF/Template/Templater.php(39): XF\Template\Templater->renderTemplate('xa_rms_widget_l...', Array, true, NULL)
#5 src/addons/vw/vw/XF/Template/XF23.php(156): MaZ\AUN\XF\Template\Templater->renderTemplate('public:xa_rms_w...', Array, true, NULL)
#6 src/XF/Widget/WidgetRenderer.php(62): vw\vw\XF\Template\Templater->renderTemplate('public:xa_rms_w...', Array)
#7 src/addons/vw/vw/XF/Widget/WidgetRenderer.php(51): XF\Widget\WidgetRenderer->render()
#8 src/XF/Widget/WidgetRenderer.php(67): vw\vw\XF\Widget\WidgetRenderer->render()
#9 src/XF/Template/Templater.php(2145): XF\Widget\WidgetRenderer->__toString()
#10 src/addons/vw/vw/XF/Template/Templater.php(1130): XF\Template\Templater->widgetPosition('thread_view_abo...', Array)
#11 internal_data/code_cache/templates/l1/s6/public/thread_view.php(815): vw\vw\XF\Template\TemplaterBase->widgetPosition('thread_view_abo...', Array)
#12 src/XF/Template/Templater.php(1800): XF\Template\Templater->{closure}(Object(NF\Tickets\XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#13 src/addons/MaZ/AUN/XF/Template/Templater.php(39): XF\Template\Templater->renderTemplate('thread_view', Array, true, NULL)
#14 src/addons/vw/vw/XF/Template/XF23.php(156): MaZ\AUN\XF\Template\Templater->renderTemplate('public:thread_v...', Array, true, NULL)
#15 src/XF/Template/Template.php(24): vw\vw\XF\Template\Templater->renderTemplate('public:thread_v...', Array)
#16 src/XF/Mvc/Renderer/Html.php(50): XF\Template\Template->render()
#17 src/XF/Mvc/Dispatcher.php(471): XF\Mvc\Renderer\Html->renderView('XF:Thread\\View', 'public:thread_v...', Array)
#18 src/XF/Mvc/Dispatcher.php(453): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#19 src/XF/Mvc/Dispatcher.php(412): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#20 src/XF/Mvc/Dispatcher.php(66): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#21 src/XF/App.php(2826): XF\Mvc\Dispatcher->run()
#22 src/XF.php(806): XF\App->run()
#23 index.php(23): XF::runApp('XF\\Pub\\App')
#24 {main}

Request state
array(4) {
["url"] => string(61) "/threads/67136/"
["referrer"] => string(73) "/forums/27/"
["_GET"] => array(1) {
["/threads/67136/"] => string(0) ""
}
["_POST"] => array(0) {
}
}
 
Display style: simple carousel. (I think it also happens with full carousel)
Can you please test ALL display styles? No rush as it's a Sunday and I won't have time look into it until sometime this week.
 
Display styles:
Simple - works
Simple carousel - error
Full carousel - error
Full grid block - error
Full list view - works
Full Grid view - works
Full Tile view - works
Full Item view - works


I also tried Widget definition: Review Management System: Brands
Everything works without error.
Full grid view displays the bottom halve of a square brand logo.
 
I also tried Widget definition: Review Management System: Brands
Everything works without error.
Full grid view displays the bottom halve of a square brand logo.
Not sure I understand this statement... could you post a screen shot?
 
Display styles:
Simple - works
Simple carousel - error
Full carousel - error
Full grid block - error
Full list view - works
Full Grid view - works
Full Tile view - works
Full Item view - works
These 3 display styles in the Latest Items Widget Definition have been fixed in RMS 2.3.2 (should be out sometime this week).

Waiting on you to explain the issue with the Full Grid Block display on the Brands Widget Definition (and does this do the same on all Item Type Widget Definitions (Business, Hotel, Restaurant, Store and Venue) as well or is it isolated to Brand Widget Definitions (they share the same templates and macros, so it would be odd if not).
 
Not sure I understand this statement... could you post a screen shot?
Nevermind. The issue was not the software but the image file.

Thanks for the swift fix!
 
  • Cool
Reactions: Bob
Nevermind. The issue was not the software but the image file.

Thanks for the swift fix!
Ah, that explains why I couldn't reproduce it. I've been testing all of the Item Type specific Widget Definitions.

Keep in mind, there could be more growing pains (technical issues) due to the massive amount of changes with all of these new Item Types. If you run into anymore, let me know ASAP!
 
Back
Top