[pLog-svn] forum/bugs help: 404 errors not being sent?

Mark Wu markplace at gmail.com
Fri Jan 11 03:29:59 EST 2008


Hi Jon:

I don't think it is a bug....

If the article does not exist, the viewarticleaction will use the errorview
to show the error messasge "fetch article error"

So, lifetype does return a  "HTTP/1.0 200 OK"; to this invalid url ... from
the very beginning version, we already do this.

Anyway, If  user insist to do that, mmm..... then he should modify the
viewarticleaction to change reponse status from 200 to 404 like the
following ....


		function _setErrorView()
		{
			$this->_view = new ErrorView( $this->_blogInfo );
			$this->_view->setValue( "message",
"error_fetching_article" );
			$this->_headers[0] = "HTTP/1.0 404 Not Found";
			$this->setCommonData();		
		}

Mark


> -----Original Message-----
> From: plog-svn-bounces at devel.lifetype.net 
> [mailto:plog-svn-bounces at devel.lifetype.net] On Behalf Of Jon Daley
> Sent: Friday, January 11, 2008 11:31 AM
> To: LifeType SVN
> Subject: [pLog-svn] forum/bugs help: 404 errors not being sent?
> 
> Can anyone here help?
> 
> http://bugs.lifetype.net/view.php?id=1440
> _______________________________________________
> pLog-svn mailing list
> pLog-svn at devel.lifetype.net
> http://limedaley.com/mailman/listinfo/plog-svn
> 



More information about the pLog-svn mailing list