error Uncaught Throwable of type TypeError thrown with message

More
2 years 1 month ago #81913 by coerter
I get the following error when outputting a field of type text or textarea in the frontend.

Flexicontent 4.0.2
Joomla 4.1.0
PHP 7.4.28

error   Uncaught Throwable of type TypeError thrown with message "Argument 1 passed to Joomla\Filter\InputFilter::__construct() must be of the type array, null given, called /in xxxxxxx/libraries/src/Filter/InputFilter.php on line 66". Stack trace: #0 xxxxxx/libraries/src/Filter/InputFilter.php(66): Joomla\Filter\InputFilter->__construct()
#1 xxxxx/libraries/src/Filter/InputFilter.php(92): Joomla\CMS\Filter\InputFilter->__construct()
#2 xxxxx/plugins/flexicontent_fields/text/text.php(592): Joomla\CMS\Filter\InputFilter::getInstance()
#3 xxxxxx/components/com_flexicontent/classes/helpers/flexiutilities.php(428): plgFlexicontent_fieldsText->onDisplayFieldValue()
#4 xxxxx/components/com_flexicontent/classes/flexicontent.fields.php(932): FLEXIUtilities::call_FC_Field_Func()
#5 xxxxxx/components/com_flexicontent/classes/flexicontent.fields.php(1306): FlexicontentFields::renderField()
#6 xxxxxx/components/com_flexicontent/classes/flexicontent.fields.php(161): FlexicontentFields::renderPositions()
#7 xxxxxx/components/com_flexicontent/views/category/view.html.php(252): FlexicontentFields::getFields()
#8 xxxxxxe/libraries/src/MVC/Controller/BaseController.php(697): FlexicontentViewCategory->display()
#9 xxxxxx/components/com_flexicontent/controller.php(262): Joomla\CMS\MVC\Controller\BaseController->display()
#10 xxxxxxx/libraries/src/MVC/Controller/BaseController.php(735): FlexicontentController->display()
#11 xxxxxxxx/components/com_flexicontent/flexicontent.php(289): Joomla\CMS\MVC\Controller\BaseController->execute()
#12 xxxxxxxx/libraries/src/Dispatcher/LegacyComponentDispatcher.php(69): require_once('xxxxxx...')
#13 xxxxxxx/libraries/src/Dispatcher/LegacyComponentDispatcher.php(71): Joomla\CMS\Dispatcher\LegacyComponentDispatcher::Joomla\CMS\Dispatcher\{closure}()
#14 xxxxxxxx/libraries/src/Component/ComponentHelper.php(389): Joomla\CMS\Dispatcher\LegacyComponentDispatcher->dispatch()
#15 xxxxxxx/libraries/src/Application/SiteApplication.php(204): Joomla\CMS\Component\ComponentHelper::renderComponent()
#16 xxxxxxx/libraries/src/Application/SiteApplication.php(243): Joomla\CMS\Application\SiteApplication->dispatch()
#17 xxxxxxx/libraries/src/Application/CMSApplication.php(278): Joomla\CMS\Application\SiteApplication->doExecute()
#18 xxxxxxx/includes/app.php(63): Joomla\CMS\Application\CMSApplication->execute()
#19 xxxxxxxx/index.php(32): require_once('xxxxxx...')

with regards

coweb

Please Log in or Create an account to join the conversation.

More
2 years 3 weeks ago #81943 by coerter
for all. II found the cause of the error. If you enter viewing->Layout->Clean values->unsafe HTML in the configuration of the field then the error appear.

with regards

coweb

Please Log in or Create an account to join the conversation.

More
2 years 3 weeks ago #81948 by micker
oh great ! sorry for no replay ... thanks for share solution

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

Please Log in or Create an account to join the conversation.

More
1 year 8 months ago - 1 year 8 months ago #82617 by HillWoody
... hello,

thanks for the hint, but this doesn't work for me.

I changed field definitions of the suspicious text and text area fields to "unsafe HTML", also tried "all HTML", but no difference.

On the other hand, saving items of other content types with different field sets work well, so it should be something with field definitions.

I also noticed that hitting "apply" instead of "save" button shows up a progress bar that never finishes.

Any ideas?

(J! 4.1.5, FC 4.0.2, php 7.4.30)
Last edit: 1 year 8 months ago by HillWoody.

Please Log in or Create an account to join the conversation.

More
1 year 8 months ago #82618 by HillWoody
... OK, seems I found something that works in my case, the following settings for textarea fields:

(1) serverside valuation settings: one of the "TEXT..". options
(FIELD Type specific configuration -> edit -> values).

and

(2) NO cleanup of HTML values in layout view
(FIELD Type specific configuration -> view -> layout).


Regards

Please Log in or Create an account to join the conversation.

More
1 year 7 months ago #82636 by micker
thanks for ssharing solution

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.287 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline