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

Search indexing of RichText fields doesn't work on PHP 7.3.16

    XMLWordPrintable

    Details

      Description

      Summary

      Seems like due to bug fix(es) for PHP-XML in PHP 7.3.16 traversing through \DOMNode elements no longer works as it did and thus value for RichText field to be indexed is empty. Both PHP-XML and our implementation are quite old, so we need to investigate if a quick workaround is possible.

      Spotted quite early thanks to our CI, but gave us a bit of a headache due to Symfony 5 and ezplatform-kernel release done accidentally in sync with the patch release for PHP.

      Steps to reproduce:

      1. Create an Article and place some unique phrase in a RichText Field (e.g Intro).
      2. Publish the Article.
      3. Go to AdminUI > Search and try to search for that phrase.
      4. If you're already running PHP 7.3.16 observe that the Content was not found.
      5. If not, then perform php ezplatform:reindex, using php v7.3.16 and see that the search result is gone.
      6. Run php ezplatform:reindex using e.g. PHP 7.2 to see the search result is available again.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            andrzej.longosz@ez.no Andrzej Longosz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 7 hours
                7h
                Remaining:
                Remaining Estimate - 7 hours
                7h
                Logged:
                Time Spent - Not Specified
                Not Specified