Skip to content

[5.8.16]: m230511_000000_field_layout_configs - Formie - Link Field - setName() deprecated #17812

@wolispace

Description

@wolispace

What happened?

Description

Im trying to upgrade from
Craft 4.16.12 > 5.8.16
Formie 2.2.3 > 3.1.3
Link Field ^2.1 > ^3.0.0-beta

However I wonder if the "Link field" I see in the log below is the new Craft 5 Link field instead of
"sebastianlenz/linkfield": "^3.0.0-beta",

I upgrade my php and MariaDB without issue.

I update my composer.json and rebuild my composer lock but when the migrations run I fails:

*** applying m230511_000000_field_layout_configs
Exception: Formie fields’ name attribute has been deprecated. Use label instead. (/var/www/html/vendor/yiisoft/yii2/base/Component.php:180)

Looking in Formie's code we see it has been deprecated:
https://github.com/verbb/formie/blob/craft-5/src/base/Field.php

My console.log file shows:

2025-09-03 15:36:47 [console.WARNING] [craft\console\actions\ClearCacheAction::run] Error clearing cache Link field element cache: Formie fields’ `name` attribute has been deprecated. Use `label` instead. {"memory":7911104} 
2025-09-03 15:36:47 [console.ERROR] [application] Formie fields’ `name` attribute has been deprecated. Use `label` instead. {"memory":7687184} 
2025-09-03 15:36:48 [console.ERROR] [application] Formie fields’ `name` attribute has been deprecated. Use `label` instead. {"memory":7758120} 
2025-09-03 15:41:50 [console.ERROR] [application] Formie fields’ `name` attribute has been deprecated. Use `label` instead. {"memory":7726848} 

Steps to reproduce

  1. Start on Craft and Formie versions listed above, and try to upgrade to Craft 5

Expected behavior

No errors relating to setName() or getName() as they have been deprecated.

Actual behavior

Errors and unable to upgrade to Craft 5

Craft CMS version

5.8.16

PHP version

8.2

Operating system and version

ddev

Database type and version

MariaDB 10.11

Image driver and version

No response

Installed plugins and versions

  • "require": {
    "php": "^8.2.0",
    "craftcms/aws-s3": "^2.2.3",
    "craftcms/ckeditor": "^4.10.0",
    "craftcms/cms": "^5.0.0",
    "craftpulse/craft-colour-swatches": "^5.1.0",
    "jalendport/craft-lockout": "^3.0.0-beta.1",
    "nystudio107/craft-emptycoalesce": "^5.0.0",
    "nystudio107/craft-imageoptimize": "^5.0.7",
    "nystudio107/craft-minify": "^5.0.0",
    "nystudio107/craft-seomatic": "^5.1.16",
    "nystudio107/craft-vite": "^5.0.0",
    "ostark/craft-async-queue": "^4.0.0",
    "percipioglobal/craft-password-policy": "^5.0.3",
    "putyourlightson/craft-sherlock": "^5.2.0",
    "sebastianlenz/linkfield": "^3.0.0-beta",
    "spicyweb/craft-neo": "^5.4.5",
    "studioespresso/craft-date-range": "^5.0.0-beta.4",
    "topshelfcraft/wordsmith": "^5.0.0",
    "verbb/expanded-singles": "^3.0.3",
    "verbb/formie": "^3.1.3",
    "verbb/kint": "^4.0.2",
    "verbb/navigation": "^3.0.12",
    "vlucas/phpdotenv": "^v5.6.0"
    },

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions