Nirjonadda
Well-known member
By user you mean the visitor or the post owner?
For both.
By user you mean the visitor or the post owner?
Nope.
It's working as intended.
Once you disable the option added by this add-on in ACP, it acts like "Signature Once Per Page".
[LIST]
[*]ErrorException: Template error: key() expects parameter 1 to be array, null given
[*]src/addons/TickTackk/SignatureOnce/XF/Entity/Post.php:45
[/LIST]
Stack trace
#0 [internal function]: XF\Template\Templater->handleTemplateError(2, 'key() expects p...', '/-----/-----...', 45, Array)
#1 src/addons/TickTackk/SignatureOnce/XF/Entity/Post.php(45): key(NULL)
#2 [internal function]: TickTackk\SignatureOnce\XF\Entity\Post->canShowSignature()
#3 src/XF/Template/Templater.php(939): call_user_func_array(Array, Array)
#4 internal_data/code_cache/templates/l1/s58/public/message_macros.php(335): XF\Template\Templater->method(Object(SV\UserEssentials\XF\Entity\Post), 'canShowSignatur...', Array)
#5 src/XF/Template/Templater.php(662): XF\Template\Templater->{closure}(Object(XF\Template\Templater), Array, Array)
#6 internal_data/code_cache/templates/l1/s58/public/post_macros.php(200): XF\Template\Templater->callMacro('message_macros', 'signature', Array, Array)
#7 src/XF/Template/Templater.php(662): XF\Template\Templater->{closure}(Object(XF\Template\Templater), Array, Array)
#8 internal_data/code_cache/templates/l1/s58/public/thread_new_posts.php(44): XF\Template\Templater->callMacro('post_macros', 'post', Array, Array)
#9 src/XF/Template/Templater.php(1249): XF\Template\Templater->{closure}(Object(XF\Template\Templater), Array)
#10 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('public:thread_n...', Array)
#11 src/XF/Mvc/Renderer/Json.php(81): XF\Template\Template->render()
#12 src/XF/Mvc/Renderer/Json.php(65): XF\Mvc\Renderer\Json->renderHtmlFallback('XF:Thread\\NewPo...', 'public:thread_n...', Array)
#13 src/XF/Mvc/Dispatcher.php(332): XF\Mvc\Renderer\Json->renderView('XF:Thread\\NewPo...', 'public:thread_n...', Array)
#14 src/XF/Mvc/Dispatcher.php(303): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Json), Object(XF\Mvc\Reply\View))
#15 src/XF/Mvc/Dispatcher.php(44): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'json')
#16 src/XF/App.php(1931): XF\Mvc\Dispatcher->run()
#17 src/XF.php(328): XF\App->run()
#18 index.php(13): XF::runApp('XF\\Pub\\App')
#19 {main}
array(4) {
["url"] => string(97) "/threads/--------------------------.434391/add-reply"
["referrer"] => string(120) "https://-----.com/threads//--------------------------.434391/page-1325"
["_GET"] => array(1) {
["/threads//--------------------------./add-reply"] => string(0) ""
}
["_POST"] => array(9) {
["message_html"] => string(1364) "<p>snip</p>"
["attachment_hash"] => string(32) "235f070ef4bcdba7bf8df6e99ed0df67"
["attachment_hash_combined"] => string(88) "{"type":"post","context":{"thread_id":434391},"hash":"235f070ef4bcdba7bf8df6e99ed0df67"}"
["last_date"] => string(10) "1528065823"
["last_known_date"] => string(10) "1528067672"
["_xfToken"] => string(8) "********"
["_xfRequestUri"] => string(97) "/threads//--------------------------.434391/page-1325"
["_xfWithData"] => string(1) "1"
["_xfResponseType"] => string(4) "json"
}
}
@Warchamp7 Seems like there is incompatibility with @Xon's User Essentials add-on. Hoping he could grant me access so I can add compatibility for the add-on.
@Warchamp7 Any steps to reproduce this? Do you get the same error when using default style?
Yes and here is how you should be able to replicateDoes the stack trace have anything specific I should try to do for reproducing it?
Yes and here is how you should be able to replicate
- User X opens thread Y
- User Z adds like 4-5 posts to thread Y
- User X adds a reply which should trigger the "There are more posts to display." message to show
Yes and here is how you should be able to replicate
- User X opens thread Y
- User Z adds like 4-5 posts to thread Y
- User X adds a reply which should trigger the "There are more posts to display." message to show
v1.0.0@Warchamp7 Which version of add-on are you using?
I don't have license for that add-on so I cannot a bug-fix for it.
I'mt getting a similar problem.Maybe @ThemeHouse can help?![]()
ErrorException: Template error: key() expects parameter 1 to be array, null given src/addons/TickTackk/SignatureOnce/XF/Entity/Post.php:45
Generated by: xxxx2 Jun 7, 2018 at 11:45 PM
Stack trace
#0 [internal function]: XF\Template\Templater->handleTemplateError(2, 'key() expects p...', '/home/nginx/dom...', 45, Array)
#1 src/addons/TickTackk/SignatureOnce/XF/Entity/Post.php(45): key(NULL)
#2 [internal function]: TickTackk\SignatureOnce\XF\Entity\Post->canShowSignature()
#3 src/XF/Template/Templater.php(939): call_user_func_array(Array, Array)
#4 internal_data/code_cache/templates/l3/s28/public/message_macros.php(437): XF\Template\Templater->method(Object(ThemeHouse\Reactions\XF\Entity\Post), 'canShowSignatur...', Array)
#5 src/XF/Template/Templater.php(662): XF\Template\Templater->{closure}(Object(ThemeHouse\UIX\XF\Template\Templater), Array, Array)
#6 internal_data/code_cache/templates/l3/s28/public/post_macros.php(195): XF\Template\Templater->callMacro('message_macros', 'signature', Array, Array)
#7 src/XF/Template/Templater.php(662): XF\Template\Templater->{closure}(Object(ThemeHouse\UIX\XF\Template\Templater), Array, Array)
#8 internal_data/code_cache/templates/l3/s28/public/thread_new_posts.php(26): XF\Template\Templater->callMacro('post_macros', 'post', Array, Array)
#9 src/XF/Template/Templater.php(1249): XF\Template\Templater->{closure}(Object(ThemeHouse\UIX\XF\Template\Templater), Array)
#10 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('thread_new_post...', Array)
#11 src/XF/Mvc/Renderer/Json.php(81): XF\Template\Template->render()
#12 src/XF/Mvc/Renderer/Json.php(65): XF\Mvc\Renderer\Json->renderHtmlFallback('XF:Thread\\NewPo...', 'public:thread_n...', Array)
#13 src/XF/Mvc/Dispatcher.php(332): XF\Mvc\Renderer\Json->renderView('XF:Thread\\NewPo...', 'public:thread_n...', Array)
#14 src/XF/Mvc/Dispatcher.php(303): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Json), Object(XF\Mvc\Reply\View))
#15 src/XF/Mvc/Dispatcher.php(44): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'json')
#16 src/XF/App.php(1931): XF\Mvc\Dispatcher->run()
#17 src/XF.php(328): XF\App->run()
#18 index.php(13): XF::runApp('XF\\Pub\\App')
#19 {main}
We use essential cookies to make this site work, and optional cookies to enhance your experience.