Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Normal
Is this still happening?I'm not 100% certain but from the stack trace it appears as though you may have had some media specific links in your navigation tree under the "members" navigation item.This isn't something we include by default so I assume it to be a custom one you added. If that's the case then if XFMG is ever disabled and you've gated the navigation item behind the $xf.visitor.canViewMedia() function then an error is expected. The default Media navigation entries are hidden when the add-on is disabled because they are assigned to the add-on so we know not to render them.For something like this in custom navigation entries you could change the condition to:[CODE]is_addon_active('XFMG') AND $xf.visitor.canViewMedia()[/CODE]Alternatively, this may have been triggered if you've ever had $config['enableListeners'] set to false in your src/config.php file. There isn't a workaround for that and an error being logged (not visible to users unless debug/development mode is enabled) is expected.
Is this still happening?
I'm not 100% certain but from the stack trace it appears as though you may have had some media specific links in your navigation tree under the "members" navigation item.
This isn't something we include by default so I assume it to be a custom one you added. If that's the case then if XFMG is ever disabled and you've gated the navigation item behind the $xf.visitor.canViewMedia() function then an error is expected. The default Media navigation entries are hidden when the add-on is disabled because they are assigned to the add-on so we know not to render them.
$xf.visitor.canViewMedia()
For something like this in custom navigation entries you could change the condition to:
[CODE]is_addon_active('XFMG') AND $xf.visitor.canViewMedia()
[/CODE]
Alternatively, this may have been triggered if you've ever had $config['enableListeners'] set to false in your src/config.php file. There isn't a workaround for that and an error being logged (not visible to users unless debug/development mode is enabled) is expected.
$config['enableListeners']
src/config.php
We use essential cookies to make this site work, and optional cookies to enhance your experience.
See further information and configure your preferences