[BUG] Magento 2 eWay payment module breaks when upgrading to Magento > 2.4.6

[BUG] Magento 2 eWay payment module breaks when upgrading to Magento > 2.4.6

Oct 22, 2024 | Andrew Wilson

The M.D.G. IT support team have become aware of an issue with the eWay payment gateway module breaking on upgrade to Magento versions 2.4.6 and higher. The issue is recognisable by the following error being reported when running composer install:

Interface "Zend\Stdlib\JsonSerializable" not found

The issue has arisen as the eWay module relies on classes provided by the Zend framework, which has been discontinued and replaced by Laminas. The eWay module has subsequently been removed from the Magento marketplace while an updated version is being developed.

The ‘Laminas’ framework, which has replaced the functionality provided by Zend, has thankfully released a stop-gap fix which maps calls to the deprecated Zend classes to the Laminas equivalents. This resolves the above errors until the affected module is updated.

The fix can be installed simply by using composer to require the package in your Magento 2 project:

1 composer require laminas/laminas-zendframework-bridge

If you are experiencing the issue outlined above and have any problems applying the resolution, please get in touch with our support team.

You may also like: