You can use this grep command to find the submitShipment
function in your project: grep -r submitShipment <your project path
. If your project path is ~/Sites/magento244, the command will be: grep -r submitShipment ~/Sites/magento244
.
You will see 2 files that contain the submitShipment
word:
- vendor/magento/module-shipping/view/adminhtml/templates/create/items.phtml
- vendor/magento/module-shipping/Block/Adminhtml/Create/Items.php
The file declare the submitShipment
function is vendor/magento/module-shipping/view/adminhtml/templates/create/items.phtml
Try to remove the vendor
folder and run the following commands, then check if your issues were resolved or not:
composer install
bin/magento setup:upgrade
bin/magento setup:di:compile
You may need to re-generate static content by command: bin/magento setup:static-content:deploy