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 Compatibility #5

Open
drinkingsouls opened this issue Mar 24, 2023 · 0 comments
Open

Magento 2.4.6 Compatibility #5

drinkingsouls opened this issue Mar 24, 2023 · 0 comments

Comments

@drinkingsouls
Copy link

Depreciation of Zend Framework in Magento 2.4.6

Error: Class "Zend_Date" not found in /home/storm/sites/design-a-cake-com/public/app/code/Xigen/NewProduct/Model/Layer.php:79

Added on line 9:
use DateTime;

Line 80 change:
$date = new \Zend_Date();
to
$date = new DateTime();

This seems to get the module to function. I am aware of other Zend references present such as Zend_Db_Expr that will probably need to be changed going forward.

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

1 participant