Fixed Can't delete thread

Code:
ErrorException: Template error: Template public:thread_delete is unknown src\XF\Template\Templater.php:611
Generated by: Fethi.dz Jan 19, 2019 at 2:43 PM


Stack trace
Code:
#0 [internal function]: XF\Template\Templater->handleTemplateError(512, 'Template public...', 'C:\\xampp\\htdocs...', 611, Array)
#1 src\XF\Template\Templater.php(611): trigger_error('Template public...', 512)
#2 src\XF\Template\Templater.php(562): XF\Template\Templater->getTemplateData('public', 'thread_delete')
#3 src\XF\Template\Templater.php(1293): XF\Template\Templater->getTemplateCode('public', 'thread_delete')
#4 src\XF\Template\Template.php(24): XF\Template\Templater->renderTemplate('thread_delete', Array)
#5 src\XF\Mvc\Renderer\Json.php(84): XF\Template\Template->render()
#6 src\XF\Mvc\Renderer\Json.php(68): XF\Mvc\Renderer\Json->renderHtmlFallback('XF:Thread\\Delet...', 'public:thread_d...', Array)
#7 src\XF\Mvc\Dispatcher.php(418): XF\Mvc\Renderer\Json->renderView('XF:Thread\\Delet...', 'public:thread_d...', Array)
#8 src\XF\Mvc\Dispatcher.php(400): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Json), Object(XF\Mvc\Reply\View))
#9 src\XF\Mvc\Dispatcher.php(360): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Json), Object(XF\Mvc\Reply\View))
#10 src\XF\Mvc\Dispatcher.php(53): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'json')
#11 src\XF\App.php(2177): XF\Mvc\Dispatcher->run()
#12 src\XF.php(392): XF\App->run()
#13 index.php(20): XF::runApp('XF\\Pub\\App')
#14 {main}
 
So basically the template thread_delete is missing.

Code:
<xf:title>{{ phrase('delete_thread') }}</xf:title>

<xf:breadcrumb source="$thread.getBreadcrumbs()" />

<xf:form action="{{ link('threads/delete', $thread) }}" class="block" ajax="true">
    <div class="block-container">
        <div class="block-body">
            <xf:macro template="helper_action" name="delete_type" arg-canHardDelete="{$thread.canDelete('hard')}" />

            <xf:if is="$thread.canSendModeratorActionAlert()">
                <xf:macro template="helper_action" name="thread_alert" />
            </xf:if>
        </div>
        <xf:submitrow icon="delete" />
    </div>
</xf:form>
 
For now, deleting the first post or using inline moderation should work.
accordingly, the developers decided to rewrite the Plugin Controller plugin and simply deleted the template before it was done. Since the developers was rewritten so it does not need a crutch with a template and warned that this is not a stable product and is not recommended for production.
 
Thank you for reporting this issue. It has now been resolved and we are aiming to include it in a future XF release (2.1.0 RC2).

Change log:
Restore thread_delete template which was deleted accidentally.
Any changes made as a result of this issue being resolved may not be rolled out here until later.
 
Back
Top Bottom