Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error saving new order status in backend #4146

Closed
jaimestuardo opened this issue Apr 13, 2016 · 9 comments
Closed

Error saving new order status in backend #4146

jaimestuardo opened this issue Apr 13, 2016 · 9 comments
Assignees
Labels
bug report Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development

Comments

@jaimestuardo
Copy link

When going to order status page in backend, and then create a new status, I tried to add "Delivered" state, so I entered "delivered" in code and "Delivered" in label. After pressing "Save Status" button, this error is shown:

Warning: Invalid argument supplied for foreach() in /home/depasa/public_html/vendor/magento/module-sales/Controller/Adminhtml/Order/Status/Save.php on line 32
#0 /home/depasa/public_html/vendor/magento/module-sales/Controller/Adminhtml/Order/Status/Save.php(32): Magento\Framework\App\ErrorHandler->handler(2, 'Invalid argumen...', '/home/depasa/pu...', 32, Array)
#1 /home/depasa/public_html/var/generation/Magento/Sales/Controller/Adminhtml/Order/Status/Save/Interceptor.php(24): Magento\Sales\Controller\Adminhtml\Order\Status\Save->execute()
#2 /home/depasa/public_html/vendor/magento/framework/App/Action/Action.php(102): Magento\Sales\Controller\Adminhtml\Order\Status\Save\Interceptor->execute()
#3 /home/depasa/public_html/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 /home/depasa/public_html/vendor/magento/framework/Interception/Interceptor.php(74): call_user_func_array(Array, Array)
#6 /home/depasa/public_html/vendor/magento/framework/Interception/Chain/Chain.php(70): Magento\Sales\Controller\Adminhtml\Order\Status\Save\Interceptor->___callParent('dispatch', Array)
#7 /home/depasa/public_html/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 /home/depasa/public_html/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 /home/depasa/public_html/vendor/magento/framework/Interception/Chain/Chain.php(68): call_user_func_array(Array, Array)
#11 /home/depasa/public_html/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 /home/depasa/public_html/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 /home/depasa/public_html/vendor/magento/framework/Interception/Chain/Chain.php(68): call_user_func_array(Array, Array)
#15 /home/depasa/public_html/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 /home/depasa/public_html/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 /home/depasa/public_html/vendor/magento/framework/Interception/Interceptor.php(141): call_user_func_array(Array, Array)
#19 /home/depasa/public_html/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 /home/depasa/public_html/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 /home/depasa/public_html/vendor/magento/framework/Interception/Interceptor.php(74): call_user_func_array(Array, Array)
#23 /home/depasa/public_html/vendor/magento/framework/Interception/Chain/Chain.php(70): Magento\Framework\App\FrontController\Interceptor->___callParent('dispatch', Array)
#24 /home/depasa/public_html/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 /home/depasa/public_html/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 /home/depasa/public_html/vendor/magento/framework/Interception/Interceptor.php(141): call_user_func_array(Array, Array)
#28 /home/depasa/public_html/var/generation/Magento/Framework/App/FrontController/Interceptor.php(26): Magento\Framework\App\FrontController\Interceptor->___callPlugins('dispatch', Array, Array)
#29 /home/depasa/public_html/vendor/magento/framework/App/Http.php(115): Magento\Framework\App\FrontController\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))
#30 /home/depasa/public_html/vendor/magento/framework/App/Bootstrap.php(258): Magento\Framework\App\Http->launch()
#31 /home/depasa/public_html/index.php(39): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http))
#32 {main}

@NadiyaS
Copy link
Contributor

NadiyaS commented Apr 19, 2016

Hi @jaimestuardo ,

this bug is not reproducible on latest magento version. Please upgrade your magento version.
If you still have the same problem, please provide more detailed steps to reproduce.

Regards

@jaimestuardo
Copy link
Author

The problem is that I cannot upgrade because of another bug in update system. However, I have 2.0.2. Do you reallythink this is the cause?

@jaimestuardo
Copy link
Author

I have upgraded to version 2.0.4 but the same error occurs.

@piotrekkaminski
Copy link
Contributor

We cannot reproduce on latest develop version. Are you able to check there as well? Is it reproducible in vanilla installation?

@nsergo
Copy link

nsergo commented Jun 7, 2016

I get this error when Single-Store Mode is turned on, but it's fine if it's turned off. Version is 2.0.7

@jaimestuardo
Copy link
Author

@nsergo Thanks!! I have turned Single Store mode off and it worked! What is really the difference if that setting is off or on?

@piotrekkaminski Can you try to reproduce it by turning that settng on?

@NadiyaS
Copy link
Contributor

NadiyaS commented Jun 10, 2016

Hi @jaimestuardo , @nsergo ,
thank you for this additional condition.
Internal ticket MAGETWO-54191 was created to track this issue.

@NadiyaS NadiyaS added Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development bug report and removed Progress: needs update labels Jun 10, 2016
@NadiyaS
Copy link
Contributor

NadiyaS commented Jun 21, 2016

Hi,
the fix was delivered to develop branch 6176951
The issue is closed as resolved.

@NadiyaS NadiyaS closed this as completed Jun 21, 2016
@dferramosi
Copy link

I am sorry to add to a closed issue, but I am getting this in 2.0.10 - any recommendations? (I do have single store mode on)

magento-engcom-team pushed a commit that referenced this issue May 3, 2019
Fixed issues:
  - MC-16046: Leverage the font-display CSS feature to ensure text is user-visible while webfonts are loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug report Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development
Projects
None yet
Development

No branches or pull requests

6 participants