[wp-trac] [WordPress Trac] #14052: File get http status 404 but is served !
WordPress Trac
wp-trac at lists.automattic.com
Tue Jun 22 21:39:27 UTC 2010
#14052: File get http status 404 but is served !
--------------------------+-------------------------------------------------
Reporter: maximeh | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Unassigned
Component: HTTP | Version: 3.0
Severity: normal | Keywords:
--------------------------+-------------------------------------------------
I have recently upgraded my installation of wordpress from 2.9.2 to 3.0
and the only things that did not work was my archive plugin... After a few
research, it appeared that the .js.php file included by the plugin in my
page got a 404 status.
After triple checking, the file is here and in a good place, accessible by
the src url of the javascript include.
I also noticed that even if the return code was 404, the file was served
by apache.
I went chasing header function in the wordpress code and using my dearest
friend : grep and diff.
A line was modified from 2.9.2 but not for the better...
Here is the patch that made thing working for me as I'm not familiar with
Wordpress code, I'm not sure I did write. I checked but did not found any
tickets that had some similarity with this one but my config is standard :
apache 2.2.14 with php 5.3.2 (ubuntu flavor).
My patch revert the if statement to 2.9.2 it's maybe not the best way (if
this condition was removed it's surely for a reason) but my file is no
longer served with a 404 return code.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14052>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list