FLEXIcontent / flexicontent-cck

Advanced content management for Joomla
http://www.flexicontent.org
82 stars 53 forks source link

Error when saving item after upgrading from J3/FC3.3.11 to J4/FC4.0.2 #1052

Closed step-it closed 1 year ago

step-it commented 2 years ago

After upgrading from Joomla 3 to Joomla 4 I get this error when saving an item:

Si è verificato un errore.
    0 Argument 1 passed to Joomla\Filter\InputFilter::__construct() must be of the type array, null given, called in /home/test/public_html/libraries/src/Filter/InputFilter.php on line 66 

The same action on Joomla 3 (latest available build) and FC 3.3.11 work normally.

micker commented 2 years ago

Hello Can you be more précise ? Joomla version Flexicontent version Type of field in your content ?

step-it commented 2 years ago

Joomla/FC version were in topic title: Joomla 4 latest, FC 4 latest For the type of fields used in that item, here the complete list used in that article type: immagine

step-it commented 2 years ago

Please let me know if you need something more specific.

micker commented 2 years ago

Hello it realy strange i Cant reproduce it ... Can you update on New 4.1 flexi version aviable via github

step-it commented 2 years ago

Updatet FC to 4.1, still having the same issue: Argument 1 passed to Joomla\Filter\InputFilter::__construct() must be of the type array, null given, called in /home/test/public_html/libraries/src/Filter/InputFilter.php on line 66

Using another item type with less custom fields the saving process works normally.... something to do with one or more of the custom fileds used there.

step-it commented 2 years ago

I think to have found where the issue arise. The error shows up when using "SAFE HTML : remove dangerous tags/attributes" option in "Text (number/time/etc/custom validation)" field type. When setting this option value to "TEXT or ENCODED HTML : allow entities, strip tags" the error disappears. Can you please provide a fix for that? Thanks :)

micker commented 2 years ago

hello we are a little busy but very thanks finding a solid way !

micker commented 1 year ago

hello @step-it its corrected on master