index action executed twice

Discussion specific to symfony 1.1.x stable

Moderator: hartym

index action executed twice

Postby pulse00 » Wed Aug 13, 2008 2:19 pm

Hi,

i'm having a strange problem where the index action is executed twice on every request.

Here's the log for one single request:

Code: Select all
Aug 13 14:07:20 symfony [info] {sfPatternRouting} Connect "/"
Aug 13 14:07:20 symfony [info] {sfPatternRouting} Connect "/symfony/:action/*"
Aug 13 14:07:20 symfony [info] {sfPatternRouting} Connect "/:module"
Aug 13 14:07:20 symfony [info] {sfPatternRouting} Connect "/:module/:action/*"
Aug 13 14:07:20 symfony [info] {sfFrontWebController} Initialization
Aug 13 14:07:20 symfony [info] {sfPatternRouting} Match route [homepage] for "/"
Aug 13 14:07:20 symfony [info] {sfWebRequest} Request parameters array (  'file' => '/path/to/someFile', 'module' => 'fileserver',  'action' => 'index',)
Aug 13 14:07:20 symfony [info] {sfContext} Initialization
Aug 13 14:07:20 symfony [info] {sfFrontWebController} Dispatch request
Aug 13 14:07:20 symfony [info] {sfFilterChain} Executing filter "sfRenderingFilter"
Aug 13 14:07:20 symfony [info] {sfFilterChain} Executing filter "sfCommonFilter"
Aug 13 14:07:20 symfony [info] {sfFilterChain} Executing filter "sfExecutionFilter"
Aug 13 14:07:20 symfony [info] {fileserverActions} Call "fileserverActions->executeIndex()"

Aug 13 14:07:20 symfony [info] {sfPatternRouting} Connect "/"
Aug 13 14:07:20 symfony [info] {sfPatternRouting} Connect "/symfony/:action/*"
Aug 13 14:07:20 symfony [info] {sfPatternRouting} Connect "/:module"
Aug 13 14:07:20 symfony [info] {sfPatternRouting} Connect "/:module/:action/*"
Aug 13 14:07:20 symfony [info] {sfFrontWebController} Initialization
Aug 13 14:07:20 symfony [info] {sfPatternRouting} Match route [homepage] for "/"
Aug 13 14:07:20 symfony [info] {sfWebRequest} Request parameters array (  'file' => '/path/to/someFile',  'module' => 'fileserver',  'action' => 'index',)
Aug 13 14:07:21 symfony [info] {sfContext} Initialization
Aug 13 14:07:21 symfony [info] {sfFrontWebController} Dispatch request
Aug 13 14:07:21 symfony [info] {sfFilterChain} Executing filter "sfRenderingFilter"
Aug 13 14:07:21 symfony [info] {sfFilterChain} Executing filter "sfCommonFilter"
Aug 13 14:07:21 symfony [info] {sfFilterChain} Executing filter "sfExecutionFilter"
Aug 13 14:07:21 symfony [info] {fileserverActions} Call "fileserverActions->executeIndex()"


And this is the routing.yml:

Code: Select all
# default rules
homepage:
  url:   /
  param: { module: fileserver, action: index }

default_symfony:
  url:   /symfony/:action/*
  param: { module: default }

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

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



I have no idea why this is happening. The patterns for both requests look exactly identical... Anyone knows what could cause this ?
Last edited by pulse00 on Wed Aug 13, 2008 2:31 pm, edited 1 time in total.
pulse00
Member
 
Posts: 33
Joined: Sun Jun 29, 2008 7:27 pm

Re: index action executed twice

Postby rsevero » Wed Aug 13, 2008 2:30 pm

Just to be sure where is the problem (before getting to know what is the problem) take a look at your www server logs to find out how many request for this page your www server is getting.

After all the problem might not be at symfony at all.


Rodrigo Severo
rsevero
Junior Member
 
Posts: 18
Joined: Fri Jul 11, 2008 4:29 pm

Re: index action executed twice

Postby pulse00 » Wed Aug 13, 2008 4:27 pm

yes, you're right, for some reason i have 2 requests in the apache log. this seems odd. i'll have to track this down on the apache side, thanks for the hint.
pulse00
Member
 
Posts: 33
Joined: Sun Jun 29, 2008 7:27 pm

Re: index action executed twice

Postby pulse00 » Wed Aug 13, 2008 6:27 pm

turns out the second request was sent by the firefox mplayer plugin...
pulse00
Member
 
Posts: 33
Joined: Sun Jun 29, 2008 7:27 pm


Return to symfony 1.1

Who is online

Users browsing this forum: No registered users and 1 guest