[wp-hackers] 404 Pages displaying as blank

Otto otto at ottodestruct.com
Thu Sep 3 18:10:13 UTC 2009


WordPress handles 404's internally. You don't need to define a custom
error page. Just let it redirect to the index.php like normal.

The 404 page served by WordPress is whatever is in 404.php in your
theme directory.

-Otto
Sent from Memphis, TN, United States


On Thu, Sep 3, 2009 at 6:34 AM,
leon.ash at tawnylion.com<leon.ash at tawnylion.com> wrote:
> Apologies if this is either a new thread or multiple mails. I haven't used
> a mailing list for a couple of years.
>
> I'm unable to access my hosted files from my current location so can't
> remove the redirection. Will be able to do so in about 5-6 hours and will
> report outcome here. If you wanted to 'see' what I have I have done a
> 'vanilla' install at preview.tawnylion.com that is currently configured to
> /%postname% as permalinks and the 'default' redirection of
>
> RewriteEngine On
> RewriteBase /
> RewriteCond %{REQUEST_FILENAME} !-f
> RewriteCond %{REQUEST_FILENAME} !-d
> RewriteRule . /index.php [L]
>
> If my memory serves me right with a default install, using the default
> permalinks settings I kept getting the index page. This is with IIS6
> configured to a custom error page of /index.php?error=404.
>
> With redirection as described it displays blank as it 'dies' somewhere
> whilst processing the 404.php file
>
> L
>
> ----------------------------------------
>  From: "Dion Hulse (dd32)" <wordpress at dd32.id.au>
> Sent: 03 September 2009 12:13
> To: wp-hackers at lists.automattic.com
> Subject: Re: [wp-hackers] 404 Pages displaying as blank
>
> Yep, I meant disabling the use of rewrites all together.
>
> On Thu, 03 Sep 2009 21:07:29 +1000, leon.ash at tawnylion.com
> wrote:
>
>> Dion,
>>
>> I have WP_Debug defined as true and there are no 'error' message that I
>> can
>> see. I know the log is working as I get the error_log output :-)
>>
>> When you say disable rewriting, what do you mean. Remove the 'default'
>> entries from .htaccess and switch of permalinks?
>>
>> L
>>
>> ----------------------------------------
>> From: "leon.ash at tawnylion.com"
>> Sent: 03 September 2009 11:42
>> To: wp-hackers at lists.automattic.com
>> Subject: 404 Pages displaying as blank
>>
>> Hello,
>>
>> I'm experiencing a strange problem I'm hoping someone here may have some
>> suggestions on how to solve.
>>
>> I started a thread here: http://wordpress.org/support/topic/305273 but
>> haven't received any replies. To save me having to retype it all I'd
>> appreciate it if you could look there for the details.
>>
>> In summary I've got my first WordPress site up and running with rewrites
>> working as expected for everything apart from one small, but annoying
>> glitch.
>>
>> My 404 pages are all shown as 'blank' pages. If you look at the details
>> I've confirmed this behaviour on a fresh install with no plugins.
>> Pemalinks
>> is set to /%postname%/, the site is hosted on IIS 6 and has Helicon's
>> ISAPI_Rewrite installed.
>>
>> I've inserted error_log statments into parse_query in classes.php and
> can
>> confirm that the 'query' for 404 pages is 'name=error=404&page='. The
>> headers of returned pages indicate a 404 Not Found code, but the pages
>> are
>> blank. This implies the rewriting is fine.
>>
>> The last interesting thing is that I also added error_log statements
> into
>> many of the theme files and the 'log entries' per invalid url request
>> terminate in different components of the 'theme'. Details in post.
>>
>> Any suggestions and help appreciated.
>>
>> Thank you
>> Leon
>>
>>_______________________________________________
>> wp-hackers mailing list
>> wp-hackers at lists.automattic.com
>> http://lists.automattic.com/mailman/listinfo/wp-hackers
>>
>
> --
> --
> Dion Hulse
> e: contact at dd32.id.au
> w: http://dd32.id.au/
> m: 04 6621 9112 (+614 6621 9112)
> WordPressQI: http://wordpressqi.com/
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>


More information about the wp-hackers mailing list