• Resolved smeedijzeronline

    (@smeedijzeronline)


    Hi,

    I’m using PHP 8 and get an error trying to set the API-key in settings panel:

    development.ERROR: foreach() argument must be of type array|object, null given {"userId":***,"exception":"[object] (ErrorException(code: 0): foreach() argument must be of type array|object, null given at /srv/www/***/current/web/app/plugins/laposta-signup-basic/templates/settings/settings.php:60)

    I think line 42 should be changed form null to [] in: plugins/laposta-signup-basic/src/Controller/SettingsController.php
    $lists = $apiKey ? $dataService->getLists() : [];

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘foreach() argument must be of type array|object’ is closed to new replies.