Details
Description
TheSSLStore module performs some requests with the API, but returns the wrong expected type if the API cannot connect successfully.
For example, if the API credentials are invalid, but you try to create a new package, when you choose the SSLStore from the list, the module options will fail to load due to an error:
Invalid argument supplied for foreach() on line 1677 in /components/modules/thesslstore_module/thesslstore_module.php
This has to do with an attempt to fetch products via the API. The API had no response (i.e. null). The expected return value of "getProducts" is an array, but it returned null.
Glancing at the module, each of these methods are affected by this behavior:
- getProducts
- parseResponse
- validateCSR