[AP] Style Suite

[AP] Style Suite [Paid] 2.13.7

No permission to buy (€15.00)
apathy updated [AP] Style Suite with a new update entry:

2.10.0 Beta 2

  • Fix gradient appearing in Postbit preview when no background is set
  • Fix strpos(): Empty needle when saving an empty Postbit Image URL
  • Verify that Inner-Text Animation input is a URL
  • Add section contexts to admin navigation
  • Hide style tabs when creating a new user
  • Fix various Attempt to read property on null errors

Read the rest of this update entry...
 
Would love to purchase an extension for upgrades. Can't seem to find a way tho on your site. Help please!
 
Would love to purchase an extension for upgrades. Can't seem to find a way tho on your site. Help please!
Dunno what's going on here but indeed I've had people say the same as yourself, but then other people can renew just fine :S

I'll try take a look at permissions etc when I'm home, if the button simply isnt appearing you can manually send me $5 on paypal and I'll be able to extend your license myself
 
I don't have a Paypal account, so I have to wait until it is fixed, then I can try using guest check out...
 
Seeing these guys for frames...

  • ErrorException: Template error: [E_USER_WARNING] Macro public:ap_ss_style_settings_macros:frame is unknown
  • src/XF/Template/Templater.php:658
  • Generated by: LE BARON
  • Mar 5, 2023 at 9:32 AM

Stack trace​

#0 [internal function]: XF\Template\Templater->handleTemplateError(512, '[E_USER_WARNING...', '/home/nginx/dom...', 658)
#1 src/XF/Template/Templater.php(658): trigger_error('Macro public:ap...', 512)
#2 src/XF/Template/Templater.php(771): XF\Template\Templater->getTemplateMacro('public', 'ap_ss_style_set...', 'frame')
#3 src/addons/MaZ/AMP/XF/Template/Templater.php(139): XF\Template\Templater->callMacro('ap_ss_style_set...', 'frame', Array, Array, NULL)
#4 internal_data/code_cache/templates/l1/s7/public/ap_ss_frame_style_settings.php(19): MaZ\AMP\XF\Template\Templater->callMacro('ap_ss_style_set...', 'frame', Array, Array)
#5 src/XF/Template/Templater.php(1652): XF\Template\Templater->{closure}(Object(MaZ\AMP\XF\Template\XF22\Templater), Array, NULL)
#6 src/addons/MaZ/AMP/XF/Template/XF22/Templater.php(52): XF\Template\Templater->renderTemplate('ap_ss_frame_sty...', Array, true, NULL)
#7 src/XF/Template/Templater.php(1681): MaZ\AMP\XF\Template\XF22\Templater->renderTemplate('public:ap_ss_fr...', Array)
#8 internal_data/code_cache/templates/l1/s7/public/ap_ss_style_settings_wrapper.php(81): XF\Template\Templater->includeTemplate('public:ap_ss_fr...', Array)
#9 src/XF/Template/Templater.php(1652): XF\Template\Templater->{closure}(Object(MaZ\AMP\XF\Template\XF22\Templater), Array, NULL)
#10 src/addons/MaZ/AMP/XF/Template/XF22/Templater.php(52): XF\Template\Templater->renderTemplate('ap_ss_style_set...', Array, true, NULL)
#11 src/XF/Template/Template.php(24): MaZ\AMP\XF\Template\XF22\Templater->renderTemplate('public:ap_ss_st...', Array)
#12 src/XF/Mvc/Renderer/Html.php(50): XF\Template\Template->render()
#13 src/XF/Mvc/Dispatcher.php(460): XF\Mvc\Renderer\Html->renderView('apathy\\StyleSui...', 'public:ap_ss_st...', Array)
#14 src/XF/Mvc/Dispatcher.php(442): XF\Mvc\Dispatcher->renderView(Object(ThemeHouse\StyleSwitch\XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#15 src/XF/Mvc/Dispatcher.php(402): XF\Mvc\Dispatcher->renderReply(Object(ThemeHouse\StyleSwitch\XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#16 src/XF/Mvc/Dispatcher.php(60): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#17 src/XF/App.php(2483): XF\Mvc\Dispatcher->run()
#18 src/XF.php(524): XF\App->run()
#19 index.php(20): XF::runApp('XF\\Pub\\App')
#20 {main}


Request state​

array(4) {
["url"] => string(23) "/account/style-settings"
["referrer"] => string(58) "https://myforum.com/account/style-settings/"
["_GET"] => array(1) {
["/account/style-settings"] => string(0) ""
}
["_POST"] => array(0) {
}
}
 
More errors, no outdated template this time...
  • ErrorException: Template error: [E_USER_WARNING] Macro public:ap_ss_style_settings_macros:frame is unknown
  • src/XF/Template/Templater.php:658
  • Generated by: Cariboocreek
  • Mar 5, 2023 at 2:47 PM

