Bug Error in the version 2.1.2 of the forum.

Status
Not open for further replies.

NotDrink

Customer
I tested the plugin on the forum version 2.1.1. everything worked fine. I updated the forum version to 2.1.2 and installed the plugin again. The following errors appeared in the log:
  • ErrorException: Template error: Method canViewDbtechCredits is not callable on the given object (XenConcept\UserActivity\XF\Entity\User)
  • src/XF/Template/Templater.php:980
  • Generated by: Admin
  • Jun 5, 2019 at 11:35 AM
Stack trace
#0 [internal function]: XF\Template\Templater->handleTemplateError(512, 'Method canViewD...', '/home/alex/www/...', 980, Array)
#1 src/XF/Template/Templater.php(980): trigger_error('Method canViewD...', 512)
#2 internal_data/code_cache/navigation_cache.php(514): XF\Template\Templater->method(Object(XenConcept\UserActivity\XF\Entity\User), 'canViewDbtechCr...', Array)
#3 src/XF/Template/Templater.php(6628): XF\Pub\App->{closure}(Object(XF\Template\Templater), 'forums', Array)
#4 src/XF/Pub/App.php(560): XF\Template\Templater->renderNavigationClosure(Object(Closure), 'forums', Array)
#5 src/XF/Pub/App.php(513): XF\Pub\App->getNavigation(Array, 'forums')
#6 src/XF/App.php(1988): XF\Pub\App->renderPageHtml('












...', Array, Object(XF\Mvc\Reply\View), Object(XF\Mvc\Renderer\Html))
#7 src/XF/Mvc/Dispatcher.php(362): XF\App->renderPage('












...', Object(XF\Mvc\Reply\View), Object(XF\Mvc\Renderer\Html))
#8 src/XF/Mvc/Dispatcher.php(53): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#9 src/XF/App.php(2177): XF\Mvc\Dispatcher->run()
#10 src/XF.php(390): XF\App->run()
#11 index.php(20): XF::runApp('XF\\Pub\\App')
#12 {main}
Request state
array(4) {
["url"] => string(1) "/"
["referrer"] => string(21) "http://notdrink_test/"
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}
  • InvalidArgumentException: Accessed unknown getter 'dbtech_credits_lastdaily' on XF:User[2]
  • src/XF/Mvc/Entity/Entity.php:194
  • Generated by: Admin
  • Jun 5, 2019 at 11:35 AM
Stack trace
#0 src/XF/Mvc/Entity/Entity.php(101): XF\Mvc\Entity\Entity->get('dbtech_credits_...')
#1 src/addons/DBTech/Credits/Listener.php(138): XF\Mvc\Entity\Entity->__get('dbtech_credits_...')
#2 [internal function]: DBTech\Credits\Listener::appPubComplete(Object(XF\Pub\App), Object(XF\Http\Response))
#3 src/XF/Extension.php(67): call_user_func_array(Array, Array)
#4 src/XF/App.php(2647): XF\Extension->fire('app_pub_complet...', Array, NULL)
#5 src/XF/Pub/App.php(462): XF\App->fire('app_pub_complet...', Array)
#6 src/XF/App.php(2180): XF\Pub\App->complete(Object(XF\Http\Response))
#7 src/XF.php(390): XF\App->run()
#8 index.php(20): XF::runApp('XF\\Pub\\App')
#9 {main}
Request state
array(4) {
["url"] => string(1) "/"
["referrer"] => string(21) "http://notdrink_test/"
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}

In addition, completely missing the chat from Siropu from the pages of the forum. I didn't do anything other than install Your plugin.
 
That can happen if someone visits the forum during the upgrade. It’s nothing to worry about.
 
This is not normal. No one came to the forum on the local computer during the installation. I have now installed a test version of the forum online. The same mistakes appeared. And not only chat, but also xenforo resources disappeared. I can provide access to the test version in a personal message.
 
This is because the ND Timer mod is broken. It's not extending the \XF\Entity\User class correctly.

Please show this to whoever wrote that mod: https://xenforo.com/xf2-docs/dev/general-concepts/#extending-classes

Please consider disabling all other add-ons by the same developer until they have been reworked to follow the XenForo programming standards, as you will likely experience a broken website until you do so.
 
Status
Not open for further replies.

DragonByte Credits

XenForo 1.5.3+ XenForo 2.0.x XenForo 2.1.x XenForo 2.2.x XenForo 2.3.x
Seller
DragonByte Technologies
Release date
Last update
Total downloads
4,885
Customer rating
5.00 star(s) 5 ratings
Back
Top