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

ezodf import fails when using content approval workflow

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Medium Medium
    • Resolution: Fixed
    • Affects Version/s: extension/ezodf 2.2.4, extension/ezodf 2.3.1
    • Fix Version/s: Customer request
    • Labels:
      None
    • Environment:

      Operating System:
      PHP Version: (please be specific, like '4.4.3' or '5.1.5')

      Affects all versions distributed with ezp4.6, 4.5, 4.4, 4.3...
      Database and version:
      Browser (and version):

      Description

      It fails with fatal error:

      Fatal error: Call to a member function attribute() on a non-object in /www/ezp460ee/extension/ezodf/classes/ezooimport.php on line 942
      Fatal error: eZ Publish did not finish its request
      

      on to this code:

       938             $mainNode = $object->attribute( 'main_node' );
       939             // Create object stop.
       940             $importResult['Object'] = $object;
       941             $importResult['MainNode'] = $mainNode;
       942             $importResult['URLAlias'] = $mainNode->attribute( 'url_alias' );
       943             $importResult['NodeName'] = $mainNode->attribute( 'name' );
       944             $importResult['ClassIdentifier'] = $importClassIdentifier;
      

        Activity

        Show
        Damien Pobel (eZ) added a comment - Fixed in ezodf master https://github.com/ezsystems/ezodf/commit/e046935c11ab847c4376d489c10c7efac9f334c1 stable-2.7 https://github.com/ezsystems/ezodf/commit/ab70a236fae66c7bae311a5e9d40e624f7103bcb stable-2.6 https://github.com/ezsystems/ezodf/commit/ec443edf8a4352eac31b6083dfbfe5804deab212 Corresponding template fix in ezwebin: master https://github.com/ezsystems/ezwebin/commit/3f6951ab38e164d94c5824afc6da154fd71b9bd6 stable-1.9 https://github.com/ezsystems/ezwebin/commit/2b78db3cba2db99ceeebdf8c831704addec30ca9 stable-1.8 https://github.com/ezsystems/ezwebin/commit/dfc83c3dcc0e5747e034c6967924a72b4573a1f9

          People

          • Assignee:
            Damien Pobel (eZ)
            Reporter:
            Jarosław-- Heba
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: