Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Zope: Users

404 error

 

 

Zope users RSS feed   Index | Next | Previous | View Threaded


garry at schoolteachers

Mar 21, 2009, 5:21 AM

Post #1 of 5 (1362 views)
Permalink
404 error

I am trying to verify my site with google but keep getting this error:

We've detected that your 404 (file not found) error page returns a status of 200
(Success) in the header.

How could I correct this?

Regards
Garry
_______________________________________________
Zope maillist - Zope [at] zope
http://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )


lists at zopyx

Mar 21, 2009, 5:55 AM

Post #2 of 5 (1276 views)
Permalink
Re: 404 error [In reply to]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 21.03.2009 13:21 Uhr, garry [at] schoolteachers wrote:
> I am trying to verify my site with google but keep getting this error:
>
> We've detected that your 404 (file not found) error page returns a status of 200
> (Success) in the header.
>
> How could I correct this?
>

How to reproduce? URL? Zope does not send a 200 response:

ajung [at] suxmac:/tmp wget -S http://www.zope.de/does-not-exist
- --2009-03-21 13:54:31-- http://www.zope.de/does-not-exist
Resolving www.zope.de... 213.187.85.150
Connecting to www.zope.de|213.187.85.150|:80... connected.
HTTP request sent, awaiting response...
HTTP/1.1 404 Not Found
Date: Sat, 21 Mar 2009 12:54:31 GMT
Server: Zope/(Zope 2.8.6-final, python 2.3.5, linux2) ZServer/1.1
Plone/Unknown
Bobo-Exception-Line: 644
Content-Length: 18937
Bobo-Exception-Value: See the server error log for details
Content-Language: de
Bobo-Exception-File: HTTPResponse.py
Bobo-Exception-Type: NotFound
Expires: Sat, 01 Jan 2000 00:00:00 GMT
Content-Type: text/html;charset=utf-8
Connection: close
2009-03-21 13:54:31 ERROR 404: Not Found.


- -aj
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAknE47MACgkQCJIWIbr9KYwiiACdH3VfFg/vOZoJuY7zJVYRQ5ar
EO8An3+zDd18XN72w92VSoCjArt0SoCv
=uuhx
-----END PGP SIGNATURE-----
Attachments: lists.vcf (0.31 KB)


tseaver at palladion

Mar 21, 2009, 5:56 AM

Post #3 of 5 (1276 views)
Permalink
Re: 404 error [In reply to]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

garry [at] schoolteachers wrote:
> I am trying to verify my site with google but keep getting this error:
>
> We've detected that your 404 (file not found) error page returns a status of 200
> (Success) in the header.
>
> How could I correct this?

- - Have the code in your your 'standard_error_template' which deals with
missing items call 'request["RESPONSE"].setStatus(404)'.

- - Don't handle those errors in your 'standard_error_template' at all.


Tres.
- --
===================================================================
Tres Seaver +1 540-429-0999 tseaver [at] palladion
Palladion Software "Excellence by Design" http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJxOQa+gerLs4ltQ4RAhiLAJ93lmPPgmyPTpPz177gGkYD8GqhygCggmTr
ul0Nb2j4x7hAhcDO7NTox8Y=
=94Gw
-----END PGP SIGNATURE-----

_______________________________________________
Zope maillist - Zope [at] zope
http://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )


garry at schoolteachers

Mar 21, 2009, 6:09 AM

Post #4 of 5 (1273 views)
Permalink
Re: 404 error [In reply to]

Quoting Andreas Jung <lists [at] zopyx>:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 21.03.2009 13:21 Uhr, garry [at] schoolteachers wrote:
>> I am trying to verify my site with google but keep getting this error:
>>
>> We've detected that your 404 (file not found) error page returns a
>> status of 200
>> (Success) in the header.
>>
>> How could I correct this?
>>
>
> How to reproduce? URL? Zope does not send a 200 response:
>
> ajung [at] suxmac:/tmp wget -S http://www.zope.de/does-not-exist
> - --2009-03-21 13:54:31-- http://www.zope.de/does-not-exist
> Resolving www.zope.de... 213.187.85.150
> Connecting to www.zope.de|213.187.85.150|:80... connected.
> HTTP request sent, awaiting response...
> HTTP/1.1 404 Not Found
> Date: Sat, 21 Mar 2009 12:54:31 GMT
> Server: Zope/(Zope 2.8.6-final, python 2.3.5, linux2) ZServer/1.1
> Plone/Unknown
> Bobo-Exception-Line: 644
> Content-Length: 18937
> Bobo-Exception-Value: See the server error log for details
> Content-Language: de
> Bobo-Exception-File: HTTPResponse.py
> Bobo-Exception-Type: NotFound
> Expires: Sat, 01 Jan 2000 00:00:00 GMT
> Content-Type: text/html;charset=utf-8
> Connection: close
> 2009-03-21 13:54:31 ERROR 404: Not Found.
>
This is the URL I have submitted to Google:

http://www.reidcarleasing.co.uk/googleb6e4b8f92f9cedbf.html


Regards
Garry

_______________________________________________
Zope maillist - Zope [at] zope
http://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )


akm at theinternet

Mar 21, 2009, 6:16 AM

Post #5 of 5 (1277 views)
Permalink
Re: 404 error [In reply to]

+-------[ garry [at] schoolteachers ]----------------------
| Quoting Andreas Jung <lists [at] zopyx>:
|
| > -----BEGIN PGP SIGNED MESSAGE-----
| > Hash: SHA1
| >
| > On 21.03.2009 13:21 Uhr, garry [at] schoolteachers wrote:
| >> I am trying to verify my site with google but keep getting this error:
| >>
| >> We've detected that your 404 (file not found) error page returns a
| >> status of 200
| >> (Success) in the header.
| >>
| >> How could I correct this?
| >>
| >
| > How to reproduce? URL? Zope does not send a 200 response:
| >
| > ajung [at] suxmac:/tmp wget -S http://www.zope.de/does-not-exist
| > - --2009-03-21 13:54:31-- http://www.zope.de/does-not-exist
| > Resolving www.zope.de... 213.187.85.150
| > Connecting to www.zope.de|213.187.85.150|:80... connected.
| > HTTP request sent, awaiting response...
| > HTTP/1.1 404 Not Found
| > Date: Sat, 21 Mar 2009 12:54:31 GMT
| > Server: Zope/(Zope 2.8.6-final, python 2.3.5, linux2) ZServer/1.1
| > Plone/Unknown
| > Bobo-Exception-Line: 644
| > Content-Length: 18937
| > Bobo-Exception-Value: See the server error log for details
| > Content-Language: de
| > Bobo-Exception-File: HTTPResponse.py
| > Bobo-Exception-Type: NotFound
| > Expires: Sat, 01 Jan 2000 00:00:00 GMT
| > Content-Type: text/html;charset=utf-8
| > Connection: close
| > 2009-03-21 13:54:31 ERROR 404: Not Found.
| >
| This is the URL I have submitted to Google:
|
| http://www.reidcarleasing.co.uk/googleb6e4b8f92f9cedbf.html


Your webserver is configured poorly...

Response Headers
Connection Close
X-R4L-VHOST reidcarleasing.co.uk
Content-Type text/html
Content-Length 488
Date Sat, 21 Mar 2009 13:12:06 GMT
Server lighttpd

Which redirects using <META> to your zope (84.45.131.100:8080)
directly.. which THEN gives;

Response Headers
Server Zope/(Zope 2.9.0-, python 2.4.5, linux2) ZServer/1.1
Date Sat, 21 Mar 2009 13:12:06 GMT
Bobo-Exception-Line 656
Content-Length 1039
Bobo-Exception-Value See the server error log for details
Content-Type text/html; charset=iso-8859-15
Bobo-Exception-Type NotFound
Bobo-Exception-File HTTPResponse.py

Which also shows;

(Also, the following error occurred while attempting to render the
standard error message, please see the event log for full details: Not
Found)

--
Andrew Milton
akm [at] theinternet
_______________________________________________
Zope maillist - Zope [at] zope
http://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )

Zope users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.