BoldGrid / w3-total-cache

GNU General Public License v2.0
152 stars 85 forks source link

Fatal error: Uncaught Error: Xdebug has detected a possible infinite loop #806

Closed khanakia closed 3 months ago

khanakia commented 9 months ago

I am using PHP 8.1 and when enable the w3 total cache plugin getting this error

Check this file for full error error.md


( ! ) Fatal error: Uncaught Error: Xdebug has detected a possible infinite loop, and aborted your script with a stack depth of '512' frames in /home/dumro/public_html/wp-includes/plugin.php on line 281
Call Stack
#   Time    Memory  Function    Location
1   0.4871  7125992 newrelic_exception_handler( $exception = class Error { protected $message = 'Xdebug has detected a possible infinite loop, and aborted your script with a stack depth of \'512\' frames'; private string $string = 'Error: Xdebug has detected a possible infinite loop, and aborted your script with a stack depth of \'512\' frames in /home/dumro/public_html/wp-includes/plugin.php:281\nStack trace:\n#0 /home/dumro/public_html/wp-includes/class-wpdb.php(2425): has_filter(\'query\', Array)\n#1 /home/dumro/public_html/wp-includes/class-wpdb.php(2445): wpdb->placeholder_escape()\n#2 /home/dumro/public_html/wp-includes/class-wpdb.php
(1294): wpdb->add_placeholder_escape(\'auth_key\')\n#3 /home/dumro/'...; protected $code = 0; protected string $file = '/home/dumro/public_html/wp-includes/plugin.php'; protected int $line = 281; private array $trace = [0 => [...], 1 => [...], 2 => [...], 3 => [...], 4 => [...], 5 => [...], 6 => [...], 7 => [...], 8 => [...], 9 => [...], 10 => [...], 11 => [...], 12 => [...], 13 => [...], 14 => [...], 15 => [...], 16 => [...], 17 => [...], 18 => [...], 19 => [...], 20 => [...], 21 => [...], 22 => [...], 23 => [...], 24 => [...], 25 => [...], 26 => [...], 27 => [...], 28 => [...], 29 => [...], 30 => [...], 31 => [...], 32 => [...], 33 => [...], 34 => [...], 35 => [...], 36 => [...], 37 => [...], 38 => [...], 39 => [...], 40 => [...], 41 => [...], 42 => [...], 43 => [...], 44 => [...], 45 => [...], 46 => [...], 47 => [...], 48 => [...], 49 => [...], 50 => [...], 51 => [...], 52 => [...], 53 => [...], 54 => [...], 55 => [...], 56 => [...], 57 => [...], 58 => [...], 59 => [...], 60 => [...], 61 => [...], 62 => [...], 63 => [...], 64 => [...], 65 => [...], 66 => [...], 67 => [...], 68 => [...], 69 => [...], 70 => [...], 71 => [...], 72 => [...], 73 => [...], 74 => [...], 75 => [...], 76 => [...], 77 => [...], 78 => [...], 79 => [...], 80 => [...], 81 => [...], 82 => [...], 83 => [...], 84 => [...], 85 => [...], 86 => [...], 87 => [...], 88 => [...], 89 => [...], 90 => [...], 91 => [...], 92 => [...], 93 => [...], 94 => [...], 95 => [...], 96 => [...], 97 => [...], 98 => [...], 99 => [...], 100 => [...], 101 => [...], 102 => [...], 103 => [...], 104 => [...], 105 => [...], 106 => [...], 107 => [...], 108 => [...], 109 => [...], 110 => [...], 111 => [...], 112 => [...], 113 => [...], 114 => [...], 115 => [...], 116 => [...], 117 => [...], 118 => [...], 119 => [...], 120 => [...], 121 => [...], 122 => [...], 123 => [...], 124 => [...], 125 => [...], 126 => [...], 127 => [...], ...]; private ?Throwable $previous = NULL; public $xdebug_message = '<tr><th align=\'left\' bgcolor=\'#f57900\' colspan="5"><span style=\'background-color: #cc0000; color: #fce94f; font-size: x-large;\'>( ! )</span> Error: Xdebug has detected a possible infinite loop, and aborted your script with a stack depth of \'512\' frames in /home/dumro/public_html/wp-includes/plugin.php on line <i>281</i></th></tr>\n<tr><th align=\'left\' bgcolor=\'#e9b96e\' colspan=\'5\'>Call Stack</th></tr>\n<tr><th align=\'center\' bgcolor=\'#eeeeec\'>#</th><th align=\'left\' bgcolor=\'#eeeeec\'>Time</th><th align'... } ) .../Unknown:0
( ! ) Error: Xdebug has detected a possible infinite loop, and aborted your script with a stack depth of '512' frames in /home/dumro/public_html/wp-includes/plugin.php on line 281
Call Stack
#   Time    Memory  Function    Location
1   0.0022  423568  {main}( )   .../index.php:0
2   0.0029  423960  require( '/home/dumro/public_html/wp-blog-header.php )  .../index.php:17
3   0.0029  424376  require_once( '/home/dumro/public_html/wp-load.php )    .../wp-blog-header.php:13
4   0.0030  424824  require_once( '/home/dumro/public_html/wp-config.php )  .../wp-load.php:50
5   0.0030  426808  require_once( '/home/dumro/public_html/wp-settings.php )    .../wp-config.php:198
6   0.4663  6263184 include( '/home/dumro/public_html/wp-content/themes/Avada/functions.php )   .../wp-settings.php:611
7   0.4664  6269024 require_once( '/home/dumro/public_html/wp-content/themes/Avada/includes/bootstrap.php ) .../functions.php:51
8   0.4737  6449856 Avada_Upgrade::get_instance( )  .../bootstrap.php:132
9   0.4737  6450048 Avada_Upgrade->__construct( )   .../class-avada-upgrade.php:256
10  0.4740  6450744 get_option( $option = 'Avada_options', $default_value = FALSE ) .../class-avada-upgrade.php:103
11  0.4742  6451120 wpdb->get_row( $query = 'SELECT option_value FROM wp_options WHERE option_name = \'Avada_options\' LIMIT 1', $output = ???, $y = ??? )  .../option.php:197
12  0.4742  6451280 W3TC\DbCache_WpdbNew->query( $query = 'SELECT option_value FROM wp_options WHERE option_name = \'Avada_options\' LIMIT 1' ) .../class-wpdb.php:3065
...................................
...................................
cssjoe commented 3 months ago

@khanakia In your environment, you may want to increase the value of xdebug.max_nesting_level in your php.ini file to a number higher than 512, such as 768 or 1024.

khanakia commented 3 months ago

Hi, not sure anymore. it's been months.