Stack trace​

#0 [internal function]: XF\Template\Templater->handleTemplateError(512, '[E_USER_WARNING...', '/home/nginx/dom...', 658)
#1 src/XF/Template/Templater.php(658): trigger_error('Macro public:ap...', 512)
#2 src/XF/Template/Templater.php(771): XF\Template\Templater->getTemplateMacro('public', 'ap_ss_style_set...', 'frame')
#3 src/addons/MaZ/AMP/XF/Template/Templater.php(139): XF\Template\Templater->callMacro('ap_ss_style_set...', 'frame', Array, Array, NULL)
#4 internal_data/code_cache/templates/l1/s7/public/ap_ss_frame_style_settings.php(19): MaZ\AMP\XF\Template\Templater->callMacro('ap_ss_style_set...', 'frame', Array, Array)
#5 src/XF/Template/Templater.php(1652): XF\Template\Templater->{closure}(Object(MaZ\AMP\XF\Template\XF22\Templater), Array, NULL)
#6 src/addons/MaZ/AMP/XF/Template/XF22/Templater.php(52): XF\Template\Templater->renderTemplate('ap_ss_frame_sty...', Array, true, NULL)
#7 src/XF/Template/Templater.php(1681): MaZ\AMP\XF\Template\XF22\Templater->renderTemplate('public:ap_ss_fr...', Array)
#8 internal_data/code_cache/templates/l1/s7/public/ap_ss_style_settings_wrapper.php(81): XF\Template\Templater->includeTemplate('public:ap_ss_fr...', Array)
#9 src/XF/Template/Templater.php(1652): XF\Template\Templater->{closure}(Object(MaZ\AMP\XF\Template\XF22\Templater), Array, NULL)
#10 src/addons/MaZ/AMP/XF/Template/XF22/Templater.php(52): XF\Template\Templater->renderTemplate('ap_ss_style_set...', Array, true, NULL)
#11 src/XF/Template/Template.php(24): MaZ\AMP\XF\Template\XF22\Templater->renderTemplate('public:ap_ss_st...', Array)
#12 src/XF/Mvc/Renderer/Html.php(50): XF\Template\Template->render()
#13 src/XF/Mvc/Dispatcher.php(460): XF\Mvc\Renderer\Html->renderView('apathy\\StyleSui...', 'public:ap_ss_st...', Array)
#14 src/XF/Mvc/Dispatcher.php(442): XF\Mvc\Dispatcher->renderView(Object(ThemeHouse\StyleSwitch\XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#15 src/XF/Mvc/Dispatcher.php(402): XF\Mvc\Dispatcher->renderReply(Object(ThemeHouse\StyleSwitch\XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#16 src/XF/Mvc/Dispatcher.php(60): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#17 src/XF/App.php(2483): XF\Mvc\Dispatcher->run()
#18 src/XF.php(524): XF\App->run()
#19 index.php(20): XF::runApp('XF\\Pub\\App')
#20 {main}

array(4) {
["url"] => string(23) "/account/style-settings"
["referrer"] => string(58) "https://myforum.com/account/style-settings/"
["_GET"] => array(1) {
["/account/style-settings"] => string(0) ""
}
["_POST"] => array(0) {
}
}
 
@ichpen thats the same error - perhaps you've customized templates?
Appearance -> search templates -> template="ap_ss_style_settings_macros" name="frame", it should tell you that NO results are found, as the "frame" macro was replaced with an "asset" one in 2.10.0 (same goes for fonts, sparkles, & postbit presets). If a template is found in the result, then its likely modified or somehow outdated.
 
@ichpen thats the same error - perhaps you've customized templates?
Appearance -> search templates -> template="ap_ss_style_settings_macros" name="frame", it should tell you that NO results are found, as the "frame" macro was replaced with an "asset" one in 2.10.0 (same goes for fonts, sparkles, & postbit presets). If a template is found in the result, then its likely modified or somehow outdated.

0 results, no outdated templates.... I've not modified these at all. Should I revert this one? Looks legit to me.
<!--[[Profile block]]//-->
<xf:macro name="block" arg-block="!">
<div class="block ap-ss-profileBlock {{ $block.getParams().css_class_name }}">
<div class="block-container">
<div class="block-minorHeader">
<xf:fa icon="{$block.fa_icon}" />
{$block.title}
</div>
<div class="block-body">
<xf:include template="{{ $block.getParams().view_template }}" />
</div>
</div>
</div>
</xf:macro>

<!--[[

selector]]//-->
<xf:macro name="asset_selector" arg-itemCache="!" arg-controlName="" arg-controlId="" arg-value="">
<xf:select name="{$controlName}" id="{$controlId}" value="{{ $value ?: '' }}">
<xf:option value="">{{ phrase('none') }}</xf:option>

