Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Magento 2.4.6 di:compile error "Class "Zend\Uri\Uri" does not exist" #93

Open
lytesaber opened this issue Feb 7, 2024 · 3 comments
Open

Comments

@lytesaber
Copy link

  • Magento OS 2.4.6-p3
  • Zip Payments 1.2.3 (Latest Release)
  • PHP 8.1

Upon updating to the latest Magento Open Source 2.4.6 version getting the following error on di compile.

In ClassReader.php line 57: Impossible to process constructor argument Parameter #5 [ <required> Zend\Uri\Uri $zendUri ] of Zip\ZipPayment\Model\Config\HealthCheck class In GetParameterClassTrait.php line 34: Class "Zend\Uri\Uri" does not exist

As outlined in Adobe's 2.4.6 release notes:
https://experienceleague.adobe.com/docs/commerce-operations/release/notes/magento-open-source/2-4-6.html?lang=en)

Zend framework (ZF1) components that have reached end of life have been removed from the codebase.

The Zip module must migrate across to using supported Laminas library alternatives instead of ZF1.

@lytesaber
Copy link
Author

The temporary workaround is to update your composer.json to require "laminas/laminas-zendframework-bridge" which will get around that above di compile error. As of Magento 2.4.6 Adobe removed the Laminas Zend Framework bridge from the composer requires, hence the above error will occur until the Zip module is migrated over fully to using Laminas alternatives.

@fm-cl
Copy link

fm-cl commented Mar 22, 2024

Thank you, you solved my problem

@magenizr
Copy link

magenizr commented May 6, 2024

This has been fixed in 1.2.5 ( See dif 1.2.3...1.2.5 ) and is working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants