0
votes

Where i can search the errors for this problem? I have:

http://www.mypage.com/module/action and http://www.mypage.com/frontend_dev.php/module/action

this working ok (this action and module exist)

if i open:

http://www.mypage.com/frontend_dev.php/module/actionewr

then i have error:

404 | Not Found | sfError404Exception
Action "module/actionewr" does not exist.
stack trace

this is OK, but if i open:

http://www.mypage.com/module/actionewr

then i have blank page. all is white, in source is empty.

how can i set 404 in Symfony 1.4? Now i can't check where this redirect my and modify this?

if i set in settings.yml:

  .actions:
    error_404_module:       default
    error_404_action:       error404

this working ok, but i would like add for this own module and action

4

4 Answers

2
votes

You can configure it in settings.yml :

  .actions:
    error_404_module: module_name
    error_404_action: action_name
1
votes

You can configure it in settings.yml :

.actions:

error_404_module: module_name
error_404_action: action_name

And in index.php :

$configuration = ProjectConfiguration::getApplicationConfiguration('frontend', 'dev', false);
sfContext::createInstance($configuration)->dispatch();
0
votes

Check error logs of your web server. Normally symfony shows a nice error page if anything goes wrong on the prod environment.

Read a bit more about it here: http://www.symfony-project.org/book/1_2/19-Mastering-Symfony-s-Configuration-Files#chapter_19_sub_default_modules_and_actions

(It's about symfony 1.2 but in 1.4 it's similar).

0
votes

I've added this code:

$configuration = ProjectConfiguration:
              :getApplicationConfiguration('frontend', 'dev', false);

into index.php.