Uploaded image for project: 'Ibexa IBX'
  1. Ibexa IBX
  2. IBX-1522

Unable to index the content Article

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: High High
    • 2.5.15
    • 2.5.x-dev
    • Commerce
    • eZ Commerce

    Description

      Preconditions:

      • Clean installation of Commerce on branch 2.5 using PHP 7.4

      Steps to reproduce:

      1. Log in to backoffice.
      2. Add new content "Article".
      3. Perform reindex script: php bin/console ezplatform:reindex
      4. Check output message and verify logs in /var/logs/dev.log

      Actual result:

      See attached screenshot.

      Unable to index the content Arcticle.

       [2021-11-23 13:36:15] app.ERROR: Unable to index the content {"contentId":"138","error":"Notice: Trying to access array offset on value of type null"} []
      [2021-11-23 13:36:16] app.ERROR: Unable to index the content {"contentId":"147","error":"Notice: Trying to access array offset on value of type null"} []

      Expected result:

      Reindex script is able to index content Article.

      Note:

      Both content ids (138 and 147) that can be seen on screenshot are Articles.

      Update:

      The problem also occurs for content type 'Product'.

      Update2:

      Please bear in mind that content 'Article' has been added on the project using PHP 7.3 version.

      Designs

        Attachments

          Activity

            People

              Unassigned Unassigned
              bogdan.mazur@ibexa.co Bogdan Mazur
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: