Hi, i've installed this Add-on https://enxf.net/resources/xtr-reputation-system.1265/ but i have an error and i need help fixing this, i have xenforo version 2.2.8 path 1. i uploaded the addon through ftp cuz it was not be installed via acp due to error of "file does not appear to be a valid add-on archive as expected"
The code of Macrorender.php addon:
Code:
Stack trace
#0 src/addons/XENTR/ReputationSystem/MacroRender.php(9): XF\Template\Templater->handleTemplateError(2, '[E_WARNING] Att...', '/home/u35726842...', 9)
#1 src/XF/Extension.php(52): XENTR\ReputationSystem\MacroRender::preRender(Object(XF\Template\Templater), 'admin', 'option_macros', 'option_form_blo...', Array, Array)
#2 src/XF/App.php(2853): XF\Extension->fire('templater_macro...', Array, 'admin:option_ma...')
#3 src/XF/Template/Templater.php(761): XF\App->fire('templater_macro...', Array, 'admin:option_ma...')
#4 internal_data/code_cache/templates/l1/s0/admin/trophy_list.php(64): XF\Template\Templater->callMacro('option_macros', 'option_form_blo...', Array, Array)
#5 src/XF/Template/Templater.php(1651): XF\Template\Templater->{closure}(Object(XF\Template\Templater), Array, NULL)
#6 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('trophy_list', Array)
#7 src/XF/Mvc/Renderer/Html.php(50): XF\Template\Template->render()
#8 src/XF/Mvc/Dispatcher.php(460): XF\Mvc\Renderer\Html->renderView('XF:Trophy\\Listi...', 'admin:trophy_li...', Array)
#9 src/XF/Mvc/Dispatcher.php(442): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#10 src/XF/Mvc/Dispatcher.php(402): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#11 src/XF/Mvc/Dispatcher.php(60): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#12 src/XF/App.php(2351): XF\Mvc\Dispatcher->run()
#13 src/XF.php(517): XF\App->run()
#14 admin.php(13): XF::runApp('XF\\Admin\\App')
#15 {main}
Code:
Request state
array(4) {
["url"] => string(20) "/admin.php?trophies/"
["referrer"] => string(66) "https://undead-project.xyz/admin.php?options/groups/XTRReputation/"
["_GET"] => array(1) {
["trophies/"] => string(0) ""
}
["_POST"] => array(0) {
}
}
The code of Macrorender.php addon:
Code:
<?php
namespace XENTR\ReputationSystem;
class MacroRender
{
public static function preRender(\XF\Template\Templater $templater, &$type, &$template, &$name, array &$arguments, array &$globalVars)
{
if ($arguments['group']->group_id == 'XTRReputation')
{
$template = 'Reputation_macros';
}
}
}
Last edited: