Error import / convert the old data to the new Formidable

Permalink Browser Info Environment
Hello Wem

When we want to convert old forms, we get an error from the class "Concrete\Package\Formidable\Src\Formidable\Helpers\". Line 920. The searched value is missing in in_array() check.

Best
Jens

Type: Discussion
Status: Archived
webpresso
View Replies:
DeWebmakers replied on at Permalink Reply
DeWebmakers
Hi Jens,

Found the issue...
Quickfix.... Open /packages/formidable/src/Formidable/Helpers/FormidableFull.php and go to line 920:
if (empty($type) || !in_array('value', 'request', 'user_attribute', 'collection_attribute')) {

change to:
if (empty($type) || !in_array($type, ['value', 'request', 'user_attribute', 'collection_attribute'])) {


I'll add this in the next update...

Best,

Corretje
webpresso replied on at Permalink Reply
webpresso
Hi Corretje

Thank you. I have already done that!

Best,
Jens

concrete5 Environment Information

# Concrete Version
Core Version - 9.2.0
Version Installed - 9.2.0
Database Version - 20230308163514

# Environment
production

# Database Information
Version: 5.7.41-log-cll-lve
SQL Mode: NO_ENGINE_SUBSTITUTION

Browser User-Agent String

Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/114.0

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.