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

Apc handler not present on eZ Publish 5.2

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Invalid
    • Affects Version/s: 5.2-dev
    • Component/s: GIT, Platform stack
    • Labels:
    • Environment:

      Server OS: Red Hat 6.4
      PHP: 5.3.3
      Database: MySQL 5.1.61
      Browser: any

      Description

      Apparently Apc stash handler is not present on eZ Publish 5.2, if you try to run

      php ezpublish/console config:dump-reference stash
      

      you'll get the following list of available caches

      Default configuration for extension with alias: "stash"
      stash:
          default_cache:        ~
          logging:              ~
          caches:
      
              # Prototype
              name:
                  handlers:
      
                      # Default:
                      - FileSystem
                  registerDoctrineAdapter:  false
                  registerSessionHandler:  false
                  inMemory:             true
                  BlackHole:            []
                  Ephemeral:            []
                  FileSystem:
                      dirSplit:             2
                      path:                 %kernel.cache_dir%/stash
                      filePermissions:      432
                      dirPermissions:       504
                      memKeyLimit:          200
                  SQLite:
                      filePermissions:      432
                      dirPermissions:       504
                      busyTimeout:          500
                      nesting:              0
                      subhandler:           PDO
                      version:              ~
                      path:                 %kernel.cache_dir%/stash
      

      and if you try to use it, you'll get the following error:

                                                                                                                     
        [Symfony\Component\Config\Definition\Exception\InvalidConfigurationException]                                
        Invalid configuration for path "stash.caches.default.handlers.0": A handler of that name is not registered.  
                                                                                                                     
        [InvalidArgumentException]                 
        A handler of that name is not registered
      

      This was present on eZ Publish 5.1, since the list of available caches is the following:

      Default configuration for extension with alias: "stash"
      stash:
          default_cache:        ~
          caches:
      
              # Prototype
              name:
                  handlers:
      
                      # Default:
                      - FileSystem
                  registerDoctrineAdapter:  false
                  inMemory:             true
                  Apc:
                      ttl:                  300
                      namespace:            ~
                  BlackHole:            []
                  Ephemeral:            []
                  FileSystem:
                      dirSplit:             2
                      path:                 %kernel.cache_dir%/stash
                      filePermissions:      432
                      dirPermissions:       504
                      memKeyLimit:          200
                  SQLite:
                      filePermissions:      432
                      dirPermissions:       504
                      busyTimeout:          500
                      nesting:              0
                      subhandler:           PDO
                      version:              ~
                      path:                 %kernel.cache_dir%/stash
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              pedro.resende-obsolete@ez.no Pedro Resende (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: