This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use the new forum.
Home » legacy support » symfony 1.2 » Prod environment and admin generator -> BUG?
Prod environment and admin generator -> BUG? [message #77049] Sat, 18 April 2009 13:02 Go to next message
Seikilos  is currently offline 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 Go to previous message
jpipas  is currently offline 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.
Previous Topic:Symfony for High Performance Applications
Next Topic:sfRoute::generate() - absolute urls?
Goto Forum:
  

powered by FUDforum - copyright ©2001-2004 FUD Forum Bulletin Board Software