Dbtech Credits Addon - Subject view error to the visitor

Status
Not open for further replies.
i had the same problem,

you have to look in

Admin Panel>DragonByte Credits>Events

Event Trigger: Viewed (Someone else viewing your thread. Events should be limited.)

Applicable user groups

You have to "uncheck" > Unregistered / Unconfirmed


Then your guests can view threads




.
 
wait i make mistake!!

my solution is not working


if you disable "Event Trigger: Viewed (Someone else viewing your thread. Events should be limited.)"

then it will work, but i don't want to disable it,


maybe its a bug?



.
 
this is error i get

Code:
Server error log

    TypeError: Argument 2 passed to DBTech\Credits\Repository\Transaction::sendTransactionAlert() must be an instance of XF\Entity\User, null given, called in /home/nginx/domains/myforum.com/public/src/addons/DBTech/Credits/Entity/Transaction.php on line 128 src/addons/DBTech/Credits/Repository/Transaction.php:50

    Generated by: Unknown account Jan 29, 2019 at 9:02 AM

Stack trace

#0 src/addons/DBTech/Credits/Entity/Transaction.php(128): DBTech\Credits\Repository\Transaction->sendTransactionAlert(Object(Siropu\AdsManager\XF\Entity\User), NULL, Object(DBTech\Credits\Entity\Transaction))
#1 src/XF/Mvc/Entity/Entity.php(1208): DBTech\Credits\Entity\Transaction->_postSave()
#2 src/addons/DBTech/Credits/EventTrigger/AbstractHandler.php(558): XF\Mvc\Entity\Entity->save(true, false)
#3 src/addons/DBTech/Credits/EventTrigger/View.php(30): DBTech\Credits\EventTrigger\AbstractHandler->trigger(Object(Siropu\AdsManager\XF\Entity\User), 38, false, Object(ArrayObject))
#4 src/addons/DBTech/Credits/EventTrigger/AbstractHandler.php(255): DBTech\Credits\EventTrigger\View->trigger(Object(Siropu\AdsManager\XF\Entity\User), 38, false, Array)
#5 src/addons/DBTech/Credits/XF/Repository/Thread.php(37): DBTech\Credits\EventTrigger\AbstractHandler->apply(38, Array, Object(Siropu\AdsManager\XF\Entity\User))
#6 src/XF/Pub/Controller/Thread.php(90): DBTech\Credits\XF\Repository\Thread->logThreadView(Object(DBTech\Credits\XF\Entity\Thread))
#7 src/addons/XFMG/XF/Pub/Controller/Thread.php(11): XF\Pub\Controller\Thread->actionIndex(Object(XF\Mvc\ParameterBag))
#8 src/XF/Mvc/Dispatcher.php(321): XFMG\XF\Pub\Controller\Thread->actionIndex(Object(XF\Mvc\ParameterBag))
#9 src/XF/Mvc/Dispatcher.php(248): XF\Mvc\Dispatcher->dispatchClass('XF:Thread', 'Index', Object(XF\Mvc\RouteMatch), Object(Siropu\AdsManager\XF\Pub\Controller\Thread), NULL)
#10 src/XF/Mvc/Dispatcher.php(100): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(Siropu\AdsManager\XF\Pub\Controller\Thread), NULL)
#11 src/XF/Mvc/Dispatcher.php(50): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#12 src/XF/App.php(2177): XF\Mvc\Dispatcher->run()
#13 src/XF.php(390): XF\App->run()
#14 index.php(20): XF::runApp('XF\\Pub\\App')
#15 {main}

Request state

array(4) {
  ["url"] => string(38) "/index.php?threads/yesvsno.38/"
  ["referrer"] => string(32) "https://myforum.com/index.php"
  ["_GET"] => array(1) {
    ["threads/nulled-vs-legit_38/"] => string(0) ""
  }
  ["_POST"] => array(0) {
  }
}
 
Status
Not open for further replies.
Back
Top