1. April Fools Day Sale starting today through Sunday April 2nd.
    $15 discount on all licenses. $10 discount on 1 year support/downloads extensions.

    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.

Resolved AMS Server error 2.2 Beta

Discussion in 'AMS Support' started by Brad P, Aug 26, 2020.

  1. Brad P

    Brad P New Member AMS Premium Sportsbook

    Hi Bob,

    Can you help me on the server error below, is it something you can help me with.

    Server error log
    ErrorException: [E_WARNING] Declaration of XenAddons\AMS\FindNew\Article::filterResults(XF\Mvc\Entity\ArrayCollection $results) should be compatible with XF\FindNew\AbstractHandler::filterResults(XF\Mvc\Entity\AbstractCollection $results) src/addons/XenAddons/AMS/FindNew/Article.php:8
    Generated by: Brad P Aug 26, 2020 at 11:31 AM
    Stack trace
    #0 src/addons/XenAddons/AMS/FindNew/Article.php(8): XF::handlePhpError(2, '[E_WARNING] Dec...', '/home/allbhhrc/...', 8, Array)
    #1 src/vendor/composer/ClassLoader.php(444): include('/home/allbhhrc/...')
    #2 src/vendor/composer/ClassLoader.php(322): Composer\Autoload\includeFile('/home/allbhhrc/...')
    #3 [internal function]: Composer\Autoload\ClassLoader->loadClass('XenAddons\\AMS\\F...')
    #4 [internal function]: spl_autoload_call('XenAddons\\AMS\\F...')
    #5 src/XF/Repository/FindNew.php(72): class_exists('XenAddons\\AMS\\F...')
    #6 src/XF/ControllerPlugin/FindNew.php(87): XF\Repository\FindNew->getFindNewHandler('ams_article')
    #7 src/XF/Pub/Controller/AbstractWhatsNewFindType.php(20): XF\ControllerPlugin\FindNew->getFindNewHandler('ams_article')
    #8 src/XF/Mvc/Dispatcher.php(350): XF\Pub\Controller\AbstractWhatsNewFindType->actionIndex(Object(XF\Mvc\ParameterBag))
    #9 src/XF/Mvc/Dispatcher.php(257): XF\Mvc\Dispatcher->dispatchClass('XenAddons\\AMS:W...', 'Index', Object(XF\Mvc\RouteMatch), Object(XenAddons\AMS\Pub\Controller\WhatsNewArticle), NULL)
    #10 src/XF/Mvc/Dispatcher.php(113): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XenAddons\AMS\Pub\Controller\WhatsNewArticle), NULL)
    #11 src/XF/Mvc/Dispatcher.php(55): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
    #12 src/XF/App.php(2298): XF\Mvc\Dispatcher->run()
    #13 src/XF.php(464): XF\App->run()
    #14 index.php(20): XF::runApp('XF\\Pub\\App')
    #15 {main}
    Request state
    array(4) {
      ["url"] => string(31) "/whats-new/ams-articles/?skip=1"
      ["referrer"] => string(23) "https://chatbanter.com/"
      ["_GET"] => array(1) {
        ["skip"] => string(1) "1"
      ["_POST"] => array(0) {
  2. Bob

    Bob Developer Staff Member

    The issue is caused by a method signature change in the FindNew AbstractHandler (from using ArrayCollection to AbstractCollection): XF 2.2 - XF\FindNew\AbstractHandler->filterResults BC break - 2.2 Beta 4

    The BC (Backwards Compatibility) break (which was just released yesterday in XF 2.2.0 Beta 4) has already been addressed in the upcoming AMS 2.2.0 Beta 2 release. This effects any addon that implements FindNew handlers for content types (and all of my addons beta 2 versions already handle it).
    Brad P likes this.
  3. Brad P

    Brad P New Member AMS Premium Sportsbook

    Awesome thank you.
  4. Bob

    Bob Developer Staff Member

    Just released AMS 2.2.0 Beta 2 (as well as Sportsbook 2.2.0 Beta 2), which both addons fix the BC break with XF 2.2.0 Beta 4.
  5. Brad P

    Brad P New Member AMS Premium Sportsbook

    Perfect, working :)
    Bob 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.