What's new
Xen Factory

Register today to become a member! Once signed in, you'll be able to start purchasing our products, ask questions, request support and suggest new ideas!

  • We are aware that a no permission error was shown when you tried to purchase in the last 2 days, this is now fixed.

Bug Fixed Please add support for PHP Version 8.1.9?

@Clement Please add support for PHP Version 8.1.9?

Server error log:

Code:
ErrorException: Template error: [E_WARNING] Undefined global variable $xfa_te_userTrophies src/addons/XFA/TrophiesEnhancement/Listener.php:57

Generated by: Orcco2020 Sep 2, 2022 at 2:37 PM

Stack trace

#0 src/addons/XFA/TrophiesEnhancement/Listener.php(57): XF\Template\Templater->handleTemplateError(2, '[E_WARNING] Und...', '/home/nadda/pub...', 57)
#1 src/XF/Extension.php(52): XFA\TrophiesEnhancement\Listener::templateMacroPreRenderMessageMacrosUserInfo(Object(MaZ\AMP\XF\Template\XF22\Templater), 'public', 'message_macros', 'user_info', Array, Array)
#2 src/XF/App.php(2855): XF\Extension->fire('templater_macro...', Array, 'public:message_...')
#3 src/XF/Template/Templater.php(761): XF\App->fire('templater_macro...', Array, 'public:message_...')
#4 src/addons/MaZ/AMP/XF/Template/Templater.php(139): XF\Template\Templater->callMacro('message_macros', 'user_info', Array, Array, NULL)
#5 internal_data/code_cache/templates/l1/s6/public/post_macros.php(25): MaZ\AMP\XF\Template\Templater->callMacro('message_macros', 'user_info', Array, Array)
#6 src/XF/Template/Templater.php(987): XF\Template\Templater->{closure}(Object(MaZ\AMP\XF\Template\XF22\Templater), Array, Object(XF\Template\ExtensionSet))
#7 src/XF/Template/Templater.php(923): XF\Template\Templater->renderExtensionInternal('user_cell', Array, Array, Object(XF\Template\ExtensionSet))
#8 internal_data/code_cache/templates/l1/s6/public/post_macros.php(155): XF\Template\Templater->renderExtension('user_cell', Array, Object(XF\Template\ExtensionSet))
#9 src/XF/Template/Templater.php(987): XF\Template\Templater->{closure}(Object(MaZ\AMP\XF\Template\XF22\Templater), Array, Object(XF\Template\ExtensionSet))
#10 src/XF/Template/Templater.php(923): XF\Template\Templater->renderExtensionInternal('full_body', Array, Array, Object(XF\Template\ExtensionSet))
#11 internal_data/code_cache/templates/l1/s6/public/post_macros.php(202): XF\Template\Templater->renderExtension('full_body', Array, Object(XF\Template\ExtensionSet))
#12 src/XF/Template/Templater.php(824): XF\Template\Templater->{closure}(Object(MaZ\AMP\XF\Template\XF22\Templater), Array, Object(XF\Template\ExtensionSet))
#13 src/addons/MaZ/AMP/XF/Template/Templater.php(139): XF\Template\Templater->callMacro('post_macros', 'post', Array, Array, Object(XF\Template\MacroState))
#14 internal_data/code_cache/templates/l1/s6/public/thread_new_posts.php(24): MaZ\AMP\XF\Template\Templater->callMacro(NULL, 'post_macros::po...', Array, Array)
#15 src/XF/Template/Templater.php(1651): XF\Template\Templater->{closure}(Object(MaZ\AMP\XF\Template\XF22\Templater), Array, NULL)
#16 src/addons/MaZ/AMP/XF/Template/XF22/Templater.php(52): XF\Template\Templater->renderTemplate('thread_new_post...', Array, true, NULL)
#17 src/XF/Template/Template.php(24): MaZ\AMP\XF\Template\XF22\Templater->renderTemplate('public:thread_n...', Array)
#18 src/XF/Mvc/Renderer/Json.php(86): XF\Template\Template->render()
#19 src/XF/Mvc/Renderer/Json.php(70): XF\Mvc\Renderer\Json->renderHtmlFallback('XF:Thread\\NewPo...', 'public:thread_n...', Array)
#20 src/XF/Mvc/Dispatcher.php(460): XF\Mvc\Renderer\Json->renderView('XF:Thread\\NewPo...', 'public:thread_n...', Array)
#21 src/XF/Mvc/Dispatcher.php(442): XF\Mvc\Dispatcher->renderView(Object(KL\EditorManager\XF\Mvc\Renderer\Json), Object(XF\Mvc\Reply\View))
#22 src/XF/Mvc/Dispatcher.php(402): XF\Mvc\Dispatcher->renderReply(Object(KL\EditorManager\XF\Mvc\Renderer\Json), Object(XF\Mvc\Reply\View))
#23 src/XF/Mvc/Dispatcher.php(60): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'json')
#24 src/XF/App.php(2353): XF\Mvc\Dispatcher->run()
#25 src/XF.php(524): XF\App->run()
#26 index.php(20): XF::runApp('XF\\Pub\\App')
#27 {main}

Request state

array(4) {
  ["url"] => string(71) "/threads/who-will-be-member-of-the-month-in-august-2022.92516/add-reply"
  ["referrer"] => string(93) "/threads/who-will-be-member-of-the-month-in-august-2022.92516/?frtid=64"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(9) {
    ["_xfToken"] => string(8) "********"
    ["message_html"] => string(42) "<p>Congratulations to the winner&nbsp;</p>"
    ["last_date"] => string(10) "1662047830"
    ["last_known_date"] => string(10) "1662047830"
    ["load_extra"] => string(1) "1"
    ["klPage"] => string(1) "1"
    ["_xfRequestUri"] => string(71) "/threads/who-will-be-member-of-the-month-in-august-2022.92516/?frtid=64"
    ["_xfWithData"] => string(1) "1"
    ["_xfResponseType"] => string(4) "json"
  }
}
 

Clement

Freaky Coder
Staff member
Hum, strange, it stopped working when you changed of php version ?
From which one did you change from ?
 

Clement

Freaky Coder
Staff member
Ok I'll check if my version of MAMP has that PHP version either this week or the next one and I'll provide a fix.
 

Clement

Freaky Coder
Staff member
Hello,

Just tried on 8.2.0rc2 (I didn't have 8.1.9 on MAMP PRO) and I don't have that issue.

However I think I know why you had that error so I'll fix it how I think it should be in next release.

Clément
 
Top