| Prod environment and admin generator -> BUG? [message #77049] |
Sat, 18 April 2009 13:02  |
Seikilos Messages: 609 Registered: May 2008 Location: Germany |
Faithful Member |
|
|
I created a ticket for that: http://trac.symfony-project.org/ticket/6302
I am wondering why that happen:
I have a backend with some admin-generated fields, for instance "Company"
The admin generator creates a CRUD and links like "company/14/edit" to edit these companies. I am sure you all know that.
This works entirely well while being in the dev environment.
But switching to prod environment and accessing the backend via backend.php and editing a company via the same link as mentioned above: "company/14/edit"
resuls in the following server error:
500 | Internal Server Error | InvalidArgumentException
The "/company/:id.:sf_format" route has some missing mandatory parameters (:id).
So the same call in the prod as in dev causes an 500 error.
I have NOT touched the settings for the prod environment in settings.yml
BUT if I add the following line to settings for prod: logging_enabled: on
all works well.
So this works (settings.yml):
prod:
.settings:
no_script_name: off
logging_enabled: on
and this one DON'T:
prod:
.settings:
no_script_name: off
logging_enabled: off
Can somebody reproduce that? I can only run backend.php with logging?!
It is tricky to debug since it only occurs when logging is off...
[Updated on: Sat, 18 April 2009 13:13] Debugging is all I doֻ (if these dots are not in line then your screen is broken)
|
|
|
| Re: Prod environment and admin generator -> BUG? [message #78204 is a reply to message #77049 ] |
Tue, 12 May 2009 18:21  |
jpipas Messages: 3 Registered: November 2005 Location: Michigan |
Junior Member |
|
|
|
I too am getting the same results. By turning logging on in my settings for prod - the error goes away. However, the moment I turn it off, we're back to square one.
|
|
|