Help Center

Powered by Minitek FAQ Book
Loading...

errors fieldgroup | field Under review

E
eLigPosted 1 year ago
0 count(): Argument #1 ($value) must be of type Countable|array, null given
/public_html/plugins/content/fields/fields.php:96
Call stack
# Function Location
1 () JROOT/plugins/content/fields/fields.php:96
2 PlgContentFields->prepare() JROOT/plugins/content/fields/fields.php:62
3 PlgContentFields->onContentPrepare() JROOT/libraries/src/Plugin/CMSPlugin.php:279
4 Joomla\CMS\Plugin\CMSPlugin->Joomla\CMS\Plugin\{closure}() JROOT/libraries/vendor/joomla/event/src/Dispatcher.php:486
5 Joomla\Event\Dispatcher->dispatch() JROOT/libraries/src/Application/EventAware.php:107
6 Joomla\CMS\Application\WebApplication->triggerEvent() JROOT/libraries/src/HTML/Helpers/Content.php:50
7 Joomla\CMS\HTML\Helpers\Content::prepare() JROOT/libraries/src/HTML/HTMLHelper.php:287
8 Joomla\CMS\HTML\HTMLHelper::call() JROOT/libraries/src/HTML/HTMLHelper.php:126
9 Joomla\CMS\HTML\HTMLHelper::_() JROOT/modules/mod_responsive_grid_for_articles/src/Helper/ResponsiveGridForArticlesHelper.php:701

ResponsiveGridForArticlesHelper.php

           {
                // Plugin events
                PluginHelper::importPlugin('content');
                $item->displayIntrotext = HTMLHelper::_('content.prepare', $item->introtext); // error
            }

Hi

If the output of additional fields is used in the material, there will be an error.

I solved the problem like this: $item->display Introtext = HtmlHelper::_('content.prepare', $item->introtext, ", 'mod_responsive_grid_for_articles.content');

It seems to me that this is not a very correct solution, but it works.

Loading...
0
#3868

1 answer

M
MinitekPosted 1 year agoModerator

Hi there,

Thank you for reporting this. I'll look into it for the next update.