Question

hi everyone i am new to symfony2 cmf i have success fully installed the cmf to my local system and it run suceessfully but my problem is when i deploy it ti my server it gives following error

error

Class 'Doctrine\ODM\PHPCR\Document\Generic' is not a valid document or mapped super class

.

CRITICAL - Uncaught PHP Exception Doctrine\ODM\PHPCR\Mapping\MappingException: "Class 'Doctrine\ODM\PHPCR\Document\Generic' is not a valid document or mapped super class." at /home/mahavl5z/public_html/mahaveer/cmf-sandbox1/vendor/doctrine/phpcr-odm/lib/Doctrine/ODM/PHPCR/Mapping/MappingException.php line 53 
Was it helpful?

Solution

When your application runs in the "prod" environment (that is, not going through app_dev.php) you need to make sure the cache is up to date.

php app/console cache:clear

for performance reason, symfony skips a lot of checks in prod mode.

if this does not fix the issue, check if "prod" works locally and if you miss something when deploying.

as I don't get notifications on disucssions here, please open an issue on the relevant github project if you have further questions.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top