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

Deprecated Functionality: str_replace(): Passing null to parameter #3 ($subject) ... #583

Open
MarcusSchwarz opened this issue Feb 14, 2025 · 1 comment

Comments

@MarcusSchwarz
Copy link

Hi,

we activated AmazonPay in the module. Now I get this error:

Exception #0 (Exception): Deprecated Functionality: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in .../project/src/vendor/payone-gmbh/magento-2/Model/Methods/AmazonPayV2.php on line 126
<pre>#1 str_replace() called at [vendor/payone-gmbh/magento-2/Model/Methods/AmazonPayV2.php:126]
#2 Payone\Core\Model\Methods\AmazonPayV2->getButtonLanguage() called at [generated/code/Payone/Core/Model/Methods/AmazonPayV2/Interceptor.php:59]
#3 Payone\Core\Model\Methods\AmazonPayV2\Interceptor->getButtonLanguage() called at [vendor/payone-gmbh/magento-2/Model/Methods/AmazonPayV2.php:240]
#4 Payone\Core\Model\Methods\AmazonPayV2->getFrontendConfig() called at [generated/code/Payone/Core/Model/Methods/AmazonPayV2/Interceptor.php:113]
#5 Payone\Core\Model\Methods\AmazonPayV2\Interceptor->getFrontendConfig() called at [vendor/payone-gmbh/magento-2/Model/ConfigProvider.php:307]
#6 Payone\Core\Model\ConfigProvider->getConfig() called at [vendor/magento/module-checkout/Model/CompositeConfigProvider.php:39]
#7 Magento\Checkout\Model\CompositeConfigProvider->getConfig() called at [vendor/hyva-themes/magento2-theme-module/src/ViewModel/Cart/CheckoutConfig.php:42]
#8 Hyva\Theme\ViewModel\Cart\CheckoutConfig->getCheckoutConfig() called at [vendor/hyva-themes/magento2-theme-module/src/ViewModel/Cart/CheckoutConfig.php:52]
composer show payone-gmbh/magento-2                                                                              name     : payone-gmbh/magento-2
descrip. : PAYONE payment gateway for all German online and offline payment methods including PayPal, all major Credit Cards and Maestro.
keywords : 
versions : * 3.13.2
php -v                                                                                                                       PHP 8.2.27 (cli) (built: Jan  2 2025 15:36:15) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.2.27, Copyright (c) Zend Technologies
    with Zend OPcache v8.2.27, Copyright (c), by Zend Technologies
    with Xdebug v3.4.1, Copyright (c) 2002-2025, by Derick Rethans
@janteuber
Copy link
Contributor

Hello @MarcusSchwarz ,

I have forwarded the case to our developer. We will get back to you as soon as we have any updates.

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

2 participants