We had this error again and again in the past, so I'm going to write a short post about it.
Where does this error come from?
I'm trying to confirm an order, Account, to print a delivery note or a credit note. I have the extension SNM PDF Print installiert, which generates my PDFs.
As soon as I try to print, I get the above error message
Exception:Required parameter ‘theme_dir’ was not passed
In my case I have three different websites. It works fine for two websites. But not with the third website. Here's the special feature, that we M2E-Pro use, to orders from Amazon / Synchronize eBay into the shop. So here seems to be the problem.
The first guess suggests, that it could be because of that, that no template has been defined for this website – unfortunately this is not the solution.
The following way solved it:
- /open vendor/m2epro/magento2-extension/Block/Adminhtml/Magento/Payment/Info.php and add the line $this->setData(‘area’, \MagentoFrameworkAppArea::AREA_ADMINHTML); comment out (by prefixing “//”)
- /vendor/m2epro/magento2-extension/view/adminhtml/templates/magento/order/payment/info.phtml kopieren
- Create the following path /vendor/m2epro/magento2-extension/view/frontend/templates/magento/order/payment and paste the just copied info.phtml
After reloading the cache everything worked fine.