What's new
Xen Factory

Register today to become a member! Once signed in, you'll be able to start purchasing our products, ask questions, request support and suggest new ideas!

  • We are aware that a no permission error was shown when you tried to purchase in the last 2 days, this is now fixed.

Bug Fixed [E_WARNING] Invalid argument supplied for foreach()


New Member
First of all, great to see this addon updated for 2.2!

However, I'm now getting the following error in the ACP:

[E_WARNING] Invalid argument supplied for foreach()
A moment ago src/addons/XFA/ForumSales/XF/Pub/Controller/Forum.php:27

Stack trace
#0 src/addons/XFA/ForumSales/XF/Pub/Controller/Forum.php(27): XF::handlePhpError(2, '[E_WARNING] Inv...', '/var/www/fdoc.c...', 27, Array)
#1 src/XF/Mvc/Dispatcher.php(350): XFA\ForumSales\XF\Pub\Controller\Forum->actionForum(Object(XF\Mvc\ParameterBag))
#2 src/XF/Mvc/Dispatcher.php(257): XF\Mvc\Dispatcher->dispatchClass('XF:Forum', 'Forum', Object(XF\Mvc\RouteMatch), Object(XFA\ForumSales\XF\Pub\Controller\Forum), Object(XF\Mvc\Reply\Reroute))
#3 src/XF/Mvc/Dispatcher.php(113): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XFA\ForumSales\XF\Pub\Controller\Forum), Object(XF\Mvc\Reply\Reroute))
#4 src/XF/Mvc/Dispatcher.php(55): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#5 src/XF/App.php(2300): XF\Mvc\Dispatcher->run()
#6 src/XF.php(465): XF\App->run()
#7 index.php(20): XF::runApp('XF\\Pub\\App')
#8 {main}

array(4) {
  ["url"] => string(38) "/forum/forums/parts-for-sale.17/page-2"
  ["referrer"] => string(50) "https://MYDOMAIN.co.uk/forum/forums/parts-for-sale.17/"
  ["_GET"] => array(0) {
  ["_POST"] => array(0) {


New Member
Getting same issue, have had to disable the add on for now as it breaks paging in forums.