# Fatal error: Uncaught Error: Maximum function nesting level of '256' reached

**URL:** <https://community.localwp.com/t/fatal-error-uncaught-error-maximum-function-nesting-level-of-256-reached/32442>\
**Category:** WordPress Questions\
**Tags:** astra-theme\
**Created:** [July 11, 2022, 1:12pm UTC](https://community.localwp.com/t/fatal-error-uncaught-error-maximum-function-nesting-level-of-256-reached/32442 "2022-07-11T13:12:45Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Abdo](https://avatars.discourse-cdn.com/v4/letter/a/0ea827/32.png) [@Abdo](https://community.localwp.com/u/Abdo)\
**Post date:** [July 11, 2022, 1:12pm UTC](https://community.localwp.com/t/fatal-error-uncaught-error-maximum-function-nesting-level-of-256-reached/32442/1 "2022-07-11T13:12:46Z")

</div>

# Bug Summary

After I installed Starter Templates by Astra themes, I encountered this error that prevents loading the website but WP control panel is working.

> Fatal error: Uncaught Error: Maximum function nesting level of ‘256’ reached, aborting! in C:\Users\Ad2048\Local Sites\arcedu\app\public\wp-includes\class-wp-block-parser.php on line _83_

> Error: Maximum function nesting level of ‘256’ reached, aborting! in C:\Users\Ad2048\Local Sites\arcedu\app\public\wp-includes\class-wp-block-parser.php on line _83_`

What I have found that Starter Templates plugin installs “Ultimate Addons for Gutenberg” plugin, and when I deactivate this plugin, the website works!

# Steps to reproduce

1. I tried to add `xdebug.max_nesting_levels` [As in ths topic](http://community.localwp.com/t/error-with-preload-local-fonts-in-kadence-theme/25195/2) and set it to 500 and even 1000 but no results.
2. Deleted and created the website multiple times, but still problem exist (even restart computer too).

# Environment Info

- What Operating System are you using? Windows 10 Education
- What versions of site software (Nginx, Apache, PHP, MySQL) is used? Nginx
- What version of Local is installed? 6.4.1+5978

# Supporting info

Please provide your Local Log:  
[local-lightning.log](https://community.localwp.com/uploads/short-url/4aJN8pYWR7su4sRbmcP4hRuXxpq.log) (17.2 KB)

 ![firefox_7ILUt5XC4d](https://us1.discourse-cdn.com/flex019/uploads/lwpforums/original/3X/f/b/fb3a9c88c8be0fb6caa827c8c4aa8618cd19b20e.png)

 ![hmoVIk7NNQ](https://us1.discourse-cdn.com/flex019/uploads/lwpforums/original/3X/0/5/052220eaf9a189c6d8635d6b4c67cf5e9191092a.png)

---

<div class="post-metadata">

**Author:** ![sambrockway](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/sambrockway/32/18726_2.png) [@sambrockway](https://community.localwp.com/u/sambrockway)\
**Post date:** [July 11, 2022, 3:10pm UTC](https://community.localwp.com/t/fatal-error-uncaught-error-maximum-function-nesting-level-of-256-reached/32442/2 "2022-07-11T15:10:57Z")

</div>

Hello @Abdo - thank you for bringing your question to the Local Community! 👋

Do you need Xdebug enabled? If not, you could disable it using the following steps & see if the error persists:

> <https://stackoverflow.com/questions/8754826/how-to-disable-xdebug/8754934#8754934>

For Local, that would look something like this:

1. Open the `php.ini.hbs` file for a site, under `sitename/conf/php/php.ini.hbs`
2. Comment out the lines with a semi-colon that have Xdebug in them
3. Restart the site to reload the configuration

![Shared with CloudApp](https://p-DgFRdw9.t2.n0.cdn.getcloudapp.com/items/d5uOy40X/ce10df87-0748-48fd-b0a7-be53f3b688ba.jpg?source=social&v=1a3baca288f2a1c99b53eeb6fb8317cc)

Let me know if that helps!

Sam 👩🏼‍💻

---

<div class="post-metadata">

**Author:** ![Abdo](https://avatars.discourse-cdn.com/v4/letter/a/0ea827/32.png) [@Abdo](https://community.localwp.com/u/Abdo)\
**Post date:** [July 11, 2022, 3:39pm UTC](https://community.localwp.com/t/fatal-error-uncaught-error-maximum-function-nesting-level-of-256-reached/32442/3 "2022-07-11T15:39:09Z")

</div>

Hello @sambrockway , thank you for responding.  
I have did what you mentioned in Notepad++, saved it, stopped and restarted website and another error showed up to me:

> Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 20480 bytes) in  
> C:\Users\Ad2048\Local Sites\arcedu\app\public\wp-includes\class-wp-block-parser.php on  
> line 461
> 
> There has been a critical error on this website.

 ![image](https://us1.discourse-cdn.com/flex019/uploads/lwpforums/original/3X/a/3/a36e42768cfb684d3066f48a2c9abed1b84053bb.png)

I restarted my PC too, but didn’t work.  
Also I noticed that when I refresh the page, the line number in the error message is changing randomly!  
EDIT: I have 12GB of memory.

---

<div class="post-metadata">

**Author:** ![afragen](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/afragen/32/31_2.png) [@afragen](https://community.localwp.com/u/afragen)\
**Post date:** [July 11, 2022, 4:36pm UTC](https://community.localwp.com/t/fatal-error-uncaught-error-maximum-function-nesting-level-of-256-reached/32442/4 "2022-07-11T16:36:10Z")

</div>

These types of errors may be due to infinite loops in the code somewhere. In this case, possibly the plugin you’ve designated.

---

<div class="post-metadata">

**Author:** ![sambrockway](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/sambrockway/32/18726_2.png) [@sambrockway](https://community.localwp.com/u/sambrockway)\
**Post date:** [July 11, 2022, 5:53pm UTC](https://community.localwp.com/t/fatal-error-uncaught-error-maximum-function-nesting-level-of-256-reached/32442/5 "2022-07-11T17:53:45Z")

</div>

Yes, @Abdo - I’m thinking (as @afragen mentioned) that plugin you mentioned might be causing some issues on your site - especially since the issue is resolved when it is disabled.

Is that plugin necessary?

Sam

---

<div class="post-metadata">

**Author:** ![Abdo](https://avatars.discourse-cdn.com/v4/letter/a/0ea827/32.png) [@Abdo](https://community.localwp.com/u/Abdo)\
**Post date:** [July 11, 2022, 7:07pm UTC](https://community.localwp.com/t/fatal-error-uncaught-error-maximum-function-nesting-level-of-256-reached/32442/6 "2022-07-11T19:07:32Z")

</div>

Hello there, Thank you for taking time.  
I solved the problem, it looks like the theme I used has a problem, the contact block in the theme showed as “Block has been deleted or is unavailable.” in editing mode. but removing that block solved the problem!  
Thank you @sambrockway @afragen for your support.

---

<div class="post-metadata">

**Author:** ![sambrockway](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/sambrockway/32/18726_2.png) [@sambrockway](https://community.localwp.com/u/sambrockway)\
**Post date:** [July 12, 2022, 11:24am UTC](https://community.localwp.com/t/fatal-error-uncaught-error-maximum-function-nesting-level-of-256-reached/32442/7 "2022-07-12T11:24:46Z")

</div>

Hi @Abdo -

So happy your problem was solved, thank you for sharing the solution.

If you have any more questions please don’t hesitate to reach out!

Happy you’re here,

Sam 👩🏼‍💻

---

<div class="post-metadata">

**Author:** ![system](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/system/32/1_2.png) [@system](https://community.localwp.com/u/system)\
**Post date:** [July 13, 2022, 11:24pm UTC](https://community.localwp.com/t/fatal-error-uncaught-error-maximum-function-nesting-level-of-256-reached/32442/8 "2022-07-13T23:24:49Z")

</div>

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.
