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

Cache tracking fails with ContentTypes

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 2014.11
    • Fix Version/s: None
    • Component/s: Caching
    • Labels:
    • Environment:

      Debian wheezy
      PHP 5.4.36-0+deb7u3
      libxml 2.8.0
      tedivm/stash-bundle v0.4.2

      Description

      In dev environment, stash bundle auto activates cache query tracking.
      Cache tracking logs the contents of the cache, serializing it using print_r (see https://github.com/tedious/TedivmStashBundle/blob/master/Service/CacheTracker.php#L92)

      The bug arises when a content type holding a XMLText field definition with a default value is loaded from cache. The default value contains a DOMDocument which is the root of the errror :

      print_r issues a warning when trying to process the DOMDocument (Warning: print_r(): Invalid State Error)
      The warning is handled by Symfony's Debug Component which throws a ContextErrorException

      NB : the content type and its field definitions have been created using the public API

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            bchoquet Benjamin Choquet
            Votes:
            5 Vote for this issue
            Watchers:
            7 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: