I’m completely at a loss at to why this is happening and how to solve this.
The context : I have developed a website that works fine on my computer and I am deploying on DigitalOcean. The dev was done on a docker compose stack and deployment is under docker compose too, so this should be uneventful.
The error happens on all the pages, on all the dashboard pages and on the CLI. The call stack does not go through my custom code.
What I tried without success :
- reimporting the database from DEV (where everything works fine)
- rebuilding all the docker images
- running the CLI to refresh the entities, which does not work since the CLI crashed too
The problem is that I can’t find mentions of that error message or have any idea of what causes it, so it’s pretty hard to solve… Anyone has any idea on what causes this ?
Full call stack :
Doctrine\ORM\Mapping\MappingException: Class “Concrete\Core\Entity\Package” is not a valid entity or mapped super class. in file /var/www/html/updates/concrete-cms-9.2.8-remote-updater/concrete/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/MappingException.php on line 364
Stack trace:
-
Doctrine\ORM\Mapping\MappingException->() /var/www/html/updates/concrete-cms-9.2.8-remote-updater/concrete/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/MappingException.php:364
| array(1) {
| [0]=>
| string(81) “Class “Concrete\Core\Entity\Package” is not a valid entity or mapped super class.”
| } -
Doctrine\ORM\Mapping\MappingException->classIsNotAValidEntityOrMappedSuperClass() /var/www/html/updates/concrete-cms-9.2.8-remote-updater/concrete/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/Driver/AnnotationDriver.php:119
| array(1) {
| [0]=>
| string(28) “Concrete\Core\Entity\Package”
| } -
Doctrine\ORM\Mapping\Driver\AnnotationDriver->loadMetadataForClass() /var/www/html/updates/concrete-cms-9.2.8-remote-updater/concrete/vendor/doctrine/persistence/src/Persistence/Mapping/Driver/MappingDriverChain.php:79
| array(2) {
| [0]=>
| string(28) “Concrete\Core\Entity\Package”
| [1]=>
| string(34) “Doctrine\ORM\Mapping\ClassMetadata”
| } -
Doctrine\Persistence\Mapping\Driver\MappingDriverChain->loadMetadataForClass() /var/www/html/updates/concrete-cms-9.2.8-remote-updater/concrete/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php:133
| array(2) {
| [0]=>
| string(28) “Concrete\Core\Entity\Package”
| [1]=>
| string(34) “Doctrine\ORM\Mapping\ClassMetadata”
| } -
Doctrine\ORM\Mapping\ClassMetadataFactory->doLoadMetadata() /var/www/html/updates/concrete-cms-9.2.8-remote-updater/concrete/vendor/doctrine/persistence/src/Persistence/Mapping/AbstractClassMetadataFactory.php:415
| array(4) {
| [0]=>
| string(34) “Doctrine\ORM\Mapping\ClassMetadata”
| [1]=>
| NULL
| [2]=>
| bool(false)
| [3]=>
| string(8) “Array(0)”
| } -
Doctrine\Persistence\Mapping\AbstractClassMetadataFactory->loadMetadata() /var/www/html/updates/concrete-cms-9.2.8-remote-updater/concrete/vendor/doctrine/persistence/src/Persistence/Mapping/AbstractClassMetadataFactory.php:281
| array(1) {
| [0]=>
| string(28) “Concrete\Core\Entity\Package”
| } -
Doctrine\Persistence\Mapping\AbstractClassMetadataFactory->getMetadataFor() /var/www/html/updates/concrete-cms-9.2.8-remote-updater/concrete/vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php:318
| array(1) {
| [0]=>
| string(28) “Concrete\Core\Entity\Package”
| } -
Doctrine\ORM\EntityManager->getClassMetadata() /var/www/html/updates/concrete-cms-9.2.8-remote-updater/concrete/vendor/doctrine/orm/lib/Doctrine/ORM/Repository/DefaultRepositoryFactory.php:32
| array(1) {
| [0]=>
| string(29) “\Concrete\Core\Entity\Package”
| } -
Doctrine\ORM\Repository\DefaultRepositoryFactory->getRepository() /var/www/html/updates/concrete-cms-9.2.8-remote-updater/concrete/vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php:825
| array(2) {
| [0]=>
| string(26) “Doctrine\ORM\EntityManager”
| [1]=>
| string(29) “\Concrete\Core\Entity\Package”
| } -
Doctrine\ORM\EntityManager->getRepository() /var/www/html/updates/concrete-cms-9.2.8-remote-updater/concrete/src/Package/PackageList.php:74
| array(1) {
| [0]=>
| string(29) “\Concrete\Core\Entity\Package”
| } -
Concrete\Core\Package\PackageList->get() /var/www/html/updates/concrete-cms-9.2.8-remote-updater/concrete/src/Application/Application.php:231
| array(0) {
| } -
Concrete\Core\Application\Application->setupPackageAutoloaders() /var/www/html/updates/concrete-cms-9.2.8-remote-updater/concrete/src/Foundation/Runtime/Run/CLIRunner.php:79
| array(0) {
| } -
Concrete\Core\Foundation\Runtime\Run\CLIRunner->run() /var/www/html/updates/concrete-cms-9.2.8-remote-updater/concrete/src/Foundation/Runtime/DefaultRuntime.php:102
| array(0) {
| } -
Concrete\Core\Foundation\Runtime\DefaultRuntime->run() /var/www/html/updates/concrete-cms-9.2.8-remote-updater/concrete/dispatcher.php:45
| array(0) {
| } -
require() /var/www/html/updates/concrete-cms-9.2.8-remote-updater/concrete/bin/concrete:87
| array(1) {
| [0]=>
| string(79) “/var/www/html/updates/concrete-cms-9.2.8-remote-updater/concrete/dispatcher.php”
| } -
require() /var/www/html/concrete/bin/concrete:80
| array(1) {
| [0]=>
| string(77) “/var/www/html/updates/concrete-cms-9.2.8-remote-updater/concrete/bin/concrete”
| }