verbb / hyper

A Craft CMS plugin for managing links, focusing on user experience.
Other
21 stars 9 forks source link

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

Open mofman opened 1 month ago

mofman commented 1 month ago

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 commented 1 month ago

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.