1

I'm sending shipment using below code

magento\vendor\magento\module-shipping\Controller\Adminhtml\Order\Shipment\Save.php

$this->shipmentSender->send($shipment);

Error

Fatal error: Uncaught exception 'BadMethodCallException' with message 'Missing required argument $debugHintsPath of Magento\Developer\Model\TemplateEngine\Plugin\DebugHints.' in D:\wamp\www\
magento\vendor\magento\framework\ObjectManager\Factory\Dynamic\Developer.php:45
Stack trace:
#0 D:\wamp\www\magento\vendor\magento\framework\ObjectManager\Factory\Dynamic\Developer.php(82): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->_resolveArguments('Magento\\
Develop...', Array, Array)
#1 D:\wamp\www\magento\vendor\magento\framework\ObjectManager\ObjectManager.php(71): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create('Magento\\Develop...')
#2 D:\wamp\www\magento\vendor\magento\framework\Interception\PluginList\PluginList.php(233): Magento\Framework\ObjectManager\ObjectManager->get('Magento\\Develop...')
#3 D:\wamp\www\magento\vendor\magento\framework\Interception\Interceptor.php(151): Magento\Framework\Interception\PluginList\PluginList->getPlugin('Magento\\Framewo...', 'd in D:\wamp\
www\magento\vendor\magento\framework\ObjectManager\Factory\Dynamic\Developer.php on line 45

Withing Magento I'm not getting any issue. I'm making my custom script in only that I'm getting this error.

marked as duplicate by Ankit Shah, Community May 16 '17 at 8:01

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

-2

According to the code you shared, it seems that you have syntax error, it should be:
$this->shipmentSender->send($shipment);

  • It's typo mistake – Ankit Shah May 16 '17 at 6:26

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