Olivier Scherler
2012-02-16 18:12:51 UTC
Hello everybody,
I had a weird problem that I finally solved, but Im having a hard time
understanding what happened.
I was deploying my project on a new server, and everything was going
smoothly, until I switched to the prod environment. Some actions were
working, other werent. I cleared the cache several times and looked at
prod.log. It didnt exist. No a permissions problem. The problematic
actions were also giving no output whatsoever in the browser.
It was finally when I cleared the prod cache with --no-debug (no idea what
it does) that I got the following error:
[ReflectionException]
Class My\GreatBundle\Entity\Foo does not exist
Indeed, I had in my model a couple references, in Doctrine generator
comments (I use yml) and type hinting, to that class that doesnt exist
anymore because I moved it. The methods with these references are not used
in these action. I replaced them with the new class and everything is now
fixed.
Any ideas of what happened? That is:
- why does it only happen in prod mode?
- why does it only give the error with --no-debug?
- what does --no-debug do?
- why does it prevent even the prod log from being written?
Cheers,
Olivier
--
If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com
You received this message because you are subscribed to the Google
Groups "Symfony2" group.
To post to this group, send email to symfony2-/***@public.gmane.org
To unsubscribe from this group, send email to
symfony2+unsubscribe-/***@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/symfony2?hl=en
I had a weird problem that I finally solved, but Im having a hard time
understanding what happened.
I was deploying my project on a new server, and everything was going
smoothly, until I switched to the prod environment. Some actions were
working, other werent. I cleared the cache several times and looked at
prod.log. It didnt exist. No a permissions problem. The problematic
actions were also giving no output whatsoever in the browser.
It was finally when I cleared the prod cache with --no-debug (no idea what
it does) that I got the following error:
[ReflectionException]
Class My\GreatBundle\Entity\Foo does not exist
Indeed, I had in my model a couple references, in Doctrine generator
comments (I use yml) and type hinting, to that class that doesnt exist
anymore because I moved it. The methods with these references are not used
in these action. I replaced them with the new class and everything is now
fixed.
Any ideas of what happened? That is:
- why does it only happen in prod mode?
- why does it only give the error with --no-debug?
- what does --no-debug do?
- why does it prevent even the prod log from being written?
Cheers,
Olivier
--
If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com
You received this message because you are subscribed to the Google
Groups "Symfony2" group.
To post to this group, send email to symfony2-/***@public.gmane.org
To unsubscribe from this group, send email to
symfony2+unsubscribe-/***@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/symfony2?hl=en