seo icon indicating copy to clipboard operation
seo copied to clipboard

Upgrading SEO data format fails

Open architech99 opened this issue 1 year ago • 0 comments

Description

Command seo/upgrade/to-new-data-format fails with error message Calling unknown method: craft\services\TemplateCaches::deleteCachesByElementType()

Steps to reproduce

  1. Upgrade to Craft 4.x
  2. Install SEO 4.0.3
  3. Execute craft se/upgrade/to-new-data-format on server

Additional info

  • Craft version: 4.2.0.2
  • SEO version: 4.0.3
  • PHP version: 8.0.21
  • Database driver & version: MySQL 8.0.30
  • Other Plugins: Complete Cookie Consent 1.1, Cookies 4.0.0, Crawler Detect 1.0.2, Digitalocean Spaces Filesystem 2.0.0, Freeform 4.0.0, Neo 3.2.5, Postmark 3.0.0, Redactor 3.0.2

Complete message from error log: 2022-08-09 21:55:35 [queue.ERROR] [yii\base\UnknownMethodException] Calling unknown method: craft\services\TemplateCaches::deleteCachesByElementType() {"trace":["#0 /path/to/www/vendor/ether/seo/src/jobs/UpgradeSeoDataJob.php(59): yii\base\Component->__call()","#1 /path/to/www/vendor/yiisoft/yii2-queue/src/Queue.php(246): ether\seo\jobs\UpgradeSeoDataJob->execute()","#2 /path/to/www/vendor/yiisoft/yii2-queue/src/cli/Queue.php(147): yii\queue\Queue->handleMessage()","#3 /path/to/www/vendor/craftcms/cms/src/queue/Queue.php(182): yii\queue\cli\Queue->handleMessage()","#4 /path/to/www/vendor/craftcms/cms/src/queue/Queue.php(157): craft\queue\Queue->executeJob()","#5 [internal function]: craft\queue\Queue->craft\queue\{closure}()","#6 /path/to/www/vendor/yiisoft/yii2-queue/src/cli/Queue.php(117): call_user_func()","#7 /path/to/www/vendor/craftcms/cms/src/queue/Queue.php(165): yii\queue\cli\Queue->runWorker()","#8 /path/to/www/vendor/craftcms/cms/src/controllers/QueueController.php(82): craft\queue\Queue->run()","#9 [internal function]: craft\controllers\QueueController->actionRun()","#10 /path/to/www/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array()","#11 /path/to/www/vendor/yiisoft/yii2/base/Controller.php(178): yii\base\InlineAction->runWithParams()","#12 /path/to/www/vendor/yiisoft/yii2/base/Module.php(552): yii\base\Controller->runAction()","#13 /path/to/www/vendor/craftcms/cms/src/web/Application.php(301): yii\base\Module->runAction()","#14 /path/to/www/vendor/craftcms/cms/src/web/Application.php(625): craft\web\Application->runAction()","#15 /path/to/www/vendor/craftcms/cms/src/web/Application.php(280): craft\web\Application->_processActionRequest()","#16 /path/to/www/vendor/yiisoft/yii2/base/Application.php(384): craft\web\Application->handleRequest()","#17 /path/to/www/web/index.php(22): yii\base\Application->run()","#18 {main}"],"memory":8814112,"exception":"[object] (yii\base\UnknownMethodException(code: 0): Calling unknown method: craft\services\TemplateCaches::deleteCachesByElementType() at /path/to/www/vendor/yiisoft/yii2/base/Component.php:300)"}

architech99 avatar Aug 09 '22 22:08 architech99