cancel
Showing results for 
Search instead for 
Did you mean: 

Error when creating new status

Error when creating new status

Hi folks,

 

I hope someone can point me in the right direction here. I'm trying to create a new status from the admin area and came up with the following error:

 

a:4:{i:0;s:164:"Warning: Invalid argument supplied for foreach() in /www/www.xxx.xxx/htdocs.v8/vendor/magento/module-sales/Controller/Adminhtml/Order/Status/Save.php on line 32";i:1;s:6160:"#0 /www/www.xxx.xxx/htdocs.v8/vendor/magento/module-sales/Controller/Adminhtml/Order/Status/Save.php(32): Magento\Framework\App\ErrorHandler->handler(2, 'Invalid argumen...', '/www/www.xxx.xxx...', 32, Array)
#1 /www/www.xxx.xxx/htdocs.v8/var/generation/Magento/Sales/Controller/Adminhtml/Order/Status/Save/Interceptor.php(24): Magento\Sales\Controller\Adminhtml\Order\Status\Save->execute()
#2 /www/www.xxx.xxx/htdocs.v8/vendor/magento/framework/App/Action/Action.php(102): Magento\Sales\Controller\Adminhtml\Order\Status\Save\Interceptor->execute()
#3 /www/www.xxx.xxx/htdocs.v8/vendor/magento/module-backend/App/AbstractAction.php(226): Magento\Framework\App\Action\Action->dispatch(Object(Magento\Framework\App\Request\Http))
#4 [internal function]: Magento\Backend\App\AbstractAction->dispatch(Object(Magento\Framework\App\Request\Http))
#5 /www/www.xxx.xxx/htdocs.v8/vendor/magento/framework/Interception/Interceptor.php(74): call_user_func_array(Array, Array)
#6 /www/www.xxx.xxx/htdocs.v8/vendor/magento/framework/Interception/Chain/Chain.php(70): Magento\Sales\Controller\Adminhtml\Order\Status\Save\Interceptor->___callParent('dispatch', Array)
#7 /www/www.xxx.xxx/htdocs.v8/vendor/magento/framework/Interception/Chain/Chain.php(63): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\\Sales\\C...', 'dispatch', Object(Magento\Sales\Controller\Adminhtml\Order\Status\Save\Interceptor), Array, 'adminAuthentica...')
#8 /www/www.xxx.xxx/htdocs.v8/vendor/magento/module-backend/App/Action/Plugin/Authentication.php(143): Magento\Framework\Interception\Chain\Chain->Magento\Framework\Interception\Chain\{closure}(Object(Magento\Framework\App\Request\Http))
#9 [internal function]: Magento\Backend\App\Action\Plugin\Authentication->aroundDispatch(Object(Magento\Sales\Controller\Adminhtml\Order\Status\Save\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#10 /www/www.xxx.xxx/htdocs.v8/vendor/magento/framework/Interception/Chain/Chain.php(68): call_user_func_array(Array, Array)
#11 /www/www.xxx.xxx/htdocs.v8/vendor/magento/framework/Interception/Chain/Chain.php(63): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\\Sales\\C...', 'dispatch', Object(Magento\Sales\Controller\Adminhtml\Order\Status\Save\Interceptor), Array, 'designLoader')
#12 /www/www.xxx.xxx/htdocs.v8/vendor/magento/framework/App/Action/Plugin/Design.php(39): Magento\Framework\Interception\Chain\Chain->Magento\Framework\Interception\Chain\{closure}(Object(Magento\Framework\App\Request\Http))
#13 [internal function]: Magento\Framework\App\Action\Plugin\Design->aroundDispatch(Object(Magento\Sales\Controller\Adminhtml\Order\Status\Save\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#14 /www/www.xxx.xxx/htdocs.v8/vendor/magento/framework/Interception/Chain/Chain.php(68): call_user_func_array(Array, Array)
#15 /www/www.xxx.xxx/htdocs.v8/vendor/magento/framework/Interception/Interceptor.php(136): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\\Sales\\C...', 'dispatch', Object(Magento\Sales\Controller\Adminhtml\Order\Status\Save\Interceptor), Array, 'adminMassaction...')
#16 /www/www.xxx.xxx/htdocs.v8/vendor/magento/module-backend/App/Action/Plugin/MassactionKey.php(33): Magento\Sales\Controller\Adminhtml\Order\Status\Save\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http))
#17 [internal function]: Magento\Backend\App\Action\Plugin\MassactionKey->aroundDispatch(Object(Magento\Sales\Controller\Adminhtml\Order\Status\Save\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#18 /www/www.xxx.xxx/htdocs.v8/vendor/magento/framework/Interception/Interceptor.php(141): call_user_func_array(Array, Array)
#19 /www/www.xxx.xxx/htdocs.v8/var/generation/Magento/Sales/Controller/Adminhtml/Order/Status/Save/Interceptor.php(39): Magento\Sales\Controller\Adminhtml\Order\Status\Save\Interceptor->___callPlugins('dispatch', Array, Array)
#20 /www/www.xxx.xxx/htdocs.v8/vendor/magento/framework/App/FrontController.php(55): Magento\Sales\Controller\Adminhtml\Order\Status\Save\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))
#21 [internal function]: Magento\Framework\App\FrontController->dispatch(Object(Magento\Framework\App\Request\Http))
#22 /www/www.xxx.xxx/htdocs.v8/vendor/magento/framework/Interception/Interceptor.php(74): call_user_func_array(Array, Array)
#23 /www/www.xxx.xxx/htdocs.v8/vendor/magento/framework/Interception/Chain/Chain.php(70): Magento\Framework\App\FrontController\Interceptor->___callParent('dispatch', Array)
#24 /www/www.xxx.xxx/htdocs.v8/vendor/magento/framework/Interception/Interceptor.php(136): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\\Framewo...', 'dispatch', Object(Magento\Framework\App\FrontController\Interceptor), Array, 'install')
#25 /www/www.xxx.xxx/htdocs.v8/vendor/magento/framework/Module/Plugin/DbStatusValidator.php(69): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http))
#26 [internal function]: Magento\Framework\Module\Plugin\DbStatusValidator->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#27 /www/www.xxx.xxx/htdocs.v8/vendor/magento/framework/Interception/Interceptor.php(141): call_user_func_array(Array, Array)
#28 /www/www.xxx.xxx/htdocs.v8/var/generation/Magento/Framework/App/FrontController/Interceptor.php(26): Magento\Framework\App\FrontController\Interceptor->___callPlugins('dispatch', Array, Array)
#29 /www/www.xxx.xxx/htdocs.v8/vendor/magento/framework/App/Http.php(115): Magento\Framework\App\FrontController\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))
#30 /www/www.xxx.xxx/htdocs.v8/vendor/magento/framework/App/Bootstrap.php(258): Magento\Framework\App\Http->launch()
#31 /www/www.xxx.xxx/htdocs.v8/index.php(39): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http))

I'm new in general with Magento (2x), and I'm not sure where to go from here. Anything I can take a look at?

1 REPLY

Re: Error when creating new status

Disregard. I only get this error if the the store is in SSM.