2
votes

I uploaded my project to the server. Everything worked great locally but in the server, once a click a link or try to go manually (writing the direction in the module/template way), I get the error "The route "xxx" does not exist."

Please help me out, I'm out of ideas.

Thanks!

---Routing.yml---

default_index: url: /:module param: { action: index }

default: url: /:module/:action/*

---Error Message---

More info about the error: 500 | Internal Server Error | sfConfigurationException

The route "xxx" does not exist.

stack trace at () in SF_SYMFONY_LIB_DIR/routing/sfPatternRouting.class.php line 313 ... // named route

  if (!isset($this->routes[$name]))
  {
    throw new sfConfigurationException(sprintf('The route "%s" does not exist.', $name));
  }

  $route = $this->routes[$name];

  $this->ensureDefaultParametersAreSet();
3
Which version of Symfony do you use ? 1.4 ?Frosty Z
Have you tried to clear Symfony cache on your server ? Could you copy-paste the content of your routing.yml file into your question ? Check this as well: oldforum.symfony-project.org/index.php/m/37238Frosty Z
Sounds like symfony cc is needed.Tom
As well as the routing.yml, it would be really helpful to know the URL that you're actually requesting, and the actual route that Symfony is telling you doesn't exist.Matt Gibson
@Frosty: Thanks for your comments! I am using symfony 1.4 and tried clear cache on the server several times. I copied the content of routing.yml in the question.Hans

3 Answers

3
votes

Clear symfony cache on your production:

./symfony cc
1
votes

Please verify routing.yml file. If you have not define any rules for that link than it will display a fatal error:

for ex. :

link_to('Registration','user_registration')

In rounting.yml :

user_registration:
  url: /register/userRegistration.html
  param: {module: register, action: userRegistration}
0
votes

You may used link_to tag any where in page and you may provide there xxx in link url value. have to provide there module/action pattern or add xxx routing rule in routing.yml file