Skip to content
This repository has been archived by the owner on Feb 6, 2022. It is now read-only.

swiftmailer:spool:send #22

Closed
jonlil opened this issue Sep 12, 2012 · 3 comments
Closed

swiftmailer:spool:send #22

jonlil opened this issue Sep 12, 2012 · 3 comments

Comments

@jonlil
Copy link

jonlil commented Sep 12, 2012

I'm using the spool command on a windows machine.

the following command forces me to re-build the cache
php app/console swiftmailer:spool:send --env=prod
but this works
php app/console swiftmailer:spool:send --env=prod --no-debug

In my apache error_log:
[Wed Sep 12 15:53:09 2012] [error] [client ] PHP Fatal error: Class 'EM505093a7cf22b546a8d2\CG_\Doctrine\ORM\EntityManager' not found in D:\wwwroot\example.com\app\cache\prod\appProdProjectContainer.php on line 115

@stof
Copy link
Member

stof commented Sep 13, 2012

As mentioned in symfony/symfony#5503, mixing debug and non-debug mode for the same environment is likely to break things (Doctrine proxies are autogenerated in debug mode but require a cache warmup in non-debug mode).

Note that the console file shipped with 2.1 automatically set the kernel in non-debug mode when you set the environment to prod to solve a common case where this issue happen.

@stof stof closed this as completed Sep 13, 2012
@jonlil
Copy link
Author

jonlil commented Sep 13, 2012

I can accept that, but i can't accept that command in example allows a whole web application to be unreachable.
Some documentation or that the script fails?

@stof
Copy link
Member

stof commented Sep 13, 2012

which is also why Symfony 2.1 switches the debug mode in the console to be non-debug by default when running the command in the prod environment

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants