Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Call to undefined method craft\helpers\ElementHelper::fieldColumn() #151

Open
mofman opened this issue May 8, 2024 · 1 comment
Open

Comments

@mofman
Copy link

mofman commented May 8, 2024

Describe the bug

Was trying to migrate from Typed Link Field to Hyper and go this error.

➜  show-house git:(master) ✗ ./craft hyper/migrate/typed-link-content
Preparing to migrate field “cta7” (b77d0768-fe20-47bf-acf6-e54922135b31) content.
Exception: Call to undefined method craft\helpers\ElementHelper::fieldColumn() (/Users/user/Sites/show-house/vendor/verbb/hyper/src/migrations/MigrateTypedLinkContent.php:61)
#0 /Users/user/Sites/show-house/vendor/verbb/hyper/src/migrations/PluginContentMigration.php(34): verbb\hyper\migrations\MigrateTypedLinkContent->processFieldContent()
#1 /Users/user/Sites/show-house/vendor/craftcms/cms/src/db/Migration.php(49): verbb\hyper\migrations\PluginContentMigration->safeUp()
#2 /Users/user/Sites/show-house/vendor/verbb/hyper/src/console/controllers/MigrateController.php(91): craft\db\Migration->up()
#3 /Users/user/Sites/show-house/vendor/verbb/hyper/src/console/controllers/MigrateController.php(56): verbb\hyper\console\controllers\MigrateController->_migrate('verbb\\hyper\\mig...')
#4 [internal function]: verbb\hyper\console\controllers\MigrateController->actionTypedLinkContent()
#5 /Users/user/Sites/show-house/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array)
#6 /Users/user/Sites/show-house/vendor/yiisoft/yii2/base/Controller.php(178): yii\base\InlineAction->runWithParams(Array)
#7 /Users/user/Sites/show-house/vendor/yiisoft/yii2/console/Controller.php(180): yii\base\Controller->runAction('typed-link-cont...', Array)
#8 /Users/user/Sites/show-house/vendor/craftcms/cms/src/console/ControllerTrait.php(89): yii\console\Controller->runAction('typed-link-cont...', Array)
#9 /Users/user/Sites/show-house/vendor/craftcms/cms/src/console/Controller.php(216): craft\console\Controller->traitRunAction('typed-link-cont...', Array)
#10 /Users/user/Sites/show-house/vendor/yiisoft/yii2/base/Module.php(552): craft\console\Controller->runAction('typed-link-cont...', Array)
#11 /Users/user/Sites/show-house/vendor/yiisoft/yii2/console/Application.php(180): yii\base\Module->runAction('hyper/migrate/t...', Array)
#12 /Users/user/Sites/show-house/vendor/craftcms/cms/src/console/Application.php(91): yii\console\Application->runAction('hyper/migrate/t...', Array)
#13 /Users/user/Sites/show-house/vendor/yiisoft/yii2/console/Application.php(147): craft\console\Application->runAction('hyper/migrate/t...', Array)
#14 /Users/user/Sites/show-house/vendor/craftcms/cms/src/console/Application.php(122): yii\console\Application->handleRequest(Object(craft\console\Request))
#15 /Users/user/Sites/show-house/vendor/yiisoft/yii2/base/Application.php(384): craft\console\Application->handleRequest(Object(craft\console\Request))
#16 /Users/user/Sites/show-house/craft(13): yii\base\Application->run()
#17 {main}

Steps to reproduce

Craft CMS version

5.1.2

Plugin version

2.0.0-beta.8

Multi-site?

No

Additional context

No response

@engram-design
Copy link
Member

engram-design commented May 9, 2024

The migration utilities are scheduled to be removed in Hyper 2 for Craft 5, as all the link plugins (at the current time) aren't on Craft 5, and Typed Link for example won't be moving to that. The original plugins are still needed to perform the upgrades. While these utilities still exist in Hyper 2, they'll be removed shortly.

If you're looking to migrate, you'll need to do so in Craft 4 before you upgrade.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants