[Liam W.] Post Macros

[Liam W.] Post Macros 5.3.0 Fix 3

No permission to download
You need to post the actual stack trace (as in the text), not an image of it.
Sure thing :)

Code:
ErrorException: Template error: Illegal string offset 'children' internal_data/code_cache/templates/l1/s18/public/post_macros.php:298
Generated by: Keke Apr 20, 2020 at 11:53 AM
Stack trace
#0 internal_data/code_cache/templates/l1/s18/public/post_macros.php(298): XF\Template\Templater->handleTemplateError(2, 'Illegal string ...', 'i...', 298, Array)
#1 src/XF/Template/Templater.php(701): XF\Template\Templater->{closure}(Object(SV\BookmarkEssentials\XF\Template\Templater), Array, Array)
#2 internal_data/code_cache/templates/l1/s18/public/sv_livecontent_post.php(9): XF\Template\Templater->callMacro('post_macros', 'post', Array, Array)
#3 src/XF/Template/Templater.php(1315): XF\Template\Templater->{closure}(Object(SV\BookmarkEssentials\XF\Template\Templater), Array)
#4 src/XF/Mvc/View.php(59): XF\Template\Templater->renderTemplate('sv_livecontent_...', Array)
#5 src/addons/SV/LiveContent/XF/Entity/Post.php(74): XF\Mvc\View->renderTemplate('public:sv_livec...', Array)
#6 src/addons/SV/LiveContent/Pub/View/Live.php(71): SV\LiveContent\XF\Entity\Post->renderContent(Object(SV\LiveContent\Pub\View\Live))
#7 src/XF/Mvc/Renderer/AbstractRenderer.php(91): SV\LiveContent\Pub\View\Live->renderRaw()
#8 src/XF/Mvc/Renderer/Raw.php(41): XF\Mvc\Renderer\AbstractRenderer->renderViewObject('SV\\LiveContent:...', '', Array)
#9 src/XF/Mvc/Dispatcher.php(458): XF\Mvc\Renderer\Raw->renderView('SV\\LiveContent:...', '', Array)
#10 src/XF/Mvc/Dispatcher.php(440): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Raw), Object(XF\Mvc\Reply\View))
#11 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Raw), Object(XF\Mvc\Reply\View))
#12 src/XF/Mvc/Dispatcher.php(58): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'raw')
#13 src/XF/App.php(2184): XF\Mvc\Dispatcher->run()
#14 src/XF.php(391): XF\App->run()
#15 index.php(20): XF::runApp('XF\\Pub\\App')
#16 {main}
 
The sv_livecontent_post template is very simple;
XML:
<xf:macro template="post_macros" name="post" arg-post="{$post}" arg-thread="{$thread}" />

This add-on likely is extending post_macros macro, and not expecting it to be called with stock arguments, and needs some not empty checks
 
The sv_livecontent_post template is very simple;
XML:
<xf:macro template="post_macros" name="post" arg-post="{$post}" arg-thread="{$thread}" />

This add-on likely is extending post_macros macro, and not expecting it to be called with stock arguments, and needs some not empty checks
So the problem is from us ? :unsure:
 
Supposedly a bug. User without any permissions for this add-on has an option in his preference settings.


1588142502439.webp
 
Hello,

The mistake shows up when you do what exactly?

Regards, CRUEL-MODZ
I have no idea honestly, I hthink the error just occurs if someone uses a Macro? Not sure.

Here's the request.

Code:
Request state
array(4) {
["url"] => string(84) "/threads/41138/live"
["referrer"] => string(110) "https://.com/threads/41138/"
["_GET"] => array(1) {
["/threads/41138/live"] => string(0) ""
}
["_POST"] => array(0) {
}
}

It's interesting because it still works. But it's clogging up my error logs which drives me kinda crazy.
 
I have no idea honestly, I hthink the error just occurs if someone uses a Macro? Not sure.

Here's the request.

Code:
Request state
array(4) {
["url"] => string(84) "/threads/41138/live"
["referrer"] => string(110) "https://.com/threads/41138/"
["_GET"] => array(1) {
["/threads/41138/live"] => string(0) ""
}
["_POST"] => array(0) {
}
}

It's interesting because it still works. But it's clogging up my error logs which drives me kinda crazy.
Was this not fixed?
 
The bug I reported was never fixed so I uninstalled the addon.

However, I am still getting that error (which is very irritating lmao), but worse is that I have more issues now.

This appears in my ACP:

1592270825766.webp

When I try to finish running them, I get this error:

1592270845543.webp

It won't go away...

I'd just like to wash my hands of this addon... please help me...
 
The bug I reported was never fixed so I uninstalled the addon.

However, I am still getting that error (which is very irritating lmao), but worse is that I have more issues now.

This appears in my ACP:

View attachment 227981

When I try to finish running them, I get this error:

View attachment 227982

It won't go away...

I'd just like to wash my hands of this addon... please help me...
Hello, sorry to hear that. Tagging @CRUEL-MODZ
 
I am struggling to add the thread author placeholder to a post.

Can someone show me how to set up a macro that says:

Welcome to the forum {thread}.{author} ?
 
Back
Top Bottom