Hi @Aveeva ,
I got the clue related to your error. In your custom module app/code/Magento/Ccavenuepay/Model/Order/OrderEmail.php
replace constructor code with this:
public function __construct( Template $templateContainer, OrderIdentity $identityContainer, \Magento\Sales\Model\Order\Email\SenderBuilderFactory $senderBuilderFactory, \Psr\Log\LoggerInterface $logger, Renderer $addressRenderer, PaymentHelper $paymentHelper, OrderResource $orderResource, \Magento\Framework\App\Config\ScopeConfigInterface $globalConfig, ManagerInterface $eventManager ) { parent::__construct($templateContainer, $identityContainer, $senderBuilderFactory, $logger, $addressRenderer, $paymentHelper, $orderResource, $globalConfig, $eventManager); $this->orderResource = $orderResource; $this->globalConfig = $globalConfig; // $writer = new \Zend\Log\Writer\Stream(BP . '/var/log/test.log'); // $this->logger = new \Zend\Log\Logger(); // $this->logger->addWriter($writer); // $this->logger->info("__construct OrderEmail"); }
In the constructor file, you were writing one custom log file which I don't feel is much necessary and due to which we are getting this issue.
Clean the Magento cache after that in the admin.
Hope this helps you!
Problem Solved! Click Kudos & Accept as Solution!