[resolved] only get 404 response - bad configuration or missing dependency?

Notes and reports about symfony 1.0.x stable

Moderators: dwhittle, Ian

[resolved] only get 404 response - bad configuration or missing dependency?

Postby seanr » Sat Dec 02, 2006 12:14 am

I'm getting symfony 1.0beta installed on a remote server (linux) for the first time and I'm having configuration problems. I am unable to access my index.php (or fooapp_dev.php). My local instance is running on OS X without any problems.

It is the same project on both computers, but on the remote server I only get the "Oops! Page Not Found The server returned a 404 response" response. This is what I am seeing on the remote server via the symfony toobar:

Code: Select all
1    Context   initialization
2    Controller   initialization
3    Routing   match route [homepage] "/"
4    Request   request parameters array ( 'module' => 'Survey', 'action' => 'list',)
5    Controller   dispatch request
6    Controller   action does not exist
7    Filter   executing filter "sfRenderingFilter"
8    Filter   executing filter "sfWebDebugFilter"
9    Filter   executing filter "sfCommonFilter"
10    Filter   executing filter "sfFlashFilter"
11    Filter   executing filter "sfExecutionFilter"
12    Action   change layout to "sf_root_dir/config/../data/symfony/modules/default/templates/defaultLayout"
13    Action   call "defaultActions->executeError404()"
14    View   initialize view for "default/error404"
15    View   render "sf_root_dir/config/../data/symfony/modules/default/templates/error404Success.php"
16    View   decorate content with "sf_root_dir/config/../data/symfony/modules/default/templates/defaultLayout.php"
17    View   render "sf_root_dir/config/../data/symfony/modules/default/templates/defaultLayout.php"


and on my local instance I see:
Code: Select all
1    Context   initialization
2    Controller   initialization
3    Routing   match route [homepage] "/"
4    Request   request parameters array ( 'module' => 'Survey', 'action' => 'list',)
5    User   automatic user logout
6    User   user is not authenticated
7    Controller   dispatch request
8    Filter   executing filter "sfRenderingFilter"
9    Filter   executing filter "sfWebDebugFilter"
10    Filter   executing filter "sfCommonFilter"
11    Filter   executing filter "sfFlashFilter"
12    Filter   executing filter "sfExecutionFilter"
13    Action   call "surveyActions->executeList()"
14    View   initialize view for "Survey/list"
15    View   render "sf_root_dir/cache/frontend/dev/modules/autoSurvey/templates/listSuccess.php"
16    View   initialize view for "Survey/_list_header"
[etc...]


I'm not sure what other details would be helpful... let me know and I'll follow up with them more info...

Thank you,
Sean
Last edited by seanr on Mon Dec 04, 2006 4:57 am, edited 1 time in total.
seanr
Junior Member
 
Posts: 23
Joined: Thu Nov 30, 2006 5:53 pm
Location: seattle

Re: only get 404 response - bad configuration or missing dependency?

Postby tamcy » Sat Dec 02, 2006 2:59 am

Module and action names are case sensitive. You may check if the directory and action name match exactly to what you type on the address bar.
tamcy
Faithful Member
 
Posts: 222
Joined: Mon Feb 13, 2006 2:00 pm
Location: Hong Kong

Re: only get 404 response - bad configuration or missing dependency?

Postby N_Ox » Sat Dec 02, 2006 3:18 am

Actually, I am facing the same problem, I have two old propel-admin modules that can't stop giving 404 errors. The strange thing is that default propel-admin modules and newly created modules work.

EDIT : The problem had ABSOLUTELY nothing to do with a 404 error curse, just a mispelled sfActions class name in the authentication module, the mad ones were secured.
Last edited by N_Ox on Sat Dec 02, 2006 3:24 am, edited 1 time in total.
N_Ox
Junior Member
 
Posts: 5
Joined: Fri Oct 13, 2006 7:09 pm
Location: Paris

Re: only get 404 response - bad configuration or missing dependency?

Postby seanr » Mon Dec 04, 2006 4:56 am

accidental post - delete me
Last edited by seanr on Mon Dec 04, 2006 4:58 am, edited 1 time in total.
seanr
Junior Member
 
Posts: 23
Joined: Thu Nov 30, 2006 5:53 pm
Location: seattle


Return to symfony 1.0

Who is online

Users browsing this forum: No registered users and 0 guests