formie icon indicating copy to clipboard operation
formie copied to clipboard

Formie log file: Setting unknown property

Open stevefloat opened this issue 1 year ago • 5 comments

Describe the bug

Hi

Since upgrading to Craft 4, I'm seeing this line appear in the Formie log whenever I hit a particular page containing a Formie form:

2023-03-08 10:43:41 [INFO] Setting unknown property: verbb\formie\fields\formfields\Hidden::options /xxx/vendor/yiisoft/yii2/base/Component.php:209
2023-03-08 10:43:41 [INFO] Request context:
$_GET = [
    'p' => 'my-page-url'
]

Within this form I'm using a Recipients field with a display type of 'hidden'.

I should note that the form all works as expected! The value is added to my field using populateFormValues as follows:

{% do craft.formie.populateFormValues('myForm', { 
                            hiddenEmail: recipientEmail,
                        }) %}
{{ craft.formie.renderForm( 'myForm' ) }}

As I said, everything works as expected. I'm just not sure why I'm seeing the 'unknown property' entry in the log every time this page is visited.

Thanks for any insight!

Steps to reproduce

  1. Visit a form containing a Recipient field with a Display Type of 'Hidden
  2. Check the log

Form settings

  • Multi-page form: No
  • Submission Method: Ajax
  • Client-side Validation: Yes
  • Custom Form Templates: No

Craft CMS version

4.3.10

Plugin version

2.0.24

Multi-site?

No

Additional context

It seems to only be happening, or at least being added to the log file, since upgrading to Craft 4

stevefloat avatar Mar 08 '23 11:03 stevefloat

Won't be an issue to any functionality, but fixed for the next release. To get this early, run composer require verbb/formie:"dev-craft-4 as 2.0.24".

engram-design avatar Mar 08 '23 20:03 engram-design

Thanks Josh

stevefloat avatar Mar 09 '23 09:03 stevefloat

Updated in 2.0.25

engram-design avatar Mar 25 '23 06:03 engram-design

This is happening for me after upgrading a Craft 4 site to Craft 5.

Setting unknown property: verbb\formie\models\FieldLayoutPage::notificationFlag

Get this error when creating a new form using the Contact stencil, but not when using the Basic stencil (works okay).

BenHMatrix avatar Apr 03 '24 20:04 BenHMatrix

Fixed for the next release. To get this early, run composer require verbb/formie:"dev-craft-5 as 3.0.0-beta.5".

engram-design avatar Apr 04 '24 04:04 engram-design

Fixed in 3.0.0-beta.6

engram-design avatar Apr 12 '24 01:04 engram-design