ReyDev Posted November 12, 2022 Posted November 12, 2022 I get this error, when I am adding a widget to the page on one of my clients's website. [[Template valastory/front/widgets/rowStory is throwing an error. This theme may be out of date. Run the support tool in the AdminCP to restore the default theme.]] here is the error log: Error: Named parameter $orientation overwrites previous argument in /var/www/html/...../system/Theme/SandboxedTemplate.php:61 Stack trace: #0 [internal function]: IPS\Theme\_SandboxedTemplate->__call('rowStory', Array, orientation: 'horizontal') #1 /var/www/html/..../init.php(927) : eval()'d code(12): call_user_func_array(Array, Array) #2 /var/www/...../applications/valastory/widgets/rowStory.php(292): IPS\hook137->output('[["valastory_t4...', 5, 'mtzsed3lc', 'null', 'horizontal', Array, '[]') #3 /var/www/html/..../system/Widget/Widget.php(833): IPS\valastory\widgets\_rowStory->render() #4 /var/www/html/..../system/Widget/Widget.php(926): IPS\_Widget->_render() #5 /var/www/html/..../system/Theme/Theme.php(885) : eval()'d code(18367): IPS\_Widget->__toString() #6 /var/www/html/..../system/Theme/SandboxedTemplate.php(61): IPS\Theme\class_core_front_global->widgetContainer('footer', 'horizontal') #7 /var/www/html/..../system/Theme/Theme.php(885) : eval()'d code(6810): IPS\Theme\_SandboxedTemplate->__call('widgetContainer', Array) .... Is the problem with my widget or should it be fixed by the IPS? admin sv 1
teraßyte Posted November 12, 2022 Posted November 12, 2022 The error seems to be coming from the rowStory template, which I assume is your widget's template. Can you post it here? admin sv 1
admin sv Posted December 21, 2022 Posted December 21, 2022 <style> {{if isset($wconfig['valastory_w_shadowonhover']) and $wconfig['valastory_w_shadowonhover']}} #story_{$widgetKey}.stories:not(.carousel.custom):not(.snapmessenger.carousel) .story { padding:10px; } #story_{$widgetKey}.stories .story { transition: box-shadow .40s; border-radius:4px; } #story_{$widgetKey}.stories .story:hover { box-shadow: rgba(var(--theme-text_color), 0.27) 0px 0px 0.25em, rgba(var(--theme-text_color), 0.05) 0px 0.25em 1em; } {{endif}} </style> <div class="ipsBox"> {{if !empty($wconfig['valastory_w_title']) || !empty($wconfig['valastory_w_addstorybtn'])}} <h2 class="ipsType_sectionTitle" style="display:flex;{{if empty($wconfig['valastory_w_title']) && !empty($wconfig['valastory_w_addstorybtn'])}}justify-content:end;{{else}}justify-content:space-between;{{endif}}align-items: center;{{if isset($wconfig['valastory_w_addstoryasbtn']) and $wconfig['valastory_w_addstoryasbtn']}}padding: var(--sp-2) var(--sp-5);{{endif}}"><span class="valastories-header-title">{$wconfig['valastory_w_title']}</span> {{if $wconfig['valastory_w_addstorybtn'] and \IPS\Member::loggedIn()->member_id}} {{if !\IPS\valastory\modules\front\story\story::getMemberBanStatus(\IPS\Member::loggedIn()->member_id)}} <span style="font-size:.8em;font-weight:normal"> <a style="top:0" href='{url="app=valastory&module=story&controller=submit"}' class="{{if isset($wconfig['valastory_w_addstoryasbtn']) and $wconfig['valastory_w_addstoryasbtn']}}ipsButton ipsButton_small ipsButton_important{{endif}}" data-ipsDialog data-ipsDialog-title='{lang="valastory_createstory_title"}'> <i class="fa fa-plus-circle"></i> <span class="valastories-add-story-btn">{lang="valastory_w_addstorytitle"}<span></span></a></span> {{endif}} {{endif}} </h2> {{endif}} <div class="ipsPad" style="width:inherit!important;padding:0"> {{if $counter > 0}} <div class="story-data-object" data-story="stories_{$widgetKey}" data-setting="{$storySetting}" data-carouselsetting="{$carousel}" style="{{if isset($wconfig['valastory_w_boxheight']) and $wconfig['valastory_w_boxheight'] > 0}}max-height: {$wconfig['valastory_w_boxheight']}px;overflow-y: auto;{{endif}}"> <div id="objects" class="storyobjects"> <div data-object="{$stories}" data-ttu='{lang="valastory_front_touchtounmute"}'></div> </div> <div class="valastories {{if isset($wconfig['valastory_w_direction']) and $wconfig['valastory_w_direction']=='r'}}valastories-carousel owl-carousel owl-theme {{endif}}" id="story_{$widgetKey}" style="padding:20px;width:100%;height:auto!important;{{if isset($wconfig['valastory_w_direction']) and $wconfig['valastory_w_direction']=='c'}}display:flex;flex-wrap:wrap;justify-content: {{if !empty($wconfig['valastory_w_alignment']) and $wconfig['valastory_w_alignment']=="s"}}flex-start;{{else}}center{{endif}}{{else}}display:grid{{endif}};"> </div> {{else}} <p style="padding:15px;">{lang='valastory_nodata_to_show'}</p> {{endif}} </div> </div>
teraßyte Posted December 28, 2022 Posted December 28, 2022 There doesn't seem to be anything wrong in the template itself at a first look. Maybe it's the template variables. Click on the Variables... button and post here the textarea content.
ReyDev Posted January 5, 2023 Author Posted January 5, 2023 @admin sv This problem is happening only to you for some reason that needs to be investigated I sent a PM, please check
Recommended Posts