Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-25176

symfony debug toolbar causing error on frontend homepage

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: High High
    • Resolution: Obsolete
    • Affects Version/s: 2015.11
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:

      dev

      Description

      I have created a fresh install using composer and then added the Symfony Debug Toolbar.
      It comes up on the backend UI login page ( /ez ) but when I try to load the frontend page ( / ) I get the following error:

      An exception has been thrown during the rendering of a template ("Could not find 'eZ\Publish\SPI\Persistence\Content\Type' with identifier 'ID: landing_page, Status: 0'") in eZDemoBundle::pagelayout.html.twig at line 39.

      The log says:

      ERROR - Couldn't find any SiteAccess with 'eng-GB' as main language.

      and

      CRITICAL - Uncaught PHP Exception Twig_Error_Runtime: "An exception has been thrown during the rendering of a template ("Could not find 'eZ\Publish\SPI\Persistence\Content\Type' with identifier 'ID: landing_page, Status: 0'") in "eZDemoBundle::pagelayout.html.twig" at line 39." at /Applications/MAMP/htdocs/platform/magpie/vendor/twig/twig/lib/Twig/Template.php line 176

      From the readout, it seems to be trying to call the DemoBundle which has been removed.

      The frontend works without calling the toolbar, and it may be worth noting that I am getting another error when trying to log in to the UI login page. I don't know if this is related (EZP-25117)

      Any suggestions?
      Thanks in advance

        Activity

        Hide
        Felix Laate added a comment -

        I think this still is a problem.

        I experiences it on a 1.9 site after adding a second language and using dev. In prod the error does not appear.

        Show
        Felix Laate added a comment - I think this still is a problem. I experiences it on a 1.9 site after adding a second language and using dev. In prod the error does not appear.
        Hide
        Bertrand Dunogier added a comment -

        Hello there, and thank you for taking the time to report this.

        A lot of things have been cleaned up since 2015.11 in data and default configuration, so I'm almost sure that this is obsolete. Feel free to re-open the issue.

        Show
        Bertrand Dunogier added a comment - Hello there, and thank you for taking the time to report this. A lot of things have been cleaned up since 2015.11 in data and default configuration, so I'm almost sure that this is obsolete. Feel free to re-open the issue.
        Hide
        Barry Holland added a comment -

        In fact this is my full log readout generated by the debug toolbar:

        NOTICE - Siteaccess not matched against configuration, returning default siteaccess.
        INFO - UrlAlias matched location #2. Forwarding to ViewController
        INFO - Matched route "ez_urlalias".
        Context: {"route_parameters":

        {"_route":"ez_urlalias","_controller":"ez_content:viewLocation","locationId":"2","viewType":"full","layout":true}

        ,"request_uri":"http://localhost:8888/platform/magpie/web/index.php/"}
        WARNING - Translation not found.
        Context:

        {"id":"Home","domain":"messages","locale":"en_GB"}

        WARNING - Translation not found.
        Context:

        {"id":"Home","domain":"messages","locale":"en_GB"}

        WARNING - Translation not found.
        Context:

        {"id":"Home","domain":"messages","locale":"en_GB"}

        ERROR - Couldn't find any SiteAccess with 'eng-GB' as main language.
        WARNING - Translation not found.
        Context:

        {"id":"Search","domain":"messages","locale":"en_GB"}

        WARNING - Translation not found.
        Context:

        {"id":"Search text","domain":"messages","locale":"en_GB"}

        WARNING - Translation not found.
        Context:

        {"id":"Search text","domain":"messages","locale":"en_GB"}

        WARNING - Translation not found.
        Context:

        {"id":"Save","domain":"messages","locale":"en_GB"}

        CRITICAL - Uncaught PHP Exception Twig_Error_Runtime: "An exception has been thrown during the rendering of a template ("Could not find 'eZ\Publish\SPI\Persistence\Content\Type' with identifier 'ID: landing_page, Status: 0'") in "eZDemoBundle::pagelayout.html.twig" at line 39." at /Applications/MAMP/htdocs/platform/magpie/vendor/twig/twig/lib/Twig/Template.php line 176
        Context:

        {"exception":"Object(Twig_Error_Runtime)"}
        Show
        Barry Holland added a comment - In fact this is my full log readout generated by the debug toolbar: NOTICE - Siteaccess not matched against configuration, returning default siteaccess. INFO - UrlAlias matched location #2. Forwarding to ViewController INFO - Matched route "ez_urlalias". Context: {"route_parameters": {"_route":"ez_urlalias","_controller":"ez_content:viewLocation","locationId":"2","viewType":"full","layout":true} ,"request_uri":"http://localhost:8888/platform/magpie/web/index.php/"} WARNING - Translation not found. Context: {"id":"Home","domain":"messages","locale":"en_GB"} WARNING - Translation not found. Context: {"id":"Home","domain":"messages","locale":"en_GB"} WARNING - Translation not found. Context: {"id":"Home","domain":"messages","locale":"en_GB"} ERROR - Couldn't find any SiteAccess with 'eng-GB' as main language. WARNING - Translation not found. Context: {"id":"Search","domain":"messages","locale":"en_GB"} WARNING - Translation not found. Context: {"id":"Search text","domain":"messages","locale":"en_GB"} WARNING - Translation not found. Context: {"id":"Search text","domain":"messages","locale":"en_GB"} WARNING - Translation not found. Context: {"id":"Save","domain":"messages","locale":"en_GB"} CRITICAL - Uncaught PHP Exception Twig_Error_Runtime: "An exception has been thrown during the rendering of a template ("Could not find 'eZ\Publish\SPI\Persistence\Content\Type' with identifier 'ID: landing_page, Status: 0'") in "eZDemoBundle::pagelayout.html.twig" at line 39." at /Applications/MAMP/htdocs/platform/magpie/vendor/twig/twig/lib/Twig/Template.php line 176 Context: {"exception":"Object(Twig_Error_Runtime)"}

          People

          • Assignee:
            Unassigned
            Reporter:
            Barry Holland
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: