Add New Answer results in Fatal Error: Maximum function nesting level of '100' reached

From the wordpress dashboard I go to the Questions menu entry on the left, and click Answers. From there I click "Add new" on the "/wp-admin/edit.php?post_type=answer" page. When I do that I get: Fatal error: Maximum function nesting level of '100' reached, aborting! in D:\WWW\KC\wp-includes\cache.php on line 403

I've tried changing themes and disabling all plug-ins except Q&A, still the same error. Below is the bottom of the call stack. I can provide a more detailed error report (with options like showing parameters) if necessary. I have been trying to figure this out for the last hour, but no success thus far. Obviously there is an infinite loop, but I can't figure out why. I am running Wordpress 3.3.1 and Q&A 1.0.4

83 1.0234 24443656 get_permalink() plugins\qa\core\answers.php:97
84 1.8617 53547824 get_post_permalink( ) wp-includes\link-template.php:111
85 1.8625 53550512 apply_filters( ) wp-includes\link-template.php:207
86 1.8626 53551704 call_user_func_array ( ) wp-includes\plugin.php:337
87 1.8626 53551752 QA_Answers->answer_permalink( ) wp-includes\plugin.php:337
88 1.8626 53551752 get_permalink( ) plugins\qa\core\answers.php:97
89 1.8629 53553120 get_post_permalink( ) wp-includes\link-template.php:111
90 1.8638 53555744 apply_filters( ) wp-includes\link-template.php:207
91 1.8638 53556936 call_user_func_array ( ) wp-includes\plugin.php:337
92 1.8638 53556984 QA_Answers->answer_permalink( ) wp-includes\plugin.php:337
93 1.8638 53556984 get_permalink( ) plugins\qa\core\answers.php:97
94 1.8641 53558352 get_post_permalink( ) wp-includes\link-template.php:111
95 1.8645 53560360 home_url() wp-includes\link-template.php:204
93 1.0278 24452440 get_permalink( ) plugins\qa\core\answers.php:97
94 1.0283 24453808 get_post_permalink() wp-includes\link-template.php:111
95 1.0292 24455640 home_url() wp-includes\link-template.php:204
96 1.0292 24455704 get_home_url() wp-includes\link-template.php:1842
97 1.0293 24455800 get_option() wp-includes\link-template.php:1867
98 1.0295 24456016 wp_cache_get() wp-includes\functions.php:347
99 1.0295 24456080 WP_Object_Cache->get() wp-includes\cache.php:112

  • knowcancer

    Ok I tried that, even upped it to 500. Here is a more detailed report from the top of the call stack, with function parameters. The error of maximum function nesting is from xdebug's protection against infinite recursion, if I disable xdebug it runs until it runs out of memory.

    Fatal error: Maximum function nesting level of '100' reached, aborting! in D:\WWW\KC\wp-includes\cache.php on line 403
    1 0.0003 363200 {main}( ) ..\post-new.php:0
    2 0.9373 53459928 include( 'D:\WWW\KC\wp-admin\edit-form-advanced.php' ) ..\post-new.php:47
    3 0.9384 53461096 get_permalink( $id = 2338, $leavename = ??? ) ..\edit-form-advanced.php:32
    4 0.9391 53464160 get_post_permalink( $id = 2338, $leavename = FALSE, $sample = FALSE ) ..\link-template.php:111
    5 0.9408 53466784 apply_filters( $tag = 'post_type_link', $value = 'http://www.MYSITE.com/?post_type=answer&p=2338', class stdClass { public $ID = 2338; public $post_author = '1'; public $post_date = '2012-01-28 15:29:26'; public $post_date_gmt = '0000-00-00 00:00:00'; public $post_content = ''; public $post_title = 'Auto Draft'; public $post_excerpt = ''; public $post_status = 'auto-draft'; public $comment_status = 'open'; public $ping_status = 'open'; public $post_password = ''; public $post_name = ''; public $to_ping = ''; public $pinged = ''; public $post_modified = '2012-01-28 15:29:26'; public $post_modified_gmt = '0000-00-00 00:00:00'; public $post_content_filtered = ''; public $post_parent = 0; public $guid = '#answer-2338'; public $menu_order = 0; public $post_type = 'answer'; public $post_mime_type = ''; public $comment_count = '0'; public $ancestors = array (); public $filter = 'raw' }, FALSE, FALSE ) ..\link-template.php:207
    6 0.9409 53467976 call_user_func_array ( array (0 => class QA_Answers { public $question_slug = NULL }, 1 => 'answer_permalink'), array (0 => 'http://www.MYSITE.com/?post_type=answer&p=2338', 1 => class stdClass { public $ID = 2338; public $post_author = '1'; public $post_date = '2012-01-28 15:29:26'; public $post_date_gmt = '0000-00-00 00:00:00'; public $post_content = ''; public $post_title = 'Auto Draft'; public $post_excerpt = ''; public $post_status = 'auto-draft'; public $comment_status = 'open'; public $ping_status = 'open'; public $post_password = ''; public $post_name = ''; public $to_ping = ''; public $pinged = ''; public $post_modified = '2012-01-28 15:29:26'; public $post_modified_gmt = '0000-00-00 00:00:00'; public $post_content_filtered = ''; public $post_parent = 0; public $guid = '#answer-2338'; public $menu_order = 0; public $post_type = 'answer'; public $post_mime_type = ''; public $comment_count = '0'; public $ancestors = array (...); public $filter = 'raw' }) ) ..\plugin.php:337
    7 0.9409 53468024 QA_Answers->answer_permalink( $post_link = 'http://www.MYSITE.com/?post_type=answer&p=2338', $post = class stdClass { public $ID = 2338; public $post_author = '1'; public $post_date = '2012-01-28 15:29:26'; public $post_date_gmt = '0000-00-00 00:00:00'; public $post_content = ''; public $post_title = 'Auto Draft'; public $post_excerpt = ''; public $post_status = 'auto-draft'; public $comment_status = 'open'; public $ping_status = 'open'; public $post_password = ''; public $post_name = ''; public $to_ping = ''; public $pinged = ''; public $post_modified = '2012-01-28 15:29:26'; public $post_modified_gmt = '0000-00-00 00:00:00'; public $post_content_filtered = ''; public $post_parent = 0; public $guid = '#answer-2338'; public $menu_order = 0; public $post_type = 'answer'; public $post_mime_type = ''; public $comment_count = '0'; public $ancestors = array (); public $filter = 'raw' } ) ..\plugin.php:337
    8 0.9410 53468024 get_permalink( $id = 0, $leavename = ??? ) ..\answers.php:97
    9 0.9415 53469392 get_post_permalink( $id = 2338, $leavename = FALSE, $sample = FALSE ) ..\link-template.php:111
    10 0.9432 53472016 apply_filters( $tag = 'post_type_link', $value = 'http://www.MYSITE.com/?post_type=answer&p=2338', class stdClass { public $ID = 2338; public $post_author = '1'; public $post_date = '2012-01-28 15:29:26'; public $post_date_gmt = '0000-00-00 00:00:00'; public $post_content = ''; public $post_title = 'Auto Draft'; public $post_excerpt = ''; public $post_status = 'auto-draft'; public $comment_status = 'open'; public $ping_status = 'open'; public $post_password = ''; public $post_name = ''; public $to_ping = ''; public $pinged = ''; public $post_modified = '2012-01-28 15:29:26'; public $post_modified_gmt = '0000-00-00 00:00:00'; public $post_content_filtered = ''; public $post_parent = 0; public $guid = '#answer-2338'; public $menu_order = 0; public $post_type = 'answer'; public $post_mime_type = ''; public $comment_count = '0'; public $ancestors = array (); public $filter = 'raw' }, FALSE, FALSE ) ..\link-template.php:207
    11 0.9433 53473208 call_user_func_array ( array (0 => class QA_Answers { public $question_slug = NULL }, 1 => 'answer_permalink'), array (0 => 'http://www.MYSITE.com/?post_type=answer&p=2338', 1 => class stdClass { public $ID = 2338; public $post_author = '1'; public $post_date = '2012-01-28 15:29:26'; public $post_date_gmt = '0000-00-00 00:00:00'; public $post_content = ''; public $post_title = 'Auto Draft'; public $post_excerpt = ''; public $post_status = 'auto-draft'; public $comment_status = 'open'; public $ping_status = 'open'; public $post_password = ''; public $post_name = ''; public $to_ping = ''; public $pinged = ''; public $post_modified = '2012-01-28 15:29:26'; public $post_modified_gmt = '0000-00-00 00:00:00'; public $post_content_filtered = ''; public $post_parent = 0; public $guid = '#answer-2338'; public $menu_order = 0; public $post_type = 'answer'; public $post_mime_type = ''; public $comment_count = '0'; public $ancestors = array (...); public $filter = 'raw' }) ) ..\plugin.php:337
    12 0.9433 53473256 QA_Answers->answer_permalink( $post_link = 'http://www.MYSITE.com/?post_type=answer&p=2338', $post = class stdClass { public $ID = 2338; public $post_author = '1'; public $post_date = '2012-01-28 15:29:26'; public $post_date_gmt = '0000-00-00 00:00:00'; public $post_content = ''; public $post_title = 'Auto Draft'; public $post_excerpt = ''; public $post_status = 'auto-draft'; public $comment_status = 'open'; public $ping_status = 'open'; public $post_password = ''; public $post_name = ''; public $to_ping = ''; public $pinged = ''; public $post_modified = '2012-01-28 15:29:26'; public $post_modified_gmt = '0000-00-00 00:00:00'; public $post_content_filtered = ''; public $post_parent = 0; public $guid = '#answer-2338'; public $menu_order = 0; public $post_type = 'answer'; public $post_mime_type = ''; public $comment_count = '0'; public $ancestors = array (); public $filter = 'raw' } ) ..\plugin.php:337
    13 0.9433 53473256 get_permalink( $id = 0, $leavename = ??? ) ..\answers.php:97
    14 0.9438 53474624 get_post_permalink( $id = 2338, $leavename = FALSE, $sample = FALSE ) ..\link-template.php:111
    15 0.9455 53477248 apply_filters( $tag = 'post_type_link', $value = 'http://www.MYSITE.com/?post_type=answer&p=2338', class stdClass { public $ID = 2338; public $post_author = '1'; public $post_date = '2012-01-28 15:29:26'; public $post_date_gmt = '0000-00-00 00:00:00'; public $post_content = ''; public $post_title = 'Auto Draft'; public $post_excerpt = ''; public $post_status = 'auto-draft'; public $comment_status = 'open'; public $ping_status = 'open'; public $post_password = ''; public $post_name = ''; public $to_ping = ''; public $pinged = ''; public $post_modified = '2012-01-28 15:29:26'; public $post_modified_gmt = '0000-00-00 00:00:00'; public $post_content_filtered = ''; public $post_parent = 0; public $guid = '#answer-2338'; public $menu_order = 0; public $post_type = 'answer'; public $post_mime_type = ''; public $comment_count = '0'; public $ancestors = array (); public $filter = 'raw' }, FALSE, FALSE ) ..\link-template.php:207

  • Timothy Bowers

    Hey there! :slight_smile:

    Just checking in to see how things are going with this one and if you need any further help. :slight_smile:

    Not sure if you saw this:

    https://bugs.php.net/bug.php?id=37675

    We haven't heard from you on this thread for a while, perhaps you got help over email. I'm going to presume your all fixed up now and don't need any further assistance.

    However if you have more questions or need some more help then please feel free to respond in this thread or create a new one and we will be more than happy to offer assistance. :slight_smile:

    Take care.

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.