Skip to content

[5.0.0]: Invalid owner ID errors #14749

@rinusvandam

Description

@rinusvandam

What happened?

Description

I've updated a Craft site to version 5. I'm getting “Invalid owner ID” errors.

Steps to reproduce

It appears to happen at random moments. Can't find a way to reproduce it. I've seen more issues related to this.

Stack trace

yii\base\InvalidConfigException: Invalid owner ID: 182571 in /var/www/html/vendor/craftcms/cms/src/base/NestedElementTrait.php:148
#0 /var/www/html/vendor/craftcms/cms/src/base/NestedElementTrait.php(193): craft\elements\Entry->getPrimaryOwner()
#1 /var/www/html/vendor/craftcms/cms/src/base/NestedElementTrait.php(225): craft\elements\Entry->getOwner()
#2 /var/www/html/vendor/craftcms/cms/src/base/Element.php(3243): craft\elements\Entry->getField()
#3 /var/www/html/vendor/craftcms/cms/src/elements/Entry.php(1655): craft\base\Element->canView(Object(craft\elements\User))
#4 /var/www/html/vendor/craftcms/cms/src/services/Elements.php(4139): craft\elements\Entry->canView(Object(craft\elements\User))
#5 /var/www/html/vendor/craftcms/cms/src/helpers/Cp.php(663): craft\services\Elements->canView(Object(craft\elements\Entry), Object(craft\elements\User))
#6 /var/www/html/vendor/craftcms/cms/src/helpers/Cp.php(464): craft\helpers\Cp::baseElementAttributes(Object(craft\elements\Entry), Array)
#7 /var/www/html/vendor/craftcms/cms/src/widgets/MyDrafts.php(106): craft\helpers\Cp::elementChipHtml(Object(craft\elements\Entry))
#8 /var/www/html/vendor/craftcms/cms/src/controllers/DashboardController.php(466): craft\widgets\MyDrafts->getBodyHtml()
#9 /var/www/html/vendor/craftcms/cms/src/controllers/DashboardController.php(104): craft\controllers\DashboardController->_getWidgetInfo(Object(craft\widgets\MyDrafts))
#10 [internal function]: craft\controllers\DashboardController->actionIndex()
#11 /var/www/html/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array)
#12 /var/www/html/vendor/yiisoft/yii2/base/Controller.php(178): yii\base\InlineAction->runWithParams(Array)
#13 /var/www/html/vendor/yiisoft/yii2/base/Module.php(552): yii\base\Controller->runAction('index', Array)
#14 /var/www/html/vendor/craftcms/cms/src/web/Application.php(349): yii\base\Module->runAction('dashboard/index', Array)
#15 /var/www/html/vendor/yiisoft/yii2/web/Application.php(103): craft\web\Application->runAction('dashboard/index', Array)
#16 /var/www/html/vendor/craftcms/cms/src/web/Application.php(317): yii\web\Application->handleRequest(Object(craft\web\Request))
#17 /var/www/html/vendor/yiisoft/yii2/base/Application.php(384): craft\web\Application->handleRequest(Object(craft\web\Request))
#18 /var/www/html/public_html/index.php(12): yii\base\Application->run()
#19 {main}

Craft CMS version

Craft Pro 5.0.0

PHP version

8.2.15

Operating system and version

MacOS 14.4 (23E214)

Database type and version

MySQL 8.0.33

Image driver and version

Imagick 3.7.0 (ImageMagick 6.9.11-60)

Installed plugins and versions

  • Elements Panel 3.0.0-beta.1
  • Maps v5.0.0-rc1
  • oEmbed 3.0.8
  • Redactor 4.0.0
  • SEOMate 3.0.0-beta.2

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