phiamo / MopaBootstrapSandboxBundle

Sandbox Bundle used to seperate live doc from code
http://bootstrap.mohrenweiserpartner.de
Other
24 stars 40 forks source link

FatalErrorException #12

Closed approached closed 11 years ago

approached commented 11 years ago

When i clear the cache with: app/console cache:clear The first site request works. On the second site i become the follow error:

FatalErrorException: Error: Maximum function nesting level of '100' reached,
 aborting! in /home/approach/workspace/www/
symfony-bootstrap/vendor/twig/twig/lib/Twig/Node.php line 141
composer.json:
    "require": {
        "doctrine/doctrine-bundle": "1.2.*",
        "doctrine/orm": "~2.2,>=2.2.3",
        "jms/di-extra-bundle": "1.3.*",
        "jms/security-extra-bundle": "1.4.*",
        "php": ">=5.3.3",
        "sensio/distribution-bundle": "2.2.*",
        "sensio/framework-extra-bundle": "2.2.*",
        "sensio/generator-bundle": "2.2.*",

        "symfony/assetic-bundle": "2.1.*",
        "symfony/monolog-bundle": "2.2.*",
        "symfony/swiftmailer-bundle": "2.2.*",
        "symfony/symfony": "2.2.*",
        "twig/extensions": "1.0.*",

        "knplabs/knp-menu": "2.0.*@dev",
        "knplabs/knp-menu-bundle": "2.0.*@dev",

        "mopa/bootstrap-bundle": "dev-master",
        "mopa/bootstrap-sandbox-bundle": "dev-master",

        "twitter/bootstrap": "dev-master",
        "liip/theme-bundle": "dev-master",

        "leafo/lessphp": "~0.3"
    },
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
            new Symfony\Bundle\SecurityBundle\SecurityBundle(),
            new Symfony\Bundle\TwigBundle\TwigBundle(),
            new Symfony\Bundle\MonologBundle\MonologBundle(),
            new Symfony\Bundle\SwiftmailerBundle\SwiftmailerBundle(),
            new Symfony\Bundle\AsseticBundle\AsseticBundle(),
            new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(),
            new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(),
            new JMS\AopBundle\JMSAopBundle(),
            new JMS\DiExtraBundle\JMSDiExtraBundle($this),
            new JMS\SecurityExtraBundle\JMSSecurityExtraBundle(),

            new Knp\Bundle\MenuBundle\KnpMenuBundle(),

            new Mopa\Bundle\BootstrapBundle\MopaBootstrapBundle(),
            new Mopa\Bundle\BootstrapSandboxBundle\MopaBootstrapSandboxBundle(),
            new Liip\ThemeBundle\LiipThemeBundle(),

            new Mas\GeoBundle\GeoBundle(),
        );
approached commented 11 years ago

How to solve the error "Fatal error: Maximum function nesting level of '100' reached"?

This error only occurs when xdebug is installed and is common with the default maximum of 100 (without xdebug, there is no cap).

xdebug.max_nesting_level = 200