WordPress.org

Ready to get started?Download WordPress

Forums

[Custom Theme] category_description() causes 324 in chrome (7 posts)

  1. Adam
    Member
    Posted 1 year ago #

    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?

  2. esmi
    Forum Moderator
    Posted 1 year ago #

    What is in your error logs?

  3. Adam
    Member
    Posted 1 year ago #

    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?

  4. esmi
    Forum Moderator
    Posted 1 year ago #

    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?

  5. Adam
    Member
    Posted 1 year ago #

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

  6. esmi
    Forum Moderator
    Posted 1 year ago #

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

  7. Adam
    Member
    Posted 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic