Bug TypeError: Return value of DBTech\Shop\Pub\Controller\Item::actionAdd() must be an instance of XF\Mvc\Reply\View, instance of XF\Mvc\Reply\Error retur

Status
Not open for further replies.
This error osccurs, if user without permissions to add item, opening URL /dbtech-shop/add?category_id=1 direct.
Code:
TypeError: Return value of DBTech\Shop\Pub\Controller\Item::actionAdd() must be an instance of XF\Mvc\Reply\View, instance of XF\Mvc\Reply\Error returned in src/addons/DBTech/Shop/Pub/Controller/Item.php at line 768

    DBTech\Shop\Pub\Controller\Item->actionAdd() in src/XF/Mvc/Dispatcher.php at line 350
    XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 257
    XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 113
    XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 55
    XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2300
    XF\App->run() in src/XF.php at line 465
    XF::runApp() in index.php at line 20

Code:
array(4) {
  ["url"] => string(30) "/dbtech-shop/add?category_id=1"
  ["referrer"] => bool(false)
  ["_GET"] => array(2) {
    ["/dbtech-shop/add"] => string(0) ""
    ["category_id"] => string(1) "1"
  }
  ["_POST"] => array(0) {
  }
}
 
Status
Not open for further replies.

DragonByte Shop

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