Error "The identifier fID is missing for a query of Concrete\Core\Entity\File\File" after upgrading 5.7.5.13 to 5.8

Permalink
Hello,

I updated my website from 5.7.5.13 to 8.0.3

The website itself works fine now, also most of the dashboard. Except files. When I click on it, i get this Exception:
Doctrine\ORM\ORMException thrown with message "The identifier fID is missing for a query of Concrete\Core\Entity\File\File"
Stacktrace:
#38 Doctrine\ORM\ORMException in /var/www/mywebsite/concrete/vendor/doctrine/orm/lib/Doctrine/ORM/ORMException.php:294
#37 Doctrine\ORM\ORMException:missingIdentifierField in /var/www/mywebsite/concrete/vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php:403
#36 Doctrine\ORM\EntityManager:find in /var/www/mywebsite/concrete/src/File/File.php:36
#35 Concrete\Core\File\File:getByID in /var/www/mywebsite/concrete/src/Tree/Node/Type/File.php:50
#34 Concrete\Core\Tree\Node\Type\File:getTreeNodeFileObject in /var/www/mywebsite/concrete/src/Permission/Response/FileTreeNodeResponse.php:11
#33 Concrete\Core\Permission\Response\FileTreeNodeResponse:getPermissionsCheckerObject in /var/www/mywebsite/concrete/src/Permission/Response/FileTreeNodeResponse.php:28
#32 Concrete\Core\Permission\Response\FileTreeNodeResponse:canViewTreeNode in /var/www/mywebsite/concrete/src/Permission/Checker.php:75
#31 Concrete\Core\Permission\Checker:__call in /var/www/mywebsite/concrete/src/File/FolderItemList.php:99
#30 Concrete\Core\Permission\Checker:canViewTreeNode in /var/www/mywebsite/concrete/src/File/FolderItemList.php:99
#29 Concrete\Core\File\FolderItemList:checkPermissions in /var/www/mywebsite/concrete/src/File/FolderItemList.php:82
#28 Concrete\Core\File\FolderItemList:getResult in /var/www/mywebsite/concrete/src/Search/ItemList/ItemList.php:76
#27 Concrete\Core\Search\ItemList\ItemList:getResults in /var/www/mywebsite/concrete/src/Search/Pagination/PermissionablePagination.php:15
#26 Concrete\Core\Search\Pagination\PermissionablePagination:__construct in /var/www/mywebsite/concrete/src/File/FolderItemList.php:73


My website has about 2000 files. But in the TreeNode and TreeFileNodes tables are only about 400 entries. It should be also about 2000 entries I think.

Does anybody have an idea, what is wrong in the update process? Can I somehow manually generate the Tree(File)Node tables for the files?

Thanks
Harald

HarryVienna
View Replies:
HarryVienna replied on at Permalink Reply
HarryVienna
I have the feeling I am the only one using concrete5 with lot's if images...
extensi replied on at Permalink Reply
extensi
The same issue here.
Updated to 8.2.1
mkly replied on at Permalink Reply
mkly
Hello,
I ran into something similar and it was because there was bad data in the queue. Likely from the upgrade from 5.7 to 8. In our case it was for rescan multiple files.

https://github.com/concrete5/concrete5/pull/5983...

You may want to check and clear any queues you have with data in the database.