• I am writing a custom theme and I came across this weird error which I have never seen before…

    I get this error in chrome:

    Error 324 (net::ERR_EMPTY_RESPONSE): The server closed the connection without sending any data.

    when running:

    public function aisis_category_description(){
    		if(isset($this->_option['category_description']) && !empty($this->_option['category_description'])){
    			echo $this->_option['category_description'];
    		}else{
    			echo category_description();
    		}
    	}

    which essentially states that if the category description is not set in the options then we use WordPress default category_description function for that category. but when I do this I get the error, which in my apache logs is:

    [Tue Dec 18 22:03:52 2012] [notice] child pid 25545 exit signal Segmentation fault (11)

    If I comment out category_description it all works.

    Thoughts?

Viewing 6 replies - 1 through 6 (of 6 total)
  • What is in your error logs?

    Thread Starter Adam

    (@cscottrun)

    Note: Calling the function on its own does the same thing.

    as for error logs I was viewing:

    var/logs/apache2/error.log

    which is what gave me this error.

    is there some other log I should view?

    No. I was hoping for something a little more specific. Have you tried commenting out individual lines in that code to try and narrow the issue down a little?

    Thread Starter Adam

    (@cscottrun)

    if I comment out the category_description the page works. its the second I uncomment it – that it starts freaking out.

    Have you tried dumping the entire options array to the screen so that you see exactly what is being returned?

    Thread Starter Adam

    (@cscottrun)

    I simply decided to re-write what I was doing and solved the issue

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Custom Theme] category_description() causes 324 in chrome’ is closed to new replies.