• REGISTRATION REQUIREMENTS:

    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

Status
Not open for further replies.

gemma

New Member
AMS Premium
CAS Premium
IMS Premium
LD Premium
RMS Premium
SC Premium
UBS Premium
Pick'em
Sportsbook
Getting this error when trying to permanently delete an event
ErrorException: [E_USER_WARNING] Accessed unknown getter 'article_id' on XenAddons\Sportsbook:EventItem[21] in src/XF/Mvc/Entity/Entity.php at line 199
  1. XF::handlePhpError()
  2. trigger_error() in src/XF/Mvc/Entity/Entity.php at line 199
  3. XF\Mvc\Entity\Entity->get() in src/XF/Mvc/Entity/Entity.php at line 110
  4. XF\Mvc\Entity\Entity->__get() in src/addons/XenAddons/Sportsbook/Entity/EventItem.php at line 1158
  5. XenAddons\Sportsbook\Entity\EventItem->_postDelete() in src/XF/Mvc/Entity/Entity.php at line 1648
  6. XF\Mvc\Entity\Entity->delete() in src/addons/XenAddons/Sportsbook/Service/EventItem/Delete.php at line 63
  7. XenAddons\Sportsbook\Service\EventItem\Delete->delete() in src/addons/XenAddons/Sportsbook/InlineMod/EventItem/Delete.php at line 33
  8. XenAddons\Sportsbook\InlineMod\EventItem\Delete->applyToEntity() in src/XF/InlineMod/AbstractAction.php at line 87
  9. XF\InlineMod\AbstractAction->applyInternal() in src/XF/InlineMod/AbstractAction.php at line 80
  10. XF\InlineMod\AbstractAction->apply() in src/XF/Pub/Controller/InlineMod.php at line 131
  11. XF\Pub\Controller\InlineMod->actionPerform() in src/XF/Mvc/Dispatcher.php at line 350
  12. XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 257
  13. XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 113
  14. XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 55
  15. XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2298
  16. XF\App->run() in src/XF.php at line 464
  17. XF::runApp() in index.php at line 19

Running Xf 2.2 b4 and Sportsbook 2.20 b2
 
Accessed unknown getter 'article_id'

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 :)
 
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"
}
}
 
Status
Not open for further replies.
Back
Top