Articles Field (for J3) crashes with PHP8.x

Search
Other Bug Reports questions
Forum

Articles Field (for J3) crashes with PHP8.x

Marc's Avatar Marc
Hi Peter,
When changing the PHP version from 7.x to 8.x on a J3 website using Articles Field, I get the following error in the front-end (only on the pages calling that Custom Field of course)
implode(): Argument #2 ($array) must be of type ?array, string given
() JROOT/plugins/fields/articles/helper.php:108

So on that line 108, I changed
$value = implode($value, ' ');
into
$value = implode(' ', $value);
and it fixes the issue.

So I guess you want to update Articles Field to make it PHP8 compatible.
Txs

Marc
Peter van Westen's Avatar Peter van Westen ADMIN
Please try the latest development version from:
regularlabs.com/development-releases
Please post a rating at the Joomla! Extensions Directory
Marc's Avatar Marc
Installed & tested the DEV version... and I do confirm that it fixes the issue.
Txs !
Marc
Peter van Westen's Avatar Peter van Westen ADMIN
Ok, great 🙂
The fix will be included in the next release.
Please post a rating at the Joomla! Extensions Directory
You can only post on this forum if you log in