KB Article #182335
API Portal Aug 2022 (API Portal 7.7.20220830) is not functioning with Redis enabled
Problem
● When trying to enable Redis API Portal becomes nonfunctional, and an error is shown in JAI - An Error has occurred. “Redis::setex():Argument #2 ($expire) must be of type int, float given”.
● Upgrade to API Portal Aug 2022 fails with Redis related error.
The described behavior appears in both software installation and docker deployment. On a fresh install trying to enable Redis Cache will result in the same behavior. For more details see here: https://issues.joomla.org/tracker/joomla-cms/38490
Resolution
API Portal August 2022 comes with Joomla 4.2.0 which has an issue with Redis cache server. To fix this issue a new version of Joomla 4.2.3 needs to be used.
For Docker environment:
- If you plan to upgrade your docker deployment to Aug 2022, before the upgrade download the following API Portal 7.7 20220830 Patch1 and corresponding API Portal 7.7.20220830 Joomla Third Party Packages and follow the installation instructions in the readme.
- If you perform an initial API Portal Aug 2022 deployment and plan to use Redis, use API Portal 20220830 Patch1 image instead of API Portal 20220830.
For software
installation:
- If you plan to upgrade to Aug 2022 with enabled Redis cache, before the upgrade make sure you have manually updated your Jooma to 4.2.3. see the instructions bellow:
- To enable Redis cache after you have installed / upgraded to API Portal Aug2022, make sure you have manually updated your Jooma to 4.2.3. See the instructions bellow:
Instructions for to manually update your Joomla 4.2.3 from the package 7.7.20220830 Joomla Third Party Packages:
1) Log in to the Joomla! Admin Interface (JAI) (https://<API Portal host>/administrator).
2) Select System > Update>Joomla, and click the Upload & Update tab.
3) Browse to the extracted package and select the included Joomla upgrade package file (for example, joomla-update-package-4.2.3.zip).
4) Click Upload & Install and follow the instructions.
From this point on:
API Portal JAI configuration for Redis should operate as expected without any issues.