hyper icon indicating copy to clipboard operation
hyper copied to clipboard

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

Open mofman opened this issue 1 year ago • 1 comments

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

mofman avatar May 08 '24 10:05 mofman

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.

engram-design avatar May 09 '24 05:05 engram-design

Migrations have been added back in https://github.com/verbb/hyper/releases/tag/2.2.0 which have been re-worked for Craft 5.

engram-design avatar Dec 02 '24 00:12 engram-design