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

ezxml -- custom tag rendering produces php warning pollution

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Low Low
    • None
    • 3.0-1
    • Misc
    • None
    • Version: ezp3.0-1
      PHP Version:
      Webserver:
      Database:

    Description

      When you add custom tag stuff to templates, e.g. like this:

      Normal text<strong>bold text</strong>
      <custom name='factbox'><line>box text</line>
      <link href='default@mysite.com'>My Mail</link>
      </custom>

      you provoke lots of warnings, all stemming from the file
      kernel/classes/datatypes/ezxmltext/handlers/output/ezxhtmlxmloutput.php

      See php-log output on my WIN2K test box below. I think some code cleansing would be appropriate here.

      ______________________________________________________________
      Php log examples for ezxmltext-rendering with the functions in ezxhtmlxmloutput.php:

      Warning: PHP Apr 01 2003 15:22:38

      Undefined offset: 0 in c:\\programme\\apachegroup\\apache\\htdocs\\leportal\\ezp\\kernel\\classes\\datatypes\\ezxmltext\\handlers\\output
      ezxhtmlxmloutput.php on line 157

      Warning: eZTemplate:gt Apr 01 2003 15:22:38

      Unsupported type: boolean( ), must be either array, attribute object or numerical

      Warning: PHP Apr 01 2003 15:22:38

      Undefined variable: sectionLevel in c:\\programme\\apachegroup\\apache\\htdocs\\leportal\\ezp\\kernel\\classes\\datatypes\\ezxmltext\\handlers\\output
      ezxhtmlxmloutput.php on line 360

      Warning: PHP Apr 01 2003 15:22:38

      Undefined variable: tdSctionLevel in c:\\programme\\apachegroup\\apache\\htdocs\\leportal\\ezp\\kernel\\classes\\datatypes\\ezxmltext\\handlers\\output
      ezxhtmlxmloutput.php on line 360

      Warning: PHP Apr 01 2003 15:22:38

      Undefined offset: 0 in c:\\programme\\apachegroup\\apache\\htdocs\\leportal\\ezp\\kernel\\classes\\datatypes\\ezxmltext\\handlers\\output
      ezxhtmlxmloutput.php on line 157

      Warning: PHP Apr 01 2003 15:22:38

      Undefined offset: 0 in c:\\programme\\apachegroup\\apache\\htdocs\\leportal\\ezp\\kernel\\classes\\datatypes\\ezxmltext\\handlers\\output
      ezxhtmlxmloutput.php on line 157

      Warning: eZTemplate:gt Apr 01 2003 15:22:38

      Unsupported type: boolean( ), must be either array, attribute object or numerical

      Warning: eZTemplate Apr 01 2003 15:22:38

      No template could be loaded for "content/datatype/view/ezxmltags/custom.tpl" using resource "design"

      Warning: PHP Apr 01 2003 15:22:38

      Undefined offset: 1 in c:\\programme\\apachegroup\\apache\\htdocs\\leportal\\ezp\\kernel\\classes\\datatypes\\ezxmltext\\handlers\\output
      ezxhtmlxmloutput.php on line 157

      Warning: PHP Apr 01 2003 15:22:38

      Undefined offset: 0 in c:\\programme\\apachegroup\\apache\\htdocs\\leportal\\ezp\\kernel\\classes\\datatypes\\ezxmltext\\handlers\\output
      ezxhtmlxmloutput.php on line 157

      Warning: eZTemplate:gt Apr 01 2003 15:22:38

      Unsupported type: boolean( ), must be either array, attribute object or numerical

      Attachments

        Activity

          People

            unknown unknown
            vlenz vlenz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: