Page Templates Not Loading on Local Dev Environment

Hi Beavers

I’ve got an issue I can’t find a solution to in the forums.

On a local dev environment using DesktopServer and new WordPress site with Git using the latest 1.6.0.3 BeaverBuilder plugin.

Issue: On a new page when selecting a page (or any other template) the template selects but won’t load in the page and ends up being blank. Has anyone had this and if so what is the cause and how did you resolve it?

When manually inserting rows and other items there is no problem, it inserts and saves.

Many thanks…

Warmest regards,

Athlone Harris-Compton

I’ve been having the same issue with the latest version of Desktop Server. I’ve opened a support ticket with them but have yet to hear back.
I’ve had a chance to do some testing though. Sometimes when I try adding a multiple column layout I’ll get an error message that refers to “nesting level”

desktop server error

after seeing this error I’ve clicked “Done” and “Publish” and then I go back into the Page Builder. At this point I can sometimes insert a page template. I’ve been able to do this on a Genesis, and a Genesis/Dynamik site. I tried it with the Twenty Fifteen theme but can’t get a page template to take hold no matter what I try.

In case that screen shot is hard to read, here is the text:

Fatal error: Maximum function nesting level of ‘100’ reached, aborting! in C:\Users\rod\Documents\Websites\www.example.dev\wp-content\plugins\bb-plugin\classes\class-fl-builder-model.php on line 717

also, no other plug-ins are activated

Hey Athlone,

Thanks for getting in touch! This does seem to be quite related with how Desktop Server works. You can check Rod’s previous thread here.

Rod,

That seems to be a limit which is set by your Apache server. You can check this thread on SE for the solution.

Ben

Hi Ben

Ok that worked perfectly, thanks for the link.

So to summarize, here’s the fix when using DesktopServer 3.8.0 and BeaverBuilder and you get a problem with templates not loading:

Go to your php.ini file in Xamplite on Windows it’s here: C:\xampplite\php\php.ini

Add the following line to the [XDebug] section (usually at the bottom of the file:

xdebug.max_nesting_level=1000 (with 1000 being the value you want to replace the default 100 with).

Please note: I’m not sure what the correct value is, and if there is even a correct value so I set mine to 1000 and it’s solved the problem.

Hey Athlone,

I never knew the 2 problems were related but now I know, thanks to you. :slight_smile: Actually, I remember a thread having this exact same problem before when I first came in but it didn’t really stick as I was newbie back then. Anyway, thanks for sharing what fixed the problem! Have fun with The Beaver! :slight_smile:

Ben

Hi Ben

Actually it was your link that solved the problem so thanks to you. LOL :slight_smile:

Have a good day…

Warmest regards,

Athlone

Thanks for that solution guys!

Hi Rod

You’re most welcome :wink:

Glad it’s working fine for you as well, Rod! Now we can all enjoy BB on our local installs! Have fun! :slight_smile:

Ben

For future reference, this issue was also discusses some time ago here:
http://forum.wpbeaverbuilder.com/support/q/fatal-error-maximum-function-nesting/

Cheers, Dave

Any more info on this fix i just updated to the new desktop server and now my templates do not work

I added in the code tried 250 and 1000 and still no template’s working here is what mine has for that area.

[XDebug]
zend_extension = “c:\xampplite\php\ext\php_xdebug.dll”
xdebug.remote_enable =on
xdebug.remote_handler = “dbgp”
xdebug.remote_host = “127.0.0.1”
xdebug.trace_output_dir = “c:\xampplite\tmp”
xdebug.report_port=9000
xdebug.max_nesting_level=250

Hey Edward,

What happens when you apply a template? Do you get the same error as the screenshot shown above? Are you using Pro or Agency? Is it a multisite or a single site?

Ben

Hi Ben after adding the xdebug.max_nesting_level=250 into server press it did not work but the next day after restarting everything it now works i guess i should or rebooted after adding in the new code.
So that is working now
Thanks
But i still have no template thumbs showing up for my templates.?

Hey Edward,

Right, you needed to restart the client before the changes in the php.ini file take effect. I’ll reply to your other thread regarding template thumbnails.
http://forum.wpbeaverbuilder.com/support/q/how-do-i-get-agency-template-thumbs-to-show-up/

Ben

Thank you so much for this post - I spent nearly the whole day today trying to figure out why my templates weren’t loading. This is my first time building on a WAMP environment - after adding the line xdebug.max_nesting_level=1000 to PHP.INI and restarting services, it worked!

That’s good to hear, Ilene! Enjoy BB! :slight_smile:

Ben