Hello Everyone,
In this blog, we will learn to Fix Zend Class Not Found – related Issues.
On March 14, 2023, Adobe launched Magento 2.4.6. This update came with over 300 quality fixes.
This Issue occurs after upgrading to Magento 2.4.6 because Magento deprecated the Zend framework.
Zend classes are replaced with the Laminas.
Without wasting your time, let us guide you straight away. Follow the easy steps given below to Solve the Class Zend Not Found Error in Magento 2.
STEPS FOR CLASS ZEND NOT FOUND ERROR SOLVE IN MAGENTO 2
Some of the Common Error Messages of the “Class Zend Not Found”
- Error: Class Zend_Json not found.
- Error: Class Zend_Http_Client not found.
- Error: Class Zend_Validate not found.
- Error: Class Zend_Filter not found.
Use the below Solution to Solve the Class Zend not found Error in Magento 2.
Step 1: Install Laminas
Install Laminas in Magento 2. Hit the below command in your terminal.
composer require laminas/laminas-serializer
Step 2: Replace Zend class with Laminas
Open the .phtml file where you face the “Class Zend Not Found” error.
Find and replace Zend Class with Laminas.
Use the below Class for replacement.
- \Zend_Json => \Laminas\Json\Json
- \Zend_HTTP => laminas-http
- \Zend_Http_Client::POST => \Laminas\Http\Request::METHOD_POST
- \Zend_Http_Client::GET => \Laminas\Http\Request::METHOD_GET
- \Zend_Filter => laminas-filter
- \Zend_Validate => laminas-validator
Final Thoughts:
So this was the easiest way which we have told you in this blog. This is how you can Solve Error Class Zend Not Found in Magento 2. Hope you liked the blog.
So quickly go to the comment box and tell me how you like this blog.
Stay tuned with us on our site to get new updates on Magento.
Thanks for reading and visiting our site.