Bug Error when deleting item

Status
Not open for further replies.

triforceguy1

Customer
Hello,

I currently get this error when trying to delete and item from the shop. It does still delete after a couple minutes though if I go to click edit and try to change settings

Code:
Error Info
ErrorException: Fatal Error: Call to undefined method DBTech_Shop_DataManager_Item::getModelFromCache() - library/DBTech/Shop/DataManager/Item.php:224
Generated By: triforceguy1, 3 minutes ago
Stack Trace
#0 [internal function]: XenForo_Application::handleFatalError()
#1 {main}
Request State
array(3) {
  ["url"] => string(57) "http://www.nintybuzz.com/forum/admin.php?dbtech-shop/item"
  ["_GET"] => array(1) {
    ["dbtech-shop/item"] => string(0) ""
  }
  ["_POST"] => array(10) {
    ["item"] => array(32) {
      ["title"] => string(7) "An Item"
      ["description"] => string(41) "A random new item that does fancy things."
      ["active"] => string(1) "0"
      ["displayorder"] => string(2) "10"
      ["categoryid"] => string(1) "1"
      ["icon"] => string(0) ""
      ["shopicon"] => string(0) ""
      ["giftable"] => string(1) "0"
      ["onlygiftable"] => string(1) "0"
      ["giftpm"] => string(1) "1"
      ["uniqueitem"] => string(1) "0"
      ["exclusiveitem"] => string(1) "0"
      ["stealthed"] => string(1) "0"
      ["duration"] => string(1) "0"
      ["reconfigure"] => string(1) "1"
      ["regift"] => string(1) "1"
      ["nodisplay"] => string(1) "0"
      ["prepurchase_callback_class"] => string(0) ""
      ["prepurchase_callback_method"] => string(0) ""
      ["postpurchase_callback_class"] => string(0) ""
      ["postpurchase_callback_method"] => string(0) ""
      ["sellback_callback_class"] => string(0) ""
      ["sellback_callback_method"] => string(0) ""
      ["configure_callback_class"] => string(0) ""
      ["configure_callback_method"] => string(0) ""
      ["gift_callback_class"] => string(0) ""
      ["gift_callback_method"] => string(0) ""
      ["discard_callback_class"] => string(0) ""
      ["discard_callback_method"] => string(0) ""
      ["code"] => array(5) {
        [1] => array(2) {
          ["title"] => string(4) "Test"
          ["required"] => string(1) "1"
        }
        [2] => array(2) {
          ["title"] => string(0) ""
          ["required"] => string(1) "0"
        }
        [3] => array(2) {
          ["title"] => string(0) ""
          ["required"] => string(1) "0"
        }
        [4] => array(2) {
          ["title"] => string(0) ""
          ["required"] => string(1) "0"
        }
        [5] => array(2) {
          ["title"] => string(0) ""
          ["required"] => string(1) "0"
        }
      }
      ["permissions"] => array(48) {
        [73] => array(1) {
          ["canbuyitem"] => string(2) "-1"
        }
        [3] => array(1) {
          ["canbuyitem"] => string(2) "-1"
        }
        [173] => array(1) {
          ["canbuyitem"] => string(2) "-1"
        }
        [4] => array(1) {
          ["canbuyitem"] => string(2) "-1"
        }
        [76] => array(1) {
          ["canbuyitem"] => string(2) "-1"
        }
        [160] => array(1) {
          ["canbuyitem"] => string(2) "-1"
        }
        [161] => array(1) {
          ["canbuyitem"] => string(2) "-1"
        }
        [2] => array(1) {
          ["canbuyitem"] => string(2) "-1"
        }
        [1] => array(1) {
          ["canbuyitem"] => string(2) "-1"
        }
        [174] => array(1) {
          ["canbuyitem"] => string(2) "-1"
        }
        [175] => array(1) {
          ["canbuyitem"] => string(2) "-1"
        }
        [176] => array(1) {
          ["canbuyitem"] => string(2) "-1"
        }
        [177] => array(1) {
          ["canbuyitem"] => string(2) "-1"
        }
        [178] => array(1) {
          ["canbuyitem"] => string(2) "-1"
        }
        [179] => array(1) {
          ["canbuyitem"] => string(2) "-1"
        }
        [180] => array(1) {
          ["canbuyitem"] => string(2) "-1"
        }
        [181] => array(1) {
          ["canbuyitem"] => string(2) "-1"
        }
        [182] => array(1) {
          ["canbuyitem"] => string(2) "-1"
        }
        [183] => array(1) {
          ["canbuyitem"] => string(2) "-1"
        }
        [184] => array(1) {
          ["canbuyitem"] => string(2) "-1"
        }
        [185] => array(1) {
          ["canbuyitem"] => string(2) "-1"
        }
        [186] => array(1) {
          ["canbuyitem"] => string(2) "-1"
        }
        [187] => array(1) {
          ["canbuyitem"] => string(2) "-1"
        }
        [188] => array(1) {
          ["canbuyitem"] => string(2) "-1"
        }
        [196] => array(1) {
          ["canbuyitem"] => string(2) "-1"
        }
        [194] => array(1) {
          ["canbuyitem"] => string(2) "-1"
        }
        [195] => array(1) {
          ["canbuyitem"] => string(2) "-1"
        }
        [197] => array(1) {
          ["canbuyitem"] => string(2) "-1"
        }
        [200] => array(1) {
          ["canbuyitem"] => string(2) "-1"
        }
        [198] => array(1) {
          ["canbuyitem"] => string(2) "-1"
        }
        [199] => array(1) {
          ["canbuyitem"] => string(2) "-1"
        }
        [201] => array(1) {
          ["canbuyitem"] => string(2) "-1"
        }
        [202] => array(1) {
          ["canbuyitem"] => string(2) "-1"
        }
        [191] => array(1) {
          ["canbuyitem"] => string(2) "-1"
        }
        [190] => array(1) {
          ["canbuyitem"] => string(2) "-1"
        }
        [204] => array(1) {
          ["canbuyitem"] => string(2) "-1"
        }
        [169] => array(1) {
          ["canbuyitem"] => string(2) "-1"
        }
        [64] => array(1) {
          ["canbuyitem"] => string(2) "-1"
        }
        [162] => array(1) {
          ["canbuyitem"] => string(2) "-1"
        }
        [165] => array(1) {
          ["canbuyitem"] => string(2) "-1"
        }
        [167] => array(1) {
          ["canbuyitem"] => string(2) "-1"
        }
        [164] => array(1) {
          ["canbuyitem"] => string(2) "-1"
        }
        [168] => array(1) {
          ["canbuyitem"] => string(2) "-1"
        }
        [166] => array(1) {
          ["canbuyitem"] => string(2) "-1"
        }
        [163] => array(1) {
          ["canbuyitem"] => string(2) "-1"
        }
        [203] => array(1) {
          ["canbuyitem"] => string(2) "-1"
        }
        [192] => array(1) {
          ["canbuyitem"] => string(2) "-1"
        }
        [193] => array(1) {
          ["canbuyitem"] => string(2) "-1"
        }
      }
      ["itemtypeid"] => string(6) "custom"
    }
    ["inventory"] => array(1) {
      [1] => array(12) {
        ["active"] => string(1) "0"
        ["currencyid"] => string(1) "1"
        ["price"] => string(1) "0"
        ["buybackprice"] => string(1) "0"
        ["buybacktime"] => string(1) "0"
        ["buybackreplenish"] => string(1) "0"
        ["notifications"] => string(3) "140"
        ["notifications_config"] => string(3) "140"
        ["stock"] => string(2) "-1"
        ["maxstock"] => string(2) "-1"
        ["refilltime"] => string(1) "0"
        ["itemid"] => string(1) "1"
      }
    }
    ["action"] => string(6) "update"
    ["itemid"] => string(1) "1"
    ["_xfToken"] => string(8) "********"
    ["_xfRequestUri"] => string(56) "/forum/admin.php?dbtech-shop/item&action=modify&itemid=1"
    ["_xfNoRedirect"] => string(1) "1"
    ["_xfResponseType"] => string(4) "json"
    ["do"] => string(4) "item"
    ["id"] => int(0)
  }
}
 
Can you please double-check that you've not accidentally uploaded an older version, I've checked the files in the download and the code that caused this issue has been changed.
 
Can you please double-check that you've not accidentally uploaded an older version, I've checked the files in the download and the code that caused this issue has been changed.

It was definitely the new one. Downloaded Beta 1 again then uploaded it using Filezilla, overwritten the old files and did the xml upgrade. Could you show me the code difference on which file was causing the issue so I can double check?
 
Update: Sorry about that, updated the files again, lines 236 and 262 should both read
Code:
$users = DBTech_Shop_Application::getModelFromCache('Purchase')->getPurchases([
 
Hello triforceguy1,

This ticket has now been closed with the status Fixed.

We hope your issue or question has been addressed to your satisfaction. If not, please feel free to re-open it by clicking this link.

If you have any further issues or questions, please feel free to start a new support ticket via the button at the top of every page.

Thank you!
 
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,200
Customer rating
5.00 star(s) 3 ratings
Back
Top