Issue:
I am trying to upgrade two completely separate websites to Magento 2.3.6. I have performed the upgrades but upon running setup:di:compile I am getting the following error
Errors during compilation:
Bss\CheckoutCustomField\Model\Plugin\Sales\Order\Pdf\Creditmemo
Incompatible argument type: Required type: \Magento\Store\Model\App\Emulation. Actual type: \Magento\Framework\Locale\ResolverInterface; File:
/chroot/home/magetwo/mage2.energyconservatory.com/html/vendor/bsscommerce/checkoutcustomfield/Model/Plugin/Sales/Order/Pdf/Creditmemo.php
Bss\CheckoutCustomField\Model\Plugin\Sales\Order\Pdf\Invoice
Incompatible argument type: Required type: \Magento\Store\Model\App\Emulation. Actual type: \Magento\Framework\Locale\ResolverInterface; File:
/chroot/home/magetwo/mage2.energyconservatory.com/html/vendor/bsscommerce/checkoutcustomfield/Model/Plugin/Sales/Order/Pdf/Invoice.php
Bss\CheckoutCustomField\Model\Plugin\Sales\Order\Pdf\Shipment
Incompatible argument type: Required type: \Magento\Store\Model\App\Emulation. Actual type: \Magento\Framework\Locale\ResolverInterface; File:
/chroot/home/magetwo/mage2.energyconservatory.com/html/vendor/bsscommerce/checkoutcustomfield/Model/Plugin/Sales/Order/Pdf/Shipment.php
Total Errors Count: 3
In Log.php line 92:
Error during compilation
setup:di:compile
Solution:
The issue is caused due to our module's bug when the class __construct is not compatible with Magento 2.3.6 (as well as Magento 2.4.0) at this time.
app/code/Bss/CheckoutCustomField/Model/Plugin/Sales/Order/Pdf/Invoice.php
app/code/Bss/CheckoutCustomField/Model/Plugin/Sales/Order/Pdf/Shipment.php
Please check and apply the attachment files on your site.
If you need any further support, please feel free to contact us.
We are always willing to help you.
Reach us now!!
BSS Commerce is a full-service ecommerce agency with 14+ years of experience, supporting 75,000+ customers worldwide. As an Adobe Commerce Solution Bronze Partner and Select Magento Extensions Builder, we deliver trusted end-to-end solutions.
Our core strength is Magento, with 150+ extensions designed to enhance store performance and drive growth. With deep expertise from years of working on Magento websites, we deliver scalable, high-impact solutions backed by strong client trust.
Discover our extensions: https://bsscommerce.com/magento-2-extensions.html
Our Magento B2B Extension by BSS Commerce is a flagship, widely used global solution, providing an all-in-one system for pricing, account management, and efficient B2B workflows.
Please don't hesitate to contact us if you need any further support.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article