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

operator |attribute(show, [level] ) - fatal error if level to big

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Medium Medium
    • None
    • 3.8.6
    • Language
    • None
    • Operating System: winXP64
      PHP Version: (please be specific, like '4.4.3' or '5.1.5') 4.4.2
      Database and version: 3.23
      Browser (and version): firefox 1.5.0.8

    Description

      The operator "attribute(show, [level])" is used to show the content of an object. If the level / depth of showing content is to high you get an fatal error.

      If you use the operator e.g.

      {$node|attribute(show,10)}

      in pagelayout.tpl

      you get an fatal error:

      Fatal error: Call to a member function on a non-object in C:\workspace\est\kernel\classes\ezcontentobjectattribute.php on line 394
      Fatal error: eZ publish did not finish its request

      The execution of eZ publish was abruptly ended, the debug output is present below.

      Steps to reproduce
      • insert {$node|attribute(show,10)} into pagelayout.tpl
      • access the webpage
        => you get the error if not try a bigger number

      Attachments

        Activity

          People

            la la
            4d91e976-d41f-487b-ae85-f7216bd06dac@accounts.ibexa.co Felix Woldt
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: