XF 2.2 How to read and fix server error logs

FoxSecrets

Active member
I got a lot of server errors and I'd like to understand and solve them.

Can someone help me how to debug this error?

Code:
Server error log
InvalidArgumentException: Accessed unknown getter 'mgm_xfrmpp_conn' on XFRM:Category[67] src/XF/Mvc/Entity/Entity.php:206
Generated by: Unknown account Dec 24, 2023 at 3:41 PM

Stack trace

#0 src/XF/Mvc/Entity/Entity.php(118): XF\Mvc\Entity\Entity->get('mgm_xfrmpp_conn')
#1 internal_data/code_cache/templates/l1/s13/public/xfrm_resource_list_macros.php(119): XF\Mvc\Entity\Entity->offsetGet('mgm_xfrmpp_conn')
#2 src/XF/Template/Templater.php(824): XF\Template\Templater->{closure}(Object(Iconify\Iconify\Template\Templater), Array, NULL)
#3 internal_data/code_cache/templates/l1/s13/public/xfrm_widget_new_resources.php(23): XF\Template\Templater->callMacro('xfrm_resource_l...', 'resource', Array, Array)
#4 src/XF/Template/Templater.php(1651): XF\Template\Templater->{closure}(Object(Iconify\Iconify\Template\Templater), Array, NULL)
#5 src/XF/Widget/WidgetRenderer.php(62): XF\Template\Templater->renderTemplate('xfrm_widget_new...', Array)
#6 src/XF/Widget/WidgetRenderer.php(67): XF\Widget\WidgetRenderer->render()
#7 src/XF/Template/Templater.php(1928): XF\Widget\WidgetRenderer->__toString()
#8 internal_data/code_cache/templates/l1/s13/public/whats_new.php(16): XF\Template\Templater->widgetPosition('whats_new_overv...', Array)
#9 src/XF/Template/Templater.php(1651): XF\Template\Templater->{closure}(Object(Iconify\Iconify\Template\Templater), Array, NULL)
#10 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('whats_new', Array)
#11 src/XF/Mvc/Renderer/Html.php(50): XF\Template\Template->render()
#12 src/XF/Mvc/Dispatcher.php(460): XF\Mvc\Renderer\Html->renderView('XF:WhatsNew\\Ove...', 'public:whats_ne...', Array)
#13 src/XF/Mvc/Dispatcher.php(442): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#14 src/XF/Mvc/Dispatcher.php(402): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#15 src/XF/Mvc/Dispatcher.php(60): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#16 src/XF/App.php(2351): XF\Mvc\Dispatcher->run()
#17 src/XF.php(517): XF\App->run()
#18 index.php(20): XF::runApp('XF\\Pub\\App')
#19 {main}


Another question. What's the function of "forum/internal_data" folder?
There are several references to "internal_data/code_cache/templates/l1/s13/"
What does "L" and "S" mean? What happen if I delete all these contents?
 
Last edited:
Can someone help me how to debug this error?
Something in the xfrm_resource_list_macros template is trying to access a non-existent mgm_xfrmpp_conn property of an \XFRM\Entity\Category object, presumably stemming from a template modification.

What's the function of "forum/internal_data" folder?
The internal data folder is for storing (non-public) installation-specific data, including attachments, compiled templates, and sitemaps, among other things.

There are several references to "internal_data/code_cache/templates/l1/s13/"
What does "L" and "S" mean? What happen if I delete all these contents?
Language and style. If you delete them, pages which try to render those templates will not function as expected and you would need to rebuild the master data to regenerate them.
 
Back
Top Bottom