Your username here MUST MATCH your XenForo username (connected to your XF license).

    Once you have registered here, then you need to start a conversation at xenforo.com w/Bob and provide the following:
    1. Your XenForo License Validation Token
    2. The Domain Name associated with the License
    NOTE: Your account will be validated once ALL requirements are verified/met. Thank you for your patience.

Fixed Error When Deleting An Event

Discussion in 'Sportsbook Resolved Bug Reports' started by gemma, Aug 26, 2020.

  1. gemma

    gemma New Member AMS Premium CAS Premium IMS Premium LD Premium RMS Premium SC Premium UBS Premium Pickem Sportsbook

    Getting this error when trying to permanently delete an event
    Running Xf 2.2 b4 and Sportsbook 2.20 b2
    McAtze likes this.
  2. Bob

    Bob Developer Staff Member

    Must be something feature related to AMS that I added to Sportsbook recently and missed changing article_id to event_id.

    Thank you for finding this! I'll get it sorted in the next beta :)
  3. Bob

    Bob Developer Staff Member

    BOOM! That was it... is from the new Custom Fields functionality that I just added.... NICE FIND!
    gemma and McAtze like this.
  4. HammerDown

    HammerDown New Member Pickem Sportsbook

    Just got this last night.

    • InvalidArgumentException: Accessed unknown getter 'article_id' on XenAddons\Sportsbook:EventItem[8]
    • src/XF/Mvc/Entity/Entity.php:203
    • Generated by: gobigred
    • Aug 28, 2020 at 3:57 PM
    Stack trace
    #0 src/XF/Mvc/Entity/Entity.php(110): XF\Mvc\Entity\Entity->get('article_id')
    #1 src/addons/XenAddons/Sportsbook/Entity/EventItem.php(1158): XF\Mvc\Entity\Entity->__get('article_id')
    #2 src/XF/Mvc/Entity/Entity.php(1648): XenAddons\Sportsbook\Entity\EventItem->_postDelete()
    #3 src/addons/XenAddons/Sportsbook/Service/EventItem/Delete.php(63): XF\Mvc\Entity\Entity->delete()
    #4 src/addons/XenAddons/Sportsbook/Pub/Controller/EventItem.php(1185): XenAddons\Sportsbook\Service\EventItem\Delete->delete('hard', '')
    #5 src/XF/Mvc/Dispatcher.php(350): XenAddons\Sportsbook\Pub\Controller\EventItem->actionDelete(Object(XF\Mvc\ParameterBag))
    #6 src/XF/Mvc/Dispatcher.php(257): XF\Mvc\Dispatcher->dispatchClass('XenAddons\\Sport...', 'Delete', Object(XF\Mvc\RouteMatch), Object(XenAddons\Sportsbook\Pub\Controller\EventItem), NULL)
    #7 src/XF/Mvc/Dispatcher.php(113): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XenAddons\Sportsbook\Pub\Controller\EventItem), NULL)
    #8 src/XF/Mvc/Dispatcher.php(55): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
    #9 src/XF/App.php(2298): XF\Mvc\Dispatcher->run()
    #10 src/XF.php(464): XF\App->run()
    #11 index.php(20): XF::runApp('XF\\Pub\\App')
    #12 {main}
    Request state
    array(4) {
    ["url"] => string(25) "/sportsbook/test.8/delete"
    ["referrer"] => string(43) "https://hooplanation.com/sportsbook/test.8/"
    ["_GET"] => array(0) {
    ["_POST"] => array(5) {
    ["hard_delete"] => string(1) "1"
    ["_xfToken"] => string(8) "********"
    ["_xfRequestUri"] => string(19) "/sportsbook/test.8/"
    ["_xfWithData"] => string(1) "1"
    ["_xfResponseType"] => string(4) "json"
  5. Bob

    Bob Developer Staff Member

    @HammerDown this has already been reported and fixed in the next release. I've moved your post into the resolved bug report.
    HammerDown likes this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.