{"id":18161498,"date":"2024-11-26T12:05:14","date_gmt":"2024-11-26T12:05:14","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/exhausted-memory-error-with-backtrace-php-if-this-appears-in-code-apply_filters\/"},"modified":"2024-11-26T12:05:14","modified_gmt":"2024-11-26T12:05:14","slug":"exhausted-memory-error-with-backtrace-php-if-this-appears-in-code-apply_filters","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/exhausted-memory-error-with-backtrace-php-if-this-appears-in-code-apply_filters\/","title":{"rendered":"Exhausted memory error with Backtrace.php if this appears in code -apply_filters"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">I have the following in a dynamic block callback which renders block &#8211; apply_filters(&#8216;the_content&#8217;, $post_content). If it appears anywhere in the block code, regardless if I am returning early before its used, I get the following error: <br \/><strong>Fatal error<\/strong>: Allowed memory size of 805306368 bytes exhausted (tried to allocate 20480 bytes) in\u00a0<strong>\/hiddenpath\/public_html\/wp-content\/plugins\/query-monitor\/classes\/Backtrace.php<\/strong>\u00a0on line\u00a0<strong>137<\/strong><br \/><br \/>Could this be a bug with Query Monitor?<br \/><br \/>thanks<\/p>\n","protected":false},"template":"","class_list":["post-18161498","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18161498","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18161498\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=18161498"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}