XF 2.1 isIgnoring and hasNodePermission errors

Hey,

I use XPress / XLink to bridge wordpress and xenforo and everything works flawless. Additionally I use the Recent Post 2 addon to get all the new posts from xenforo displayed on my wordpress widget. This works and shows everything also correct and flawless, but my error log in xenforo fills with hundreds of messages in minutes as followed:

Code:
ErrorException: Template error: Cannot call method hasNodePermission on a non-object (NULL) src/XF/Template/Templater.php:984
Code:
#0 [internal function]: XF\Template\Templater->handleTemplateError(512, 'Cannot call met...', '/var/www/vhosts...', 984, Array)
#1 src/XF/Template/Templater.php(984): trigger_error('Cannot call met...', 512)
#2 internal_data/code_cache/templates/l2/s4/public/siropu_recent_posts_macros.php(117): XF\Template\Templater->method(NULL, 'hasNodePermissi...', Array)
#3 src/XF/Template/Templater.php(701): XF\Template\Templater->{closure}(Object(ThemeHouse\XLink\XF\Template\Templater), Array, Array)
#4 internal_data/code_cache/templates/l2/s4/public/siropu_recent_posts_list.php(9): XF\Template\Templater->callMacro('siropu_recent_p...', 'item', Array, Array)
#5 src/XF/Template/Templater.php(1315): XF\Template\Templater->{closure}(Object(ThemeHouse\XLink\XF\Template\Templater), Array)
#6 src/XF/Template/Templater.php(1388): XF\Template\Templater->renderTemplate('siropu_recent_p...', Array)
#7 internal_data/code_cache/templates/l2/s4/public/siropu_recent_posts_widget.php(52): XF\Template\Templater->includeTemplate('public:siropu_r...', Array)
#8 src/XF/Template/Templater.php(1315): XF\Template\Templater->{closure}(Object(ThemeHouse\XLink\XF\Template\Templater), Array)
#9 src/XF/Widget/WidgetRenderer.php(62): XF\Template\Templater->renderTemplate('siropu_recent_p...', Array)
#10 src/XF/Widget/WidgetRenderer.php(67): XF\Widget\WidgetRenderer->render()
#11 /var/www/vhosts/barsch-alarm.de/httpdocs/news/wp-content/plugins/wp-xpress-plugin/src/XPress/Widget/Widget.php(63): XF\Widget\WidgetRenderer->__toString()
#12 /var/www/vhosts/barsch-alarm.de/httpdocs/news/wp-includes/class-wp-widget.php(379): XPress\Widget\Widget->widget(Array, Array)
#13 /var/www/vhosts/barsch-alarm.de/httpdocs/news/wp-includes/widgets.php(805): WP_Widget->display_callback(Array, Array)
#14 /var/www/vhosts/barsch-alarm.de/httpdocs/news/wp-content/themes/wp-xpress-theme/sidebar.php(8): dynamic_sidebar('sidebar-1')
#15 /var/www/vhosts/barsch-alarm.de/httpdocs/news/wp-includes/template.php(722): require_once('/var/www/vhosts...')
#16 /var/www/vhosts/barsch-alarm.de/httpdocs/news/wp-includes/template.php(671): load_template('/var/www/vhosts...', true)
#17 /var/www/vhosts/barsch-alarm.de/httpdocs/news/wp-includes/general-template.php(111): locate_template(Array, true)
#18 /var/www/vhosts/barsch-alarm.de/httpdocs/news/wp-content/themes/wp-xpress-theme/pageWithContainerAndSidebar.php(38): get_sidebar('sidebar-3')
#19 /var/www/vhosts/barsch-alarm.de/httpdocs/news/wp-includes/template-loader.php(98): include('/var/www/vhosts...')
#20 /var/www/vhosts/barsch-alarm.de/httpdocs/news/wp-blog-header.php(19): require_once('/var/www/vhosts...')
#21 /var/www/vhosts/barsch-alarm.de/httpdocs/news/index.php(17): require('/var/www/vhosts...')
#22 {main}

and

