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

Fatal Error in kernel/classes/ezcontentobjecttreenode.php on line 5423

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Medium Medium
    • None
    • 3.10.0beta1
    • None
    • Operating System: Ubuntu
      PHP Version: 5.4.2
      Database and version: Mysql 5.0.51
      Browser (and version): Firefox 2.0

    Description

      I got this error if I searched in the admin interface.

      The problem is in method classIdentifier of ezcontentobjecttreenode:

       5421;           $object = $this->object();
       5422:           $class = $object->contentClass();
       5423:           $this->ClassIdentifier = $class->attribute( 'identifier' );
      

      There is no object for this result. But the object exists. The main problem is in method search of extension/ezfind/search/plugins/ezsolr/ezsolr.php.

      $tmpNodeRowList = eZContentObjectTreeNode::fetch( $localNodeIDList, false, false );
      

      The variable $tmpNodeRowList is sometimes an array of nodes (result of fetch are several nodes) and sometimes an array of attributes (result of fetch is one node).

      for example an array of several nodes (print_r of $tmpNodeRowList):
      [0] => array( "id" => 1, "contentclass_id" => 5, ...)
      [1] => array( "id" => 2, "contentclass_id" => 5, ...)

      an example of result of the fetch if there is an error
      [id] => 1
      [contentclass_id] => 5
      ...

      If the result is one node the foreach loops about attributes and doesn't find the info for the object. Thatswhy the following code has no nodeList:

      $nodeRowList[$nodeRow['node_id']] = $nodeRow;
      

      An example of my output of $nodeRowList is:

      Array
      (
      [4] => 47
      [1] => 1
      [2] => 2
      [0] => 0
      [F] => F1234
      [7] => 7
      [p] => products/...
      [/] => /1/2/207/...
      [a] => a:2:

      {s:6:"ger-DE";s:7:"Product";s:16:"always-available";s:6:"ger-DE";}

      [c] => class_product
      [g] => ger-DE
      )

      Attachments

        Activity

          People

            pborgerm pborgerm
            3eaa9b9f-e9b8-4b9e-be6e-3c56f2303459@accounts.ibexa.co Daniel Jüdel
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: