I think I found a bug. On dev environment the form tag of the edit
form outputs the action properly however switching to prod or to other
environment the edit action throws an error.

500 | Internal Server Error | InvalidArgumentException
The "/lead/:id/edit.:sf_format" route has some missing mandatory
parameters (:id).
stack trace

    * at ()
      in SF_SYMFONY_LIB_DIR/routing/sfRoute.class.php line 212 ...
             209.     if ($diff = array_diff_key($this->variables,
$tparams))
             210.
             211.     {
             212.       throw new InvalidArgumentException(sprintf
('The "%s" route has some missing mandatory parameters (%s).', $this-
>pattern, implode(', ', $diff)));

             213.     }
             214.
             215.     if ($this->options['generate_shortest_url'])
    * at sfRoute->generate(array(), '', '')
      in SF_SYMFONY_LIB_DIR/routing/sfRequestRoute.class.php line
98 ...

I verified this by commenting line 212 of SF_SYMFONY_LIB_DIR/routing/
sfRoute.class.php. This time the form shows up but submitting it, the
error will be thrown again. I investigated and found out that the said
form tag has no id which is a required parameter.

Take note that this is for the default setup. I didnt edit anything
from routing.yml, generator.yml or factories.yml.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-devs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to