XF 2.2 ErrorException: Template error: [E_USER_WARNING] Template admin:node_permission_list is unknown src/XF/Template/Templater.php:693

javilonas

Active member
Hi,

I am experiencing an error in XenForo 2.2.15 Patch 1 when trying to access node permissions. The full error is as follows:

Code:
#0 [internal function]: XF\Template\Templater->handleTemplateError(512, '[E_USER_WARNING...', '/home/*******/...', 693)
#1 src/XF/Template/Templater.php(693): trigger_error('Template admin:...', 512)
#2 src/XF/Template/Templater.php(1622): XF\Template\Templater->getTemplateData('admin', 'node_permission...')
#3 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('node_permission...', Array)
#4 src/XF/Mvc/Renderer/Html.php(50): XF\Template\Template->render()
#5 src/XF/Mvc/Dispatcher.php(460): XF\Mvc\Renderer\Html->renderView('XF:Node\\Permiss...', 'admin:node_perm...', Array)
#6 src/XF/Mvc/Dispatcher.php(442): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#7 src/XF/Mvc/Dispatcher.php(402): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#8 src/XF/Mvc/Dispatcher.php(60): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#9 src/XF/App.php(2487): XF\Mvc\Dispatcher->run()
#10 src/XF.php(524): XF\App->run()
#11 admin.php(13): XF::runApp('XF\\Admin\\App')
#12 {main}

Code:
array(4) {
  ["url"] => string(40) "/admin.php?nodes/general.501/permissions"
  ["referrer"] => string(45) "/admin.php?nodes/"
  ["_GET"] => array(1) {
    ["nodes/general_501/permissions"] => string(0) ""
  }
  ["_POST"] => array(0) {
  }
}

This happens with any node where I want to edit the permissions. The page does not load completely; half of it remains empty, and then this error appears in the log. I have searched for the template everywhere, and it does not exist. I have disabled all add-ons, and I have even added logs in the templater to try to find where it comes from or if it has something to do with the PHP version I am using (8.2.21). Do you have any ideas about this? I am completely lost here. Thanks in advance.
 
I have been searching everywhere for the node_permission_list template, but it does not exist or appear in any addons. I am not sure if it is missing or if it's an issue with XenForo. The link causing the error is located in the templates.xml:
<template type="admin" title="node_list"
specifically at:

XML:
<xf:action
    class="{{ {$customPermissions.{$node.node_id}} ? 'dataList-cell--highlighted' : '' }}"
    href="{{ link('nodes/permissions', $node) }}">
    {{ phrase('permissions') }}
</xf:action>

From this link, it is impossible to modify the node permissions, which does not happen when using the admin.php?permissions/nodes/ option by clicking the edit button.

This is not a PHP error, as neither enabling errors nor checking the log shows anything. For some unknown reason, either this template has disappeared or it existed at some point and is now missing. This issue started occurring after I applied Security Patch 1 for version 2.2.15. I have tried creating the template manually in templates.xml and the corresponding phrase in phrases.xml, but the error persists. Could someone please check if the node_permission_list template exists on their site? Thank you.
 
Back
Top Bottom