Code:
ErrorException: Template error: Cannot call method isIgnoring on a non-object (NULL) src/XF/Template/Templater.php:984
Code:
#0 [internal function]: XF\Template\Templater->handleTemplateError(512, 'Cannot call met...', '/var/www/vhosts...', 984, Array)
#1 src/XF/Template/Templater.php(984): trigger_error('Cannot call met...', 512)
#2 internal_data/code_cache/templates/l2/s4/public/siropu_recent_posts_macros.php(249): XF\Template\Templater->method(NULL, 'isIgnoring', Array)
#3 src/XF/Template/Templater.php(701): XF\Template\Templater->{closure}(Object(ThemeHouse\XLink\XF\Template\Templater), Array, Array)
#4 internal_data/code_cache/templates/l2/s4/public/siropu_recent_posts_list.php(9): XF\Template\Templater->callMacro('siropu_recent_p...', 'item', Array, Array)
#5 src/XF/Template/Templater.php(1315): XF\Template\Templater->{closure}(Object(ThemeHouse\XLink\XF\Template\Templater), Array)
#6 src/XF/Template/Templater.php(1388): XF\Template\Templater->renderTemplate('siropu_recent_p...', Array)
#7 internal_data/code_cache/templates/l2/s4/public/siropu_recent_posts_widget.php(52): XF\Template\Templater->includeTemplate('public:siropu_r...', Array)
#8 src/XF/Template/Templater.php(1315): XF\Template\Templater->{closure}(Object(ThemeHouse\XLink\XF\Template\Templater), Array)
#9 src/XF/Widget/WidgetRenderer.php(62): XF\Template\Templater->renderTemplate('siropu_recent_p...', Array)
#10 src/XF/Widget/WidgetRenderer.php(67): XF\Widget\WidgetRenderer->render()
#11 /var/www/vhosts/barsch-alarm.de/httpdocs/news/wp-content/plugins/wp-xpress-plugin/src/XPress/Widget/Widget.php(63): XF\Widget\WidgetRenderer->__toString()
#12 /var/www/vhosts/barsch-alarm.de/httpdocs/news/wp-includes/class-wp-widget.php(379): XPress\Widget\Widget->widget(Array, Array)
#13 /var/www/vhosts/barsch-alarm.de/httpdocs/news/wp-includes/widgets.php(805): WP_Widget->display_callback(Array, Array)
#14 /var/www/vhosts/barsch-alarm.de/httpdocs/news/wp-content/themes/wp-xpress-theme/sidebar.php(8): dynamic_sidebar('sidebar-1')
#15 /var/www/vhosts/barsch-alarm.de/httpdocs/news/wp-includes/template.php(722): require_once('/var/www/vhosts...')
#16 /var/www/vhosts/barsch-alarm.de/httpdocs/news/wp-includes/template.php(671): load_template('/var/www/vhosts...', true)
#17 /var/www/vhosts/barsch-alarm.de/httpdocs/news/wp-includes/general-template.php(111): locate_template(Array, true)
#18 /var/www/vhosts/barsch-alarm.de/httpdocs/news/wp-content/themes/wp-xpress-theme/pageWithContainerAndSidebar.php(38): get_sidebar('sidebar-3')
#19 /var/www/vhosts/barsch-alarm.de/httpdocs/news/wp-includes/template-loader.php(98): include('/var/www/vhosts...')
#20 /var/www/vhosts/barsch-alarm.de/httpdocs/news/wp-blog-header.php(19): require_once('/var/www/vhosts...')
#21 /var/www/vhosts/barsch-alarm.de/httpdocs/news/index.php(17): require('/var/www/vhosts...')
#22 {main}

I am aware this is mostly and issue from XPress or Recent Posts addons, but I ask on one site who told me this is not an issue of his addon and the other told me that no one is available to give me an answer until the mid of january 2020. So maybe I have a bit more luck on this forum :)
 

Attachments

  • c4eb5208f330699706d5b454ad258c52.gif
    c4eb5208f330699706d5b454ad258c52.gif
    69.2 KB · Views: 2
There is reference another third party add-on in the trace - siropu_recent_posts.

The usual troubleshooting steps apply in this sort of situation - disable all add-ons and test in a completely default style, then re-enable things one at a time until the issue reoccurs.
 
Hey Brogan,

maybe I wasn't clear enough. I am already sure this is the Recent Posts 2 addon from siropu. If I deactivate this addon, the error is gone. Siropu mentioned this is not an issue from his addon, it is more related to the XPress Bridge. Siropu mentioned, it looks like $xf.visitor which is the one that triggers the errors, is not available.
 
If you think the issue is with one of the add-ons then you can only get support from the authors.

We can't help with problems with third party add-ons - we don't run them on this site, or have access to the code.
 
Try posting in the resource thread on this site.

Any other members running the add-on may have encountered the issue and know what the fix is.
 
Top Bottom