Skip to content

Error with PHP 8.2 (Shopware 5.7.18 / Mollie 2.7.1) #429

@davidsberlin

Description

@davidsberlin

When switching to PHP 8, i get this error on one of my subshops landingpage:

Fatal error: Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array, null given in /myPath/custom/plugins/MollieShopware/Components/Country/CountryIsoParser.php:18 Stack trace: #0 /myPath/custom/plugins/MollieShopware/Components/Country/CountryIsoParser.php(18): array_key_exists() #1 /myPath/custom/plugins/MollieShopware/Components/ApplePayDirect/Services/ApplePayButtonBuilder.php(104): MollieShopware\Components\Country\CountryIsoParser->getISO() #2 /myPath/custom/plugins/MollieShopware/Subscriber/ApplePayDirectSubscriber.php(92): MollieShopware\Components\ApplePayDirect\Services\ApplePayButtonBuilder->addButtonStatus() #3 /myPath/engine/Library/Enlight/Event/Handler/Default.php(90): MollieShopware\Subscriber\ApplePayDirectSubscriber->onFrontendPostDispatch() #4 /myPath/engine/Library/Enlight/Event/EventManager.php(207): Enlight_Event_Handler_Default->execute() #5 /myPath/engine/Library/Enlight/Controller/Action.php(224): Enlight_Event_EventManager->notify() #6 /myPath/engine/Library/Enlight/Controller/Dispatcher/Default.php(467): Enlight_Controller_Action->dispatch() #7 /myPath/engine/Library/Enlight/Controller/Front.php(226): Enlight_Controller_Dispatcher_Default->dispatch() #8 /myPath/engine/Shopware/Kernel.php(195): Enlight_Controller_Front->dispatch() #9 /myPath/vendor/symfony/http-kernel/HttpCache/SubRequestHandler.php(85): Shopware\Kernel->handle() #10 /myPath/vendor/symfony/http-kernel/HttpCache/HttpCache.php(479): Symfony\Component\HttpKernel\HttpCache\SubRequestHandler::handle() #11 /myPath/engine/Shopware/Components/HttpCache/AppCache.php(270): Symfony\Component\HttpKernel\HttpCache\HttpCache->forward() #12 /myPath/vendor/symfony/http-kernel/HttpCache/HttpCache.php(452): Shopware\Components\HttpCache\AppCache->forward() #13 /myPath/vendor/symfony/http-kernel/HttpCache/HttpCache.php(346): Symfony\Component\HttpKernel\HttpCache\HttpCache->fetch() #14 /myPath/engine/Shopware/Components/HttpCache/AppCache.php(196): Symfony\Component\HttpKernel\HttpCache\HttpCache->lookup() #15 /myPath/vendor/symfony/http-kernel/HttpCache/HttpCache.php(224): Shopware\Components\HttpCache\AppCache->lookup() #16 /myPath/engine/Shopware/Components/HttpCache/AppCache.php(117): Symfony\Component\HttpKernel\HttpCache\HttpCache->handle() #17 /myPath/shopware.php(122): Shopware\Components\HttpCache\AppCache->handle() #18 {main} thrown in /myPath/custom/plugins/MollieShopware/Components/Country/CountryIsoParser.php on line 18

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions