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

php fatal error when fetchalias called without second param

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Medium Medium
    • None
    • 4.1.3, 4.2.0alpha1
    • None

    Description

      {def $x = fetch_alias( 'nodes_by_entity')}

      =>
      php fatal error: Cannot unset string offsets in D:\htdocs\ezp\clients\xxx\prj_portailpro\trunk\kernel\classes\ezcontentobjecttreenode.php on line 912

      The definition of the alias fetch is:

      [nodes_by_entity]
      Module=content
      FunctionName=list
      Constant[parent_node_id]=2
      Constant[attribute_filter]=fdo_ofsap_entity/ofsap_entity;=;scossone
      
      #Constant[class_filter_type]=include
      #Constant[class_filter_array]=fdo_ofsap_entity
      #Parameter[attribute_filter]=attribute_filter
      

      The compiled template code is:

      $var = call_user_func_array( array( new eZContentFunctionCollection(), 'fetchObjectTree' ),
        array(     'parent_node_id' => "2",
          'sort_by' => array(),
          'only_translated' => false,
          'language' => false,
          'offset' => false,
          'limit' => false,
          'depth' => 1,
          'depth_operator' => "le",
          'class_id' => false,
          'attribute_filter' => "fdo_ofsap_entity/ofsap_entity;=;scossone",
          'extended_attribute_filter' => false,
          'class_filter_type' => false,
          'class_filter_array' => false,
          'group_by' => false,
          'main_node_only' => false,
          'ignore_visibility' => false,
          'limitation' => null,
          'as_object' => null,
          'objectname_filter' => null,
          'load_data_map' => null ) );
      

      Attachments

        Activity

          People

            unknown unknown
            72f8acac-185f-4a54-9470-a7473f50daab@accounts.ibexa.co Gaetano Giunta
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: