0

I went under Stores -> Order Status -> Create New Status, and when inputting a Stautus Code and Status Label, I get the following error:

Warning: Invalid argument supplied for foreach() in /home/fendow/public_html/vendor/magento/module-sales/Controller/Adminhtml/Order/Status/Save.php on line 32

Can someone please give me a hint as to what the reason for this might be?

1 Answer 1

0

This error will only happen when in Single-Store Mode.

  1. Switch out by going to Stores > Configuration > General and setting "Enable Single-Store Mode" to "No".
  2. Create your new status and assign to an order state.
  3. Go back and set "Enable Single-Store Mode" to "Yes".

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.