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

Error after upgrading to Magento 2.4.4 #67

Open
ganeddact opened this issue May 26, 2022 · 3 comments
Open

Error after upgrading to Magento 2.4.4 #67

ganeddact opened this issue May 26, 2022 · 3 comments

Comments

@ganeddact
Copy link

ganeddact commented May 26, 2022

Hi, after upgrading to Magento 2.4.4 with php 8.1, and pulling the latest Zip module code from composer, I get this error

Exception #0 (Exception): Deprecated Functionality: preg_replace(): Passing null to parameter 3 ($subject) of type array|string is deprecated in /magento/vendor/zip/magento2/Model/Config.php on line 384
1 preg_replace() called at [vendor/zip/magento2/Model/Config.php:384]
2 Zip\ZipPayment\Model\Config->getValue() called at [vendor/zip/magento2/Model/Config.php:368]

Does the composer module need to be updated to be compatible with 2.4.4? If so, has the update been scheduled yet?

ps I tried also to contact from the support link on Magento marketplace but the email does not get delivered.

@aligent-lturner
Copy link

Further to this, bin/magento setup:di:compile" produces other compatibility errors:

Fatal error: During inheritance of ArrayAccess: Uncaught Exception: Deprecated Functionality: Return type of Zip\ZipPayment\MerchantApi\Lib\Model\Authority::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /app/vendor/zip/magento2/MerchantApi/Lib/Model/Authority.php on line 210 in /app/vendor/magento/framework/App/ErrorHandler.php:61


Fatal error: During inheritance of ArrayAccess: Uncaught Exception: Deprecated Functionality: Return type of Zip\ZipPayment\MerchantApi\Lib\Model\Authority::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /app/vendor/zip/magento2/MerchantApi/Lib/Model/Authority.php on line 220 in /app/vendor/magento/framework/App/ErrorHandler.php:61


Fatal error: During inheritance of ArrayAccess: Uncaught Exception: Deprecated Functionality: Return type of Zip\ZipPayment\MerchantApi\Lib\Model\Authority::offsetSet($offset, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /app/vendor/zip/magento2/MerchantApi/Lib/Model/Authority.php on line 231 in /app/vendor/magento/framework/App/ErrorHandler.php:61


Fatal error: During inheritance of ArrayAccess: Uncaught Exception: Deprecated Functionality: Return type of Zip\ZipPayment\MerchantApi\Lib\Model\Authority::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /app/vendor/zip/magento2/MerchantApi/Lib/Model/Authority.php on line 245 in /app/vendor/magento/framework/App/ErrorHandler.php:61

The above errors are not the only ones - every class implementing ArrayAccess needs to be updated

@mahbub-zip
Copy link
Contributor

Hey @aligent-lturner ,
Please let install our latest plugin which is supporting php 8.1
Thanks
Mahbub

@athira-weforce
Copy link

athira-weforce commented Jul 5, 2022

Is your latest version 1.1.2 compatible with Adobe Commerce Magento 2.4.4?

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

4 participants