<xf:foreach loop="$itemCache" value="$item" if="$item.canView()">
<xf:option value="{$item.asset_id}">{$item.title}</xf:option>
</xf:foreach>

</xf:select>
</xf:macro>

.......
 
@ichpen that template looks about right to me. This error is surely triggering on the Avatar Frame selector in the Public settings, correct?

Please ensure that ap_ss_frame_style_settings looks exactly like this:
Code:
<li class="is-active" role="tabpanel" aria-labelledby="avatar-frame-style-settings">
    <xf:js src="apathy/StyleSuite/core/Frame.js" />
    
    <xf:include template="ap_ss_frame_style_preview" />
        
    <hr class="formRowSep" />

    <xf:form action="{{ link('account/style-settings') }}" ajax="true" 
             data-force-flash-message="true" data-ajax-redirect="false" 
             data-xf-init="frame-preview">
        <xf:formrow label="{{ phrase('ap_ss_avatar_frame') }}">
            <xf:macro template="ap_ss_style_settings_macros" 
                      name="asset_selector" 
                      arg-itemCache="{$frameCache}"
                      arg-controlName="frame"
                      arg-controlId="ap-ss-frame--selector"
                      arg-value="{$xf.visitor.ap_frame}" />
        </xf:formrow>
        <xf:hiddenval name="frameStyle" value="1" />
        <xf:submitrow icon="save" sticky="true" />
    </xf:form>
</li>

Failing that, try a rebuild (not reinstall) of the addon, and making sure to check the "Overwrite files" checkbox when prompted.

There's no line in the whole addon that calls a "frame" macro anymore, but there was in 2.9.6, so something somewhere didn't get upgraded when it was meant to.
 
@ichpen that template looks about right to me. This error is surely triggering on the Avatar Frame selector in the Public settings, correct?

Please ensure that ap_ss_frame_style_settings looks exactly like this:
Code:
<li class="is-active" role="tabpanel" aria-labelledby="avatar-frame-style-settings">
    <xf:js src="apathy/StyleSuite/core/Frame.js" />
   
    <xf:include template="ap_ss_frame_style_preview" />
       
    <hr class="formRowSep" />

    <xf:form action="{{ link('account/style-settings') }}" ajax="true"
             data-force-flash-message="true" data-ajax-redirect="false"
             data-xf-init="frame-preview">
        <xf:formrow label="{{ phrase('ap_ss_avatar_frame') }}">
            <xf:macro template="ap_ss_style_settings_macros"
                      name="asset_selector"
                      arg-itemCache="{$frameCache}"
                      arg-controlName="frame"
                      arg-controlId="ap-ss-frame--selector"
                      arg-value="{$xf.visitor.ap_frame}" />
        </xf:formrow>
        <xf:hiddenval name="frameStyle" value="1" />
        <xf:submitrow icon="save" sticky="true" />
    </xf:form>
</li>

Failing that, try a rebuild (not reinstall) of the addon, and making sure to check the "Overwrite files" checkbox when prompted.

There's no line in the whole addon that calls a "frame" macro anymore, but there was in 2.9.6, so something somewhere didn't get upgraded when it was meant to.

Well it's not exactly the same template.... Here's mine:
Code:
<li class="is-active" role="tabpanel" aria-labelledby="avatar-frame-style-settings">
    <xf:js src="apathy/StyleSuite/core/Frame.js" />
    
    <xf:include template="ap_ss_frame_style_preview" />
        
    <hr class="formRowSep ap-ss-hr" />

    <xf:form action="{{ link('account/style-settings') }}" ajax="true"
             data-force-flash-message="true" data-ajax-redirect="false"
             data-xf-init="frame-preview">
        <xf:macro template="ap_ss_style_settings_macros"
                  name="frame"
                  arg-frameCache="{$frameCache.normal}"
                  arg-hidden="{$frameCache.hidden}"
                  arg-special="{$frameCache.special}"
                  arg-user="{$xf.visitor}"
                  arg-visitor="{$xf.visitor}" />
        <xf:hiddenval name="frameStyle" value="1" />
        <xf:submitrow icon="save" sticky="true" />
    </xf:form>
</li>
 
@ichpen indeed as I thought, that the 2.9.6 version of the template! Not sure what caused it to be ignored during the upgrade, but if you rebuild the addon or overwrite that templates contents with what I posted, the error should go away.
 
@ichpen indeed as I thought, that the 2.9.6 version of the template! Not sure what caused it to be ignored during the upgrade, but if you rebuild the addon or overwrite that templates contents with what I posted, the error should go away.

Actually that was after the rebuild. I've replaced it manually with yours now. Will see. Thanks
 
Back
Top Bottom