Search
Other Articles Anywhere questions
Forum

How to filter out a "null-error" when using {foreach} on repeatable field with no children / no rows

Ton van Loon's Avatar Ton van Loon
Joomla 4

When I do a {foreach} on a repeatable custom field that has no children (yet) I get a breaking error (see below).
How do I filter out this "null-error" when using {foreach} on repeatable field with no children?


Error:
0
Argument 1 passed to RegularLabs\Plugin\System\ArticlesAnywhere\ForeachTags\Tag::getOutputFromRows() must be of the type array, null given, called in /home/loovanloon/domains/vanloon.net/public_html/sta/plugins/system/articlesanywhere/src/ForeachTags/Tag.php on line 179
Peter van Westen's Avatar Peter van Westen ADMIN
I cannot reproduce this issue...
Can you try with the latest development version?
regularlabs.com/development-releases
Please post a rating at the Joomla! Extensions Directory
Ton van Loon's Avatar Ton van Loon
The issue is indeed resolved in ArticlesAnywhere-v11.0.1-dev2134723-PRO

I've tested on a clean install of Joomla 4.0.3 / Cassiopeia / ArticlesAnywhere-only with:

ArticlesAnywhere-v11.0
- Issue



ArticlesAnywhere-v11.0.1-dev2134723-PRO
- Problem resolved
Peter van Westen's Avatar Peter van Westen ADMIN
Ok, great 🙂
So the fix will be included in the next stable release.
Please post a rating at the Joomla! Extensions Directory
You can only post on the extension support forum if you have an active subscription and you log in

Buy a Pro subscription