Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: High 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
      

        Issue Links

          Activity

          Hide
          Jérôme Vieilledent (Inactive) added a comment - - edited

          Hi

          This is not an issue. It's due to the fact that Stash presents you what's available in your context (changes from this commit on Stash).
          When in CLI, unless explicitly enabling APC in that context, it's deactivated, and thus the driver won't be available.

          And anyway, testing APC handler availability by using config:dump-reference is not really a test, is it ?

          Show
          Jérôme Vieilledent (Inactive) added a comment - - edited Hi This is not an issue. It's due to the fact that Stash presents you what's available in your context (changes from this commit on Stash ). When in CLI, unless explicitly enabling APC in that context, it's deactivated, and thus the driver won't be available. And anyway, testing APC handler availability by using config:dump-reference is not really a test, is it ?
          Hide
          Jérôme Vieilledent (Inactive) added a comment -

          So basically [~pedro.resende@ez.no], if you want to re-test it this way, be sure that apc.enable_cli is on in your php.ini.

          Show
          Jérôme Vieilledent (Inactive) added a comment - So basically [~pedro.resende@ez.no] , if you want to re-test it this way, be sure that apc.enable_cli is on in your php.ini.
          Hide
          Pedro Resende (Inactive) added a comment -

          [~jerome.vieilledent@ez.no]: Thanks Jérôme, that was it.

          Show
          Pedro Resende (Inactive) added a comment - [~jerome.vieilledent@ez.no] : Thanks Jérôme, that was it.

            People

            • Assignee:
              Unassigned
              Reporter:
              Pedro Resende